Class MainFormController
The MainFormController class.
Inheritance
System.Object
MainFormController
Implements
System.IDisposable
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()
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class MainFormController : DockControllerBase, IDisposable
Constructors
MainFormController(DockingManager, ContainerControl)
Constructor of the MainFormController
Declaration
public MainFormController(DockingManager mgr, ContainerControl host)
Parameters
Type |
Name |
Description |
DockingManager |
mgr |
The DockingManager instance.
|
System.Windows.Forms.ContainerControl |
host |
The ContainerControl.
|
Fields
ahTabCtrlB
Declaration
protected AHTabControl ahTabCtrlB
Field Value
ahTabCtrlL
Declaration
protected AHTabControl ahTabCtrlL
Field Value
ahTabCtrlR
Declaration
protected AHTabControl ahTabCtrlR
Field Value
ahTabCtrlT
Declaration
protected AHTabControl ahTabCtrlT
Field Value
alChildren
Declaration
protected ArrayList alChildren
Field Value
Type |
System.Collections.ArrayList |
alVisibleFloatingForms
Declaration
protected ArrayList alVisibleFloatingForms
Field Value
Type |
System.Collections.ArrayList |
bOverlapSizing
Declaration
public bool bOverlapSizing
Field Value
ctrlFormClient
Declaration
protected Control ctrlFormClient
Field Value
Type |
System.Windows.Forms.Control |
ctrlHost
Declaration
protected ContainerControl ctrlHost
Field Value
Type |
System.Windows.Forms.ContainerControl |
dcPriority
Declaration
protected DockControllerBase dcPriority
Field Value
fhCtrl
Declaration
protected FocusHolder fhCtrl
Field Value
frmTopLevelSubscribed
Declaration
protected Form frmTopLevelSubscribed
Field Value
Type |
System.Windows.Forms.Form |
m_bInLayout
Declaration
protected bool m_bInLayout
Field Value
rcClientPool
Declaration
protected Rectangle rcClientPool
Field Value
Type |
System.Drawing.Rectangle |
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
Declaration
public override int ChildCount { get; }
Property Value
Overrides
ChildEnumerator
Declaration
public override IEnumerator ChildEnumerator { get; }
Property Value
Type |
System.Collections.IEnumerator |
Overrides
ChildHostCount
Declaration
public override int ChildHostCount { get; }
Property Value
Overrides
DCR
Declaration
public override IEnumerator DCR { get; }
Property Value
Type |
System.Collections.IEnumerator |
Overrides
Floating
Gets / Sets the Floating.
Declaration
public override bool Floating { get; set; }
Property Value
Overrides
FocusHolderControl
Gets the FocusHolderControl
Declaration
public FocusHolder FocusHolderControl { get; }
Property Value
HostControl
Declaration
public override Control HostControl { get; }
Property Value
Type |
System.Windows.Forms.Control |
Overrides
LayoutRect
Gets / Sets the Layout Rectangle.
Declaration
public override Rectangle LayoutRect { get; set; }
Property Value
Type |
System.Drawing.Rectangle |
Overrides
PriorityController
Gets / Sets the PriorityController
Declaration
public DockControllerBase PriorityController { get; set; }
Property Value
Methods
AddChild(DockControllerBase, DockingStyle)
Declaration
public override void AddChild(DockControllerBase dc, DockingStyle db)
Parameters
Overrides
AdjustLayout()
Adjust the layout of the Form controller.
Declaration
public override void AdjustLayout()
Overrides
AdjustLayoutDockArea()
Adjust the layout dock area.
Declaration
public virtual void AdjustLayoutDockArea()
AllowSplitterSizing(DockControllerBase, Int32)
Allow the splitter sizing.
Declaration
public bool AllowSplitterSizing(DockControllerBase dcbase, int deltasize)
Parameters
Type |
Name |
Description |
DockControllerBase |
dcbase |
The DockStateControllerBase instance.
|
System.Int32 |
deltasize |
|
Returns
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
Overrides
ChildControl_DockChanged(Object, EventArgs)
Declaration
protected void ChildControl_DockChanged(object sender, EventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.EventArgs |
e |
|
ChildControl_SizeChanged(Object, EventArgs)
Declaration
protected void ChildControl_SizeChanged(object sender, EventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.EventArgs |
e |
|
ChildControl_VisibleChanged(Object, EventArgs)
Declaration
protected void ChildControl_VisibleChanged(object sender, EventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.EventArgs |
e |
|
ctrl_Disposed(Object, EventArgs)
Declaration
protected void ctrl_Disposed(object sender, EventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.EventArgs |
e |
|
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
DrawDockEdgeBorders(Graphics)
Declaration
protected virtual void DrawDockEdgeBorders(Graphics gph)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gph |
|
EnterAutoHideMode(DockStateControllerBase, Boolean)
Declaration
public void EnterAutoHideMode(DockStateControllerBase ddcbase, bool animate)
Parameters
Type |
Name |
Description |
DockStateControllerBase |
ddcbase |
The DockStateControllerBase instance.
|
System.Boolean |
animate |
Indicates whether it need to be animate or not.
|
ExitAutoHideMode(DockStateControllerBase, Boolean)
Declaration
public void ExitAutoHideMode(DockStateControllerBase ddcbase, bool bcloseonexit)
Parameters
Type |
Name |
Description |
DockStateControllerBase |
ddcbase |
The DockStateControllerBase instance.
|
System.Boolean |
bcloseonexit |
Indicates whether its closed on exit.
|
GetAHTabControl(DockingStyle)
Declaration
public AHTabControl GetAHTabControl(DockingStyle border)
Parameters
Type |
Name |
Description |
DockingStyle |
border |
The Syncfusion.Windows.Forms.Tools.DockingStyle.
|
Returns
GetBorderController(DockingStyle)
Gets the BorderController
Declaration
public DockControllerBase GetBorderController(DockingStyle border)
Parameters
Type |
Name |
Description |
DockingStyle |
border |
The Syncfusion.Windows.Forms.Tools.DockingStyle
|
Returns
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.
|
Returns
Overrides
GetChildHostIndex(DockControllerBase)
Gets the Child host index from the child.
Declaration
public override int GetChildHostIndex(DockControllerBase child)
Parameters
Returns
Overrides
GetControllerBorder(DockControllerBase)
Declaration
protected DockingStyle GetControllerBorder(DockControllerBase dctarget)
Parameters
Returns
GetDockInfo(Control, Point, DockInfo)
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 |
The mouse co ordinate point.
|
DockInfo |
di |
The dock info.
|
Overrides
GetDockInfoForController(DockControllerBase)
Gets the dock info for controller.
Declaration
public DockInfo GetDockInfoForController(DockControllerBase dctarget)
Parameters
Returns
HideAllFloatingForms()
Declaration
protected void HideAllFloatingForms()
HideAllFloatingForms(Boolean)
Declaration
protected void HideAllFloatingForms(bool fireVisibilityChange)
Parameters
Type |
Name |
Description |
System.Boolean |
fireVisibilityChange |
|
HitTestBorderRect(Rectangle, ref Rectangle[], Point, DockInfo)
Declaration
protected virtual void HitTestBorderRect(Rectangle rcfull, ref Rectangle[] borders, Point pt, DockInfo di)
Parameters
Type |
Name |
Description |
System.Drawing.Rectangle |
rcfull |
|
System.Drawing.Rectangle[] |
borders |
|
System.Drawing.Point |
pt |
|
DockInfo |
di |
|
HostControl_ChildControlAdded(Object, ControlEventArgs)
Declaration
protected void HostControl_ChildControlAdded(object obj, ControlEventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
System.Windows.Forms.ControlEventArgs |
e |
|
HostControl_ChildControlRemoved(Object, ControlEventArgs)
Declaration
protected void HostControl_ChildControlRemoved(object obj, ControlEventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
System.Windows.Forms.ControlEventArgs |
e |
|
HostControl_Layout(Object, LayoutEventArgs)
Declaration
protected void HostControl_Layout(object sender, LayoutEventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.Windows.Forms.LayoutEventArgs |
e |
|
HostControl_Paint(Object, PaintEventArgs)
Declaration
protected void HostControl_Paint(object obj, PaintEventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
System.Windows.Forms.PaintEventArgs |
e |
|
HostControl_ParentChanged(Object, EventArgs)
Declaration
protected void HostControl_ParentChanged(object sender, EventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.EventArgs |
e |
|
HostControl_VisibleChanged(Object, EventArgs)
Declaration
protected void HostControl_VisibleChanged(object sender, EventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.EventArgs |
e |
|
InitializeComponent()
Declaration
protected void InitializeComponent()
InsertChild(DockControllerBase, Int32, DockingStyle)
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 Syncfusion.Windows.Forms.Tools.DockingStyle.
|
Overrides
InvokeDCRDocking(DockControllerBase, DCRelationship)
Overrides the InvokeDCRDocking.
Declaration
public override void InvokeDCRDocking(DockControllerBase dc, DCRelationship dcr)
Parameters
Overrides
InvokeDocking(DockControllerBase)
Overrides the InvokeDocking.
Declaration
public override void InvokeDocking(DockControllerBase dc)
Parameters
Overrides
IsTargetController(Point)
Returns the TargetController
Declaration
public override bool IsTargetController(Point ptscreen)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
ptscreen |
The mouse co ordinate point.
|
Returns
Overrides
LoadInAutoHideMode(DockStateControllerBase)
Declaration
public void LoadInAutoHideMode(DockStateControllerBase ddcbase)
Parameters
MainForm_MdiChildActivate(Object, EventArgs)
Declaration
protected void MainForm_MdiChildActivate(object sender, EventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.EventArgs |
e |
|
OnAHSplitterPaint(Object, PaintEventArgs)
Draw the outer border for the splitter control
Declaration
public void OnAHSplitterPaint(object obj, PaintEventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
obj |
The source of the control.
|
System.Windows.Forms.PaintEventArgs |
e |
The PaintEventArgs contains the event data.
|
QueryController(String)
Declaration
protected override DockControllerBase QueryController(string uniqueName)
Parameters
Type |
Name |
Description |
System.String |
uniqueName |
|
Returns
Overrides
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
Overrides
RecGetControllerInfo(DockControllerBase, DockControllerBase)
Declaration
protected bool RecGetControllerInfo(DockControllerBase dc, DockControllerBase target)
Parameters
Returns
RecIsChildOfController(DockControllerBase, DockControllerBase)
Declaration
protected bool RecIsChildOfController(DockControllerBase dc, DockControllerBase target)
Parameters
Returns
Refresh()
Declaration
public override void Refresh()
Overrides
RemoveChild(DockControllerBase)
Overrides the RemoveChild
Declaration
public override void RemoveChild(DockControllerBase dc)
Parameters
Overrides
ShowAllFloatingForms()
Declaration
protected void ShowAllFloatingForms()
ShowAllFloatingForms(Boolean)
Declaration
protected void ShowAllFloatingForms(bool fireVisibilityChange)
Parameters
Type |
Name |
Description |
System.Boolean |
fireVisibilityChange |
|
TopLevelControl_Resize(Object, EventArgs)
Declaration
protected void TopLevelControl_Resize(object sender, EventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.EventArgs |
e |
|
UpdateControl()
Declaration
public override void UpdateControl()
Overrides
UpdateFormClientSetting()
Invoked by the docking manager when the form first loads
Declaration
public void UpdateFormClientSetting()
UpdatePriorityIndices()
Declaration
protected void UpdatePriorityIndices()
Implements
System.IDisposable