Class SizingController
The SizingController class provides the required information.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class SizingController : DockControllerBase, IDisposable, IResizable
Constructors
SizingController(DockingManager, Control, DockPreference)
Constructor of the SizingController.
Declaration
public SizingController(DockingManager mgr, Control ctrl, DockPreference dp)
Parameters
Type | Name | Description |
---|---|---|
DockingManager | mgr | The DockingManager instance. |
System.Windows.Forms.Control | ctrl | The dock enabled control. |
DockPreference | dp | The DockPreference. |
Fields
alChildren
Declaration
protected ArrayList alChildren
Field Value
Type |
---|
System.Collections.ArrayList |
alDCRShared
Declaration
protected ArrayList alDCRShared
Field Value
Type |
---|
System.Collections.ArrayList |
ctrlHost
Declaration
protected Control ctrlHost
Field Value
Type |
---|
System.Windows.Forms.Control |
currentRelationship
Declaration
protected DCRelationship currentRelationship
Field Value
Type |
---|
DCRelationship |
dcPriority
Declaration
protected DockControllerBase dcPriority
Field Value
Type |
---|
DockControllerBase |
dpOrder
Declaration
protected DockPreference dpOrder
Field Value
Type |
---|
DockPreference |
ieSizing
Declaration
protected IEnumerator ieSizing
Field Value
Type |
---|
System.Collections.IEnumerator |
rcLayout
Declaration
protected Rectangle rcLayout
Field Value
Type |
---|
System.Drawing.Rectangle |
Properties
ChildControllers
Gets the ChildControllers.
Declaration
public override ArrayList ChildControllers { get; }
Property Value
Type |
---|
System.Collections.ArrayList |
Overrides
ChildCount
Gets the ChildCount
Declaration
public override int ChildCount { get; }
Property Value
Type |
---|
System.Int32 |
Overrides
ChildEnumerator
Gets the ChildEnumerator
Declaration
public override IEnumerator ChildEnumerator { get; }
Property Value
Type |
---|
System.Collections.IEnumerator |
Overrides
ChildHostCount
Gets the ChildHostCount.
Declaration
public override int ChildHostCount { get; }
Property Value
Type |
---|
System.Int32 |
Overrides
ChildHostEnumerator
Gets the ChildHostEnumerator.
Declaration
public override IEnumerator ChildHostEnumerator { get; }
Property Value
Type |
---|
System.Collections.IEnumerator |
Overrides
DCR
Gets the IEnumerator.
Declaration
public override IEnumerator DCR { get; }
Property Value
Type |
---|
System.Collections.IEnumerator |
Overrides
DCRCurrent
Gets / Sets the current DCRelationship.
Declaration
public override DCRelationship DCRCurrent { get; set; }
Property Value
Type |
---|
DCRelationship |
Overrides
DICurrent
Gets / Sets the DICurrent. Overrides.
Declaration
public override DockInfo DICurrent { get; set; }
Property Value
Type | Description |
---|---|
DockInfo | The DockInfo |
Overrides
DockingOrder
Gets the DockPreference
Declaration
public DockPreference DockingOrder { get; }
Property Value
Type |
---|
DockPreference |
Floating
Gets / Sets the Floating. Travel up the hierarchy till you reach a windowed controller
Declaration
public override bool Floating { get; set; }
Property Value
Type |
---|
System.Boolean |
Overrides
HostControl
Gets the HostControl.
Declaration
public override Control HostControl { get; }
Property Value
Type |
---|
System.Windows.Forms.Control |
Overrides
IsEmpty
Gets the IsEmpty
Declaration
public bool IsEmpty { get; }
Property Value
Type |
---|
System.Boolean |
LayoutRect
Gets / Sets the Layout Rectangle.
Declaration
public override Rectangle LayoutRect { get; set; }
Property Value
Type |
---|
System.Drawing.Rectangle |
Overrides
MinimumSize
Gets the Minimum size.
Declaration
public override Size MinimumSize { get; }
Property Value
Type |
---|
System.Drawing.Size |
Overrides
PriorityController
Gets / Sets the PriorityController
Declaration
public DockControllerBase PriorityController { get; set; }
Property Value
Type |
---|
DockControllerBase |
Methods
AddChild(DockControllerBase, DockingStyle)
Add the child in SizingController.
Declaration
public override void AddChild(DockControllerBase dcinternal, DockingStyle db)
Parameters
Type | Name | Description |
---|---|---|
DockControllerBase | dcinternal | The DockControllerBase instance. |
DockingStyle | db | The DockingStyle |
Overrides
AddToDCRSharedList(DCRelationship, Boolean)
Add To DCRSharedList
Declaration
public void AddToDCRSharedList(DCRelationship dcr, bool baddtochildren)
Parameters
Type | Name | Description |
---|---|---|
DCRelationship | dcr | |
System.Boolean | baddtochildren |
AdjustLayout()
Overrides the AdjustLayout.
Declaration
public override void AdjustLayout()
Overrides
AdjustLRLayout()
Declaration
protected void AdjustLRLayout()
AdjustTBLayout()
Declaration
protected void AdjustTBLayout()
AttemptDCRDocking(DockControllerBase, IEnumerator)
Overrides the AttemptDCRDocking
Declaration
public override bool AttemptDCRDocking(DockControllerBase ctrl, IEnumerator iedcr)
Parameters
Type | Name | Description |
---|---|---|
DockControllerBase | ctrl | The DockControllerBase instance. |
System.Collections.IEnumerator | iedcr |
Returns
Type |
---|
System.Boolean |
Overrides
CalculateSize(Size, Size)
Calculate the size.
Declaration
public Size CalculateSize(Size parentSize, Size newParentSize)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Size | parentSize | The parent size. |
System.Drawing.Size | newParentSize | New parent size. |
Returns
Type |
---|
System.Drawing.Size |
CloseController()
Call CloseController on this controller's immediate children. This will invoke recursion.
Declaration
public override void CloseController()
Overrides
CreateNewSplitter()
Declaration
protected DragSplitter CreateNewSplitter()
Returns
Type |
---|
DragSplitter |
Dispose(Boolean)
Declaration
protected override void Dispose(bool bdisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | bdisposing |
Overrides
DockAsMDIChild()
Overrides the DockAsMDIChild
Declaration
public override void DockAsMDIChild()
Overrides
DoRecTabbedRedocking(DockControllerBase, DockInfo)
Declaration
protected DockControllerBase DoRecTabbedRedocking(DockControllerBase dc, DockInfo di)
Parameters
Type | Name | Description |
---|---|---|
DockControllerBase | dc | |
DockInfo | di |
Returns
Type |
---|
DockControllerBase |
GetChildAt(Int32)
Gets the child in specified index.
Declaration
public override DockControllerBase GetChildAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the child control. |
Returns
Type |
---|
DockControllerBase |
Overrides
GetChildDockHosts(ref ArrayList)
Declaration
protected void GetChildDockHosts(ref ArrayList alDockHosts)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ArrayList | alDockHosts |
GetChildHostIndex(DockControllerBase)
Gets the child host index.
Declaration
public override int GetChildHostIndex(DockControllerBase child)
Parameters
Type | Name | Description |
---|---|---|
DockControllerBase | child | The DockControllerBase instance. |
Returns
Type |
---|
System.Int32 |
Overrides
GetDockControllers()
Declaration
protected ArrayList GetDockControllers()
Returns
Type |
---|
System.Collections.ArrayList |
GetDockInfo(Control, Point, DockInfo)
Overrides the GetDockInfo
Declaration
public override void GetDockInfo(Control ctrl, Point pt, DockInfo di)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | ctrl | The dock enabled control. |
System.Drawing.Point | pt | Mouse point |
DockInfo | di | The DockInfo |
Overrides
GetResizableDockControllers()
Declaration
protected ArrayList GetResizableDockControllers()
Returns
Type |
---|
System.Collections.ArrayList |
InsertChild(DockControllerBase, Int32, DockingStyle)
Insert the child in SizingController.
Declaration
public override void InsertChild(DockControllerBase dc, int index, DockingStyle db)
Parameters
Type | Name | Description |
---|---|---|
DockControllerBase | dc | The DockControllerBase instance. |
System.Int32 | index | The index which needs to be inserted. |
DockingStyle | db | The DockingStyle |
Overrides
InvokeDCRDocking(DockControllerBase, DCRelationship)
Overrides the InvokeDCRDocking.
Declaration
public override void InvokeDCRDocking(DockControllerBase dc, DCRelationship dcr)
Parameters
Type | Name | Description |
---|---|---|
DockControllerBase | dc | The DockControllerBase instance. |
DCRelationship | dcr | The DCRelationship |
Overrides
InvokeDocking(DockControllerBase)
Invoke the docking in SizingController.
Declaration
public override void InvokeDocking(DockControllerBase dc)
Parameters
Type | Name | Description |
---|---|---|
DockControllerBase | dc | The DockControllerBase instance. |
Overrides
IsHorizontallyResizable()
Gets whether its Horizontally Resizable or not.
Declaration
public bool IsHorizontallyResizable()
Returns
Type |
---|
System.Boolean |
IsVerticallyResizable()
Gets whether its Vertically Resizable or not.
Declaration
public bool IsVerticallyResizable()
Returns
Type |
---|
System.Boolean |
QueryDropProceedWithDock(Control, DockingStyle)
Overrides the QueryDropProceedWithDock
Declaration
public override bool QueryDropProceedWithDock(Control ctrldrop, DockingStyle style)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | ctrldrop | The dock enabled control. |
DockingStyle | style | The Syncfusion.Windows.Forms.Tools.DockingStyle. |
Returns
Type |
---|
System.Boolean |
Overrides
QueryRelationship(DCRelationship)
Overrides the QueryRelationship.
Declaration
public override bool QueryRelationship(DCRelationship dcr)
Parameters
Type | Name | Description |
---|---|---|
DCRelationship | dcr | The DCRelationship |
Returns
Type |
---|
System.Boolean |
Overrides
RedockController(DockInfo, Boolean)
Overrides the RedockController.
Declaration
public override DockControllerBase RedockController(DockInfo di, bool bforcenew)
Parameters
Type | Name | Description |
---|---|---|
DockInfo | di | The DockInfo. |
System.Boolean | bforcenew | Indicates whether the control is forced to new dock. |
Returns
Type |
---|
DockControllerBase |
Overrides
RemoveChild(DockControllerBase)
Overrides the RemoveChild
Declaration
public override void RemoveChild(DockControllerBase dcinternal)
Parameters
Type | Name | Description |
---|---|---|
DockControllerBase | dcinternal | The DockControllerBase instance. |
Overrides
ReplaceChild(DockControllerBase, DockControllerBase)
Overrides the ReplaceChild.
Declaration
public override void ReplaceChild(DockControllerBase dccurrent, DockControllerBase dcnew)
Parameters
Type | Name | Description |
---|---|---|
DockControllerBase | dccurrent | The current DockControllerBase instance. |
DockControllerBase | dcnew | New DockControllerBase instance. |
Overrides
ToggleSplitterVisibility(DockControllerBase, DockControllerBase, Boolean)
Declaration
protected void ToggleSplitterVisibility(DockControllerBase dccurrent, DockControllerBase dcnew, bool empty)
Parameters
Type | Name | Description |
---|---|---|
DockControllerBase | dccurrent | |
DockControllerBase | dcnew | |
System.Boolean | empty |
UpdateControl()
Update the control.
Declaration
public override void UpdateControl()
Overrides
UpdateControlList()
Declaration
protected void UpdateControlList()