menu

WinForms

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

    Show / Hide Table of Contents

    Class ControlBase

    Base class for supporting custom controls.

    Inheritance
    System.Object
    ControlBase
    CustomControlBase
    UserControlImpl
    Implements
    ICustomControlBase
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Forms.HTMLUI
    Assembly: Syncfusion.HTMLUI.Windows.dll
    Syntax
    public abstract class ControlBase : ICustomControlBase

    Constructors

    ControlBase()

    Initializes a new instance of the ControlBase class

    Declaration
    protected ControlBase()

    ControlBase(IHTMLElement)

    Initializes a new instance of the ControlBase class

    Declaration
    protected ControlBase(IHTMLElement parent)
    Parameters
    Type Name Description
    IHTMLElement parent

    Parent element for this object.

    ControlBase(IHTMLElement, Control)

    Initializes a new instance of the ControlBase class

    Declaration
    protected ControlBase(IHTMLElement parent, Control customControl)
    Parameters
    Type Name Description
    IHTMLElement parent

    Parent custom tag element.

    System.Windows.Forms.Control customControl

    Custom control instance.

    Properties

    CustomControl

    Gets the custom control object.

    Declaration
    public Control CustomControl { get; }
    Property Value
    Type
    System.Windows.Forms.Control

    DefaultSize

    Gets or sets the default size of the control.

    Declaration
    public Size DefaultSize { get; set; }
    Property Value
    Type
    System.Drawing.Size

    EventsAttached

    Gets or sets a value indicating whether events were attached to user control.

    Declaration
    protected bool EventsAttached { get; set; }
    Property Value
    Type
    System.Boolean

    Parent

    Gets the parent element container for the custom control.

    Declaration
    public IHTMLElement Parent { get; }
    Property Value
    Type
    IHTMLElement

    ParentElement

    Gets the BaseElement from parent tag element.

    Declaration
    protected BaseElement ParentElement { get; }
    Property Value
    Type
    BaseElement

    QuiteMode

    Gets or sets a value indicating whether the Quite mode state.

    Declaration
    protected bool QuiteMode { get; set; }
    Property Value
    Type
    System.Boolean

    Methods

    AttachEvents()

    Attaches events to the control.

    Declaration
    public virtual void AttachEvents()

    DetachEvents()

    Detaches events from the element.

    Declaration
    public virtual void DetachEvents()

    DisposeControl()

    Disposes of control and releases all of its resources.

    Declaration
    public virtual void DisposeControl()

    InitializeControl()

    Creates an instance of the control and configures it.

    Declaration
    public abstract void InitializeControl()

    OnInitEndCallback()

    Raised when initialization has been finished.

    Declaration
    public virtual void OnInitEndCallback()

    SetControl(Control)

    Sets the control instance.

    Declaration
    protected void SetControl(Control control)
    Parameters
    Type Name Description
    System.Windows.Forms.Control control

    Control object.

    SetLocation()

    Sets the location of the custom controls.

    Declaration
    public abstract void SetLocation()

    SetTabOrder()

    Sets the tab order in the control.

    Declaration
    protected virtual void SetTabOrder()

    Implements

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