menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class HostPrimitive - WindowsForms API Reference | Syncfusion

    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.Alignment
    Primitive.AlignmentChanged
    Primitive.BackColor
    Primitive.BackColorChanged
    Primitive.BorderColor
    Primitive.BorderColorChanged
    Primitive.BoundsChanged
    Primitive.c_primitiveSize
    Primitive.ClientRect
    Primitive.Draw(Graphics)
    Primitive.DrawBackground(Graphics)
    Primitive.DrawBorder(Graphics, PrimitiveBorderStyle)
    Primitive.DrawSelectedBorder(Graphics)
    Primitive.GetCenter()
    Primitive.Invalidate()
    Primitive.MouseDown
    Primitive.MouseMove
    Primitive.OnAlignmentChanged()
    Primitive.OnBackColorChanged()
    Primitive.OnBorderColorChanged()
    Primitive.OnMouseDown(MouseEventArgs)
    Primitive.OnMouseMove(MouseEventArgs)
    Primitive.OnOwnerControlChanged()
    Primitive.OnPositionChanged()
    Primitive.OnPrimitiveBorderStyleChanged()
    Primitive.OnSelectedChanged()
    Primitive.OwnerControlChanged
    Primitive.Position
    Primitive.PositionChanged
    Primitive.PrimitiveBorderStyle
    Primitive.PrimitiveBorderStyleChanged
    Primitive.PropertyChanged
    Primitive.Size
    Primitive.SizeChanged
    Primitive.ToString()
    Primitive.Visible
    Primitive.VisibleChanged
    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
    System.Windows.Forms.Control

    Methods

    Clone()

    Declaration
    public override object Clone()
    Returns
    Type
    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
    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
    System.EventHandler

    Implements

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