Class ChartDockingManager
ChartDockingManager provides docking feature of chart elements (Legends, Titles, ToolBar...).
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
public sealed class ChartDockingManager : IDisposable
Constructors
ChartDockingManager()
Initializes a new instance of the ChartDockingManager class.
Declaration
public ChartDockingManager()
ChartDockingManager(Control)
Initializes a new instance of the ChartDockingManager class.
Declaration
public ChartDockingManager(Control host)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | host | The host. |
Properties
DockAlignment
If it's enable, user can set using mouse alignment for controls.
Declaration
[ChartTemplate(ChartTemplateSet.Simple)]
public bool DockAlignment { get; set; }
Property Value
Type |
---|
System.Boolean |
LayoutMode
Gets or sets the layout mode.
Declaration
public ChartLayoutMode LayoutMode { get; set; }
Property Value
Type | Description |
---|---|
ChartLayoutMode | The layout mode. |
Placement
Determines if the docked element is placed inside or outside the host.
Declaration
public ChartPlacement Placement { get; set; }
Property Value
Type | Description |
---|---|
ChartPlacement | The placement. |
Spacing
Indicates space between chart elements.
Declaration
public int Spacing { get; set; }
Property Value
Type |
---|
System.Int32 |
Methods
Add(IChartDockControl)
Adds the specified control to the ChartDockingManager.
Declaration
public void Add(IChartDockControl control)
Parameters
Type | Name | Description |
---|---|---|
IChartDockControl | control | The control. |
Clear()
Clears all dock controls.
Declaration
public void Clear()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
DoLayout(Rectangle)
Returns the size of the specified rectangle.
Declaration
public Rectangle DoLayout(Rectangle rect)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Rectangle | rect | The bounds of host element. |
Returns
Type |
---|
System.Drawing.Rectangle |
Freeze()
This method prevents manager from any processing and firing of events.
Declaration
public void Freeze()
GetAllControls()
Returns the controls.
Declaration
public IEnumerable GetAllControls()
Returns
Type |
---|
System.Collections.IEnumerable |
Melt()
This method restores the original state of manager (before freezing).
Declaration
public void Melt()
Remove(IChartDockControl)
Removes the specified control from the Docking manager.
Declaration
public void Remove(IChartDockControl control)
Parameters
Type | Name | Description |
---|---|---|
IChartDockControl | control | The control. |
Events
SizeChanged
An event that is raised when the size of the docking manager is changed.
Declaration
public event EventHandler SizeChanged
Event Type
Type |
---|
System.EventHandler |