WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class HostPrimitive

    Show / Hide Table of Contents

    Class HostPrimitive

    Represents a primitive which contain any control.

    Inheritance
    System.Object
    Primitive
    HostPrimitive
    Implements
    System.ICloneable
    Inherited Members
    Primitive.c_primitiveSize
    Primitive.Draw(Graphics)
    Primitive.Invalidate()
    Primitive.DrawBorder(Graphics, PrimitiveBorderStyle)
    Primitive.DrawBackground(Graphics)
    Primitive.DrawSelectedBorder(Graphics)
    Primitive.GetCenter()
    Primitive.ToString()
    Primitive.OnOwnerControlChanged()
    Primitive.OnBorderColorChanged()
    Primitive.OnBackColorChanged()
    Primitive.OnPrimitiveBorderStyleChanged()
    Primitive.OnPositionChanged()
    Primitive.OnAlignmentChanged()
    Primitive.OnMouseMove(MouseEventArgs)
    Primitive.OnMouseDown(MouseEventArgs)
    Primitive.OnSelectedChanged()
    Primitive.Visible
    Primitive.Alignment
    Primitive.Size
    Primitive.BorderColor
    Primitive.BackColor
    Primitive.PrimitiveBorderStyle
    Primitive.Position
    Primitive.ClientRect
    Primitive.SizeChanged
    Primitive.BorderColorChanged
    Primitive.BackColorChanged
    Primitive.PrimitiveBorderStyleChanged
    Primitive.PositionChanged
    Primitive.PropertyChanged
    Primitive.BoundsChanged
    Primitive.AlignmentChanged
    Primitive.VisibleChanged
    Primitive.MouseMove
    Primitive.MouseDown
    Primitive.OwnerControlChanged
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class HostPrimitive : Primitive, ICloneable

    Constructors

    HostPrimitive()

    Declaration
    public HostPrimitive()

    HostPrimitive(GradientPanelExt)

    Declaration
    public HostPrimitive(GradientPanelExt owner)
    Parameters
    Type Name Description
    GradientPanelExt owner

    HostPrimitive(Control, GradientPanelExt)

    Declaration
    public HostPrimitive(Control control, GradientPanelExt owner)
    Parameters
    Type Name Description
    System.Windows.Forms.Control control
    GradientPanelExt owner

    HostPrimitive(Control, Size, GradientPanelExt)

    Declaration
    public HostPrimitive(Control control, Size size, GradientPanelExt owner)
    Parameters
    Type Name Description
    System.Windows.Forms.Control control
    System.Drawing.Size size
    GradientPanelExt owner

    Properties

    HostControl

    Gets or set control which displaying inside the primitive.

    Declaration
    public Control HostControl { get; set; }
    Property Value
    Type Description
    System.Windows.Forms.Control

    Methods

    Clone()

    Declaration
    public override object Clone()
    Returns
    Type Description
    System.Object
    Overrides
    Primitive.Clone()

    IsContainControl(Control)

    Determines if a primitive contains control.

    Declaration
    public bool IsContainControl(Control control)
    Parameters
    Type Name Description
    System.Windows.Forms.Control control
    Returns
    Type Description
    System.Boolean

    OnBoundsChanged()

    Declaration
    protected override void OnBoundsChanged()
    Overrides
    Primitive.OnBoundsChanged()

    OnHostControlChanged()

    Declaration
    protected virtual void OnHostControlChanged()

    OnSizeChanged()

    Declaration
    protected override void OnSizeChanged()
    Overrides
    Primitive.OnSizeChanged()

    OnVisibleChanged()

    Declaration
    protected override void OnVisibleChanged()
    Overrides
    Primitive.OnVisibleChanged()

    Events

    HostControlChanged

    Raise by OnHostControlChanged() method.

    Declaration
    public event EventHandler HostControlChanged
    Event Type
    Type Description
    System.EventHandler

    Implements

    System.ICloneable
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved