menu

WinForms

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

    Show / Hide Table of Contents

    Class ChartDockControl

    That class that implements the basic functionality of IChartDockControl interface.

    Inheritance
    System.Object
    ChartDockControl
    ChartLegend
    ChartTitle
    Implements
    IChartDockControl
    Namespace: Syncfusion.Windows.Forms.Chart
    Assembly: Syncfusion.Chart.Base.dll
    Syntax
    public class ChartDockControl : Control, IChartDockControl
    Remarks

    This class can be used as the host for other controls.

    Examples

    Button button1 = new Button();

    button1.Text = "Button";

    chartControl1.DockingManager.Add( new ChartDockControl( button1 ));

    Constructors

    ChartDockControl()

    Initializes a new instance of the ChartDockControl class.

    Declaration
    public ChartDockControl()

    ChartDockControl(Control)

    Initializes a new instance of the ChartDockControl class.

    Declaration
    public ChartDockControl(Control control)
    Parameters
    Type Name Description
    System.Windows.Forms.Control control

    The control.

    Properties

    Alignment

    Controls the alignment of the Docked Control inside the ChartArea

    Declaration
    public virtual ChartAlignment Alignment { get; set; }
    Property Value
    Type
    ChartAlignment

    Behavior

    Gets or sets the docking behaviour.

    Declaration
    public ChartDockingFlags Behavior { get; set; }
    Property Value
    Type
    ChartDockingFlags

    DockingFree

    Indicates if the control is docking free.

    Declaration
    public bool DockingFree { get; set; }
    Property Value
    Type
    System.Boolean

    Name

    Gets or sets the name of the control.

    Declaration
    public string Name { get; set; }
    Property Value
    Type
    System.String

    Orientation

    Specifies the orientation of the docked control inside ChartArea

    Declaration
    public virtual ChartOrientation Orientation { get; set; }
    Property Value
    Type
    ChartOrientation

    Position

    Specifies the docking position of the control

    Declaration
    public virtual ChartDock Position { get; set; }
    Property Value
    Type
    ChartDock

    Methods

    Measure(SizeF)

    Measure size of control.

    Declaration
    public virtual SizeF Measure(SizeF size)
    Parameters
    Type Name Description
    System.Drawing.SizeF size
    Returns
    Type
    System.Drawing.SizeF

    Events

    ChartAlignmentChanged

    An event that is triggered when Alignment is changed.

    Declaration
    public event EventHandler ChartAlignmentChanged
    Event Type
    Type
    System.EventHandler

    ChartDockChanged

    An event that is triggered when Position is changed.

    Declaration
    public event EventHandler ChartDockChanged
    Event Type
    Type
    System.EventHandler

    LocationChanging

    An event that is triggered when Location is changing.

    Declaration
    public event LocationEventHandler LocationChanging
    Event Type
    Type
    LocationEventHandler

    Explicit Interface Implementations

    IChartDockControl.add_LocationChanged(EventHandler)

    Declaration
    void IChartDockControl.add_LocationChanged(EventHandler value)
    Parameters
    Type Name Description
    System.EventHandler value

    IChartDockControl.add_SizeChanged(EventHandler)

    Declaration
    void IChartDockControl.add_SizeChanged(EventHandler value)
    Parameters
    Type Name Description
    System.EventHandler value

    IChartDockControl.add_VisibleChanged(EventHandler)

    Declaration
    void IChartDockControl.add_VisibleChanged(EventHandler value)
    Parameters
    Type Name Description
    System.EventHandler value

    IChartDockControl.get_Enabled()

    Declaration
    bool IChartDockControl.get_Enabled()
    Returns
    Type
    System.Boolean

    IChartDockControl.get_Location()

    Declaration
    Point IChartDockControl.get_Location()
    Returns
    Type
    System.Drawing.Point

    IChartDockControl.get_Size()

    Declaration
    Size IChartDockControl.get_Size()
    Returns
    Type
    System.Drawing.Size

    IChartDockControl.remove_LocationChanged(EventHandler)

    Declaration
    void IChartDockControl.remove_LocationChanged(EventHandler value)
    Parameters
    Type Name Description
    System.EventHandler value

    IChartDockControl.remove_SizeChanged(EventHandler)

    Declaration
    void IChartDockControl.remove_SizeChanged(EventHandler value)
    Parameters
    Type Name Description
    System.EventHandler value

    IChartDockControl.remove_VisibleChanged(EventHandler)

    Declaration
    void IChartDockControl.remove_VisibleChanged(EventHandler value)
    Parameters
    Type Name Description
    System.EventHandler value

    IChartDockControl.set_Enabled(Boolean)

    Declaration
    void IChartDockControl.set_Enabled(bool value)
    Parameters
    Type Name Description
    System.Boolean value

    IChartDockControl.set_Location(Point)

    Declaration
    void IChartDockControl.set_Location(Point value)
    Parameters
    Type Name Description
    System.Drawing.Point value

    IChartDockControl.set_Size(Size)

    Declaration
    void IChartDockControl.set_Size(Size value)
    Parameters
    Type Name Description
    System.Drawing.Size value

    IChartDockControl.Visible

    Declaration
    bool IChartDockControl.Visible { get; set; }
    Returns
    Type
    System.Boolean

    Implements

    IChartDockControl

    See Also

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