Class DockHost
Inheritance
System.Object
DockHost
Assembly: Syncfusion.Tools.Windows.dll
public class DockHost : ContainerControl, IDraggable, ITabFeedback, IDockingManagerDesignerMouseHook, IDockable
Constructors
Constructor of the DockHost.
Declaration
public DockHost(DockingManager dmgr, Control ctrl)
Parameters
| Type |
Name |
Description |
| DockingManager |
dmgr |
The DockingManager instance.
|
| System.Windows.Forms.Control |
ctrl |
The dock enabled control.
|
Fields
Declaration
protected Icon controlImage
Field Value
Declaration
protected CaptionPainter cpTitleBar
Field Value
Declaration
protected int mImageIndex
Field Value
Declaration
protected int nImageIndex
Field Value
Declaration
Field Value
Declaration
protected Rectangle rcDrag
Field Value
| Type |
| System.Drawing.Rectangle |
Properties
Declaration
protected int BorderWidth { get; }
Property Value
Declaration
protected int CaptionHeight { get; }
Property Value
Gets the ClientRectangle.
Declaration
public Rectangle ClientRectangle { get; }
Property Value
| Type |
| System.Drawing.Rectangle |
Gets / Sets the Drag DockInfo
Declaration
public DockInfo DragDockInfo { get; set; }
Property Value
Gets/ Sets the DragRectangle.
Declaration
public Rectangle DragRectangle { get; set; }
Property Value
| Type |
| System.Drawing.Rectangle |
Gets / Sets the Image index.
Declaration
public int ImageIndex { get; set; }
Property Value
Gets / Sets the MDI Image index.
Declaration
public int MdiImageIndex { get; set; }
Property Value
Declaration
public CaptionPainter TitleBar { get; }
Property Value
Methods
Cancel the Drag operation.
Declaration
Returns the allowed drag axis.
Declaration
public DragAxis AllowedDragAxis(ref Point ptdrag, Point ptdelta)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
ptdrag |
The mouse point of the drag location.
|
| System.Drawing.Point |
ptdelta |
The mouse point.
|
Returns
| Type |
Description |
| DragAxis |
The dragged axis.
|
Creates a new accessibility object in DockHost.
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
| Type |
Description |
| System.Windows.Forms.AccessibleObject |
A new System.Windows.Forms.AccessibleObject for the DockHost, when AccessibilityEnabled for DockingManager is set as true
|
Declaration
protected virtual CaptionPainter CreateCaptionPainter()
Returns
Declaration
protected virtual DockHostController CreateDockHostController(DockingManager dmgr)
Parameters
Returns
Declaration
protected void dhcclient_ControlAdded(object sender, ControlEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
| System.Windows.Forms.ControlEventArgs |
e |
|
Declaration
protected void dhcclient_ControlRemoved(object sender, ControlEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
| System.Windows.Forms.ControlEventArgs |
e |
|
Declaration
protected void dhcclient_MouseDown(object sender, MouseEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
| System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
protected void dhclient_GotFocus(object sender, EventArgs e)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
| System.EventArgs |
e |
|
Declaration
protected void dhclient_LostFocus(object sender, EventArgs e)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
| System.EventArgs |
e |
|
Declaration
protected void dhclient_Validating(object sender, CancelEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
| System.ComponentModel.CancelEventArgs |
e |
|
Declaration
protected override void Dispose(bool bdisposing)
Parameters
| Type |
Name |
Description |
| System.Boolean |
bdisposing |
|
Declaration
protected void DockHost_MouseLeave(object sender, EventArgs e)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
| System.EventArgs |
e |
|
Indicates the DrawHollow.
Declaration
Returns
Gets the DockControllerBase.
Declaration
public DockControllerBase GetController()
Returns
Gets the Design mode of the DockingManager
Declaration
public bool GetDesignMode()
Returns
| Type |
Description |
| System.Boolean |
The DesignMode of the DockingManager.
|
Retrieves the next control forward in the tab order of docked controls.
Declaration
public Control GetNextControl(Control curControl)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.Control |
curControl |
The Control to start the search with.
|
Returns
| Type |
Description |
| System.Windows.Forms.Control |
The next control in the tab order.
|
Handles the Double click event.
Declaration
public void HandleDoubleClick(Point ptscreen)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
ptscreen |
|
Handles the Mouse down event.
Declaration
public void HandleMouseDown(MouseButtons button, Point ptscreen)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseButtons |
button |
Indicates the Mouse Buttons
|
| System.Drawing.Point |
ptscreen |
The coordinate point
|
Handles the Mouse leave event.
Declaration
public void HandleMouseLeave()
Handles the Mouse move event.
Declaration
public void HandleMouseMove(MouseButtons button, Point ptscreen)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseButtons |
button |
Indicates the Mouse Buttons
|
| System.Drawing.Point |
ptscreen |
The coordinate point
|
Handles the Mouse up event.
Declaration
public void HandleMouseUp(MouseButtons button, Point ptscreen)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseButtons |
button |
Indicates the Mouse Buttons
|
| System.Drawing.Point |
ptscreen |
The coordinate point
|
Declaration
protected void HostControl_HandleCreated(object sender, EventArgs e)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
| System.EventArgs |
e |
|
Declaration
protected void HostControl_HandleDestroyed(object sender, EventArgs e)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
| System.EventArgs |
e |
|
Initialize the Dock host.
Declaration
public virtual void InitializeDockHost(DockingManager dmgr, Control ctrl)
Parameters
| Type |
Name |
Description |
| DockingManager |
dmgr |
The DockingManager instance.
|
| System.Windows.Forms.Control |
ctrl |
The dock enabled control.
|
Declaration
public bool InitiateDrag(MouseAction action, Point ptscreen)
Parameters
| Type |
Name |
Description |
| MouseAction |
action |
The Mouse Action
|
| System.Drawing.Point |
ptscreen |
The mouse coordinate point.
|
Returns
Initiate the Floating resize
Declaration
public void InitiateFloatingResize(Point ptscreen, int nchittest)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
ptscreen |
The coordinate point
|
| System.Int32 |
nchittest |
|
Implementation of the IDraggable interface methods
Declaration
public bool IsSuitableDockTarget(DockControllerBase dc)
Parameters
Returns
Declaration
protected override void OnControlAdded(ControlEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.ControlEventArgs |
e |
|
Declaration
protected override void OnControlRemoved(ControlEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.ControlEventArgs |
e |
|
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.PaintEventArgs |
e |
|
Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
Declaration
protected override void OnVisibleChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
Declaration
protected override bool ProcessDialogKey(Keys keydata)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.Keys |
keydata |
|
Returns
Declaration
public bool ProvideTabFeedback(IDraggable idg, MouseAction action)
Parameters
Returns
Gets the QueryDragProceedWithDock.
Declaration
public bool QueryDragProceedWithDock()
Returns
Subscribe the child control events.
Declaration
public void RecSubscribeChildControlEvents(Control ctrl, bool subscribe)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.Control |
ctrl |
The Dock enabled control.
|
| System.Boolean |
subscribe |
Indicates whether the event subscribe or not.
|
Declaration
protected void RefreshCaptionPainter()
Declaration
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
Parameters
| Type |
Name |
Description |
| System.Int32 |
x |
|
| System.Int32 |
y |
|
| System.Int32 |
width |
|
| System.Int32 |
height |
|
| System.Windows.Forms.BoundsSpecified |
specified |
|
Subscribe the DockHost Events.
Declaration
public void SubscribeDockHostEvents()
Declaration
protected void this_ParentChanged(object sender, EventArgs e)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
| System.EventArgs |
e |
|
Unsubscribe the DockHost Events
Declaration
public void UnsubscribeDockHostEvents()
Declaration
protected static void UpdatePenColor(Color newColor)
Parameters
| Type |
Name |
Description |
| System.Drawing.Color |
newColor |
|
Declaration
protected override void WndProc(ref Message msg)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.Message |
msg |
|
Implements