Class DragSplitter
The DragSplitter class.
Inheritance
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class DragSplitter : Control, IDraggable, IDockingManagerDesignerMouseHook
Constructors
DragSplitter(DockingManager)
Constructor of the DragSplitter
Declaration
public DragSplitter(DockingManager dmgr)
Parameters
Type | Name | Description |
---|---|---|
DockingManager | dmgr | The DockingManager instance. |
Fields
nCaptionHt
Declaration
protected const int nCaptionHt = 16
Field Value
Type |
---|
System.Int32 |
nNamingCount
Declaration
protected static int nNamingCount
Field Value
Type |
---|
System.Int32 |
nSplitOffLt
Declaration
protected const int nSplitOffLt = 20
Field Value
Type |
---|
System.Int32 |
rcDrag
Declaration
protected Rectangle rcDrag
Field Value
Type |
---|
System.Drawing.Rectangle |
Properties
Cursor
Gets / Sets the Cursor.
Declaration
public override Cursor Cursor { get; set; }
Property Value
Type |
---|
System.Windows.Forms.Cursor |
DragDockInfo
Gets / Sets the DragDockInfo.
Declaration
public DockInfo DragDockInfo { get; set; }
Property Value
Type |
---|
DockInfo |
DragRectangle
Gets / Sets DragRectangle.
Declaration
public Rectangle DragRectangle { get; set; }
Property Value
Type |
---|
System.Drawing.Rectangle |
Methods
AbortDrag()
Cancel the drag operation.
Declaration
public void AbortDrag()
AllowedDragAxis(ref Point, Point)
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. |
CreateAccessibilityInstance()
Creates a new accessibility object in DragSplitter.
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
Type | Description |
---|---|
System.Windows.Forms.AccessibleObject | A new System.Windows.Forms.AccessibleObject for the DragSplitter, when AccessibilityEnabled for DockingManager is set as true |
Dispose(Boolean)
Declaration
protected override void Dispose(bool bdisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | bdisposing |
DrawHollow()
Returns the DrawHollow
Declaration
public bool DrawHollow()
Returns
Type |
---|
System.Boolean |
GetDesignMode()
Gets the design mode.
Declaration
public bool GetDesignMode()
Returns
Type |
---|
System.Boolean |
HandleDoubleClick(Point)
Handle the Double click event.
Declaration
public void HandleDoubleClick(Point ptscreen)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Point | ptscreen | The mouse co ordinate point. |
HandleMouseDown(MouseButtons, Point)
Handle the Mouse down event.
Declaration
public void HandleMouseDown(MouseButtons button, Point ptscreen)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseButtons | button | The MouseButtonse |
System.Drawing.Point | ptscreen | The mouse co ordinate point. |
HandleMouseLeave()
Handle the Double click event.
Declaration
public void HandleMouseLeave()
HandleMouseMove(MouseButtons, Point)
Handle the Mouse move event.
Declaration
public void HandleMouseMove(MouseButtons button, Point ptscreen)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseButtons | button | The MouseButtonse |
System.Drawing.Point | ptscreen | The mouse co ordinate point. |
HandleMouseUp(MouseButtons, Point)
Handle the Mouse up event.
Declaration
public void HandleMouseUp(MouseButtons button, Point ptscreen)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseButtons | button | The MouseButtonse |
System.Drawing.Point | ptscreen | The mouse co ordinate point. |
InitiateDrag(MouseAction, Point)
Initiate the drag.
Declaration
public bool InitiateDrag(MouseAction action, Point ptscreen)
Parameters
Type | Name | Description |
---|---|---|
MouseAction | action | The MouseAction on dragging. |
System.Drawing.Point | ptscreen | The co ordinate point. |
Returns
Type |
---|
System.Boolean |
InitiateFloatingResize(Point, Int32)
Initiate the Floating form resize.
Declaration
public void InitiateFloatingResize(Point ptscreen, int nchittest)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Point | ptscreen | The mouse co ordinate point. |
System.Int32 | nchittest |
IsSuitableDockTarget(DockControllerBase)
Returns the suitable dock target.
Declaration
public bool IsSuitableDockTarget(DockControllerBase dc)
Parameters
Type | Name | Description |
---|---|---|
DockControllerBase | dc | The DockControllerBase interface. |
Returns
Type |
---|
System.Boolean |
OnMouseDown(MouseEventArgs)
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e |
OnMouseEnter(EventArgs)
Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
OnMouseMove(MouseEventArgs)
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e |
OnMouseUp(MouseEventArgs)
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e |
OnPaint(PaintEventArgs)
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | e |
OnResize(EventArgs)
Declaration
protected override void OnResize(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
OnSplitterMoved(SplitterEventArgs)
Declaration
protected virtual void OnSplitterMoved(SplitterEventArgs splitevent)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.SplitterEventArgs | splitevent |
OnSplitterMoving(SplitterEventArgs)
Declaration
protected virtual void OnSplitterMoving(SplitterEventArgs splitevent)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.SplitterEventArgs | splitevent |
QueryDragProceedWithDock()
Returns the QueryDragProceedWithDock.
Declaration
public bool QueryDragProceedWithDock()
Returns
Type |
---|
System.Boolean |
UpdateCursor()
Update the cursor.
Declaration
public void UpdateCursor()
Events
DragSplitterMoved
Event fired on DragSplitter moved.
Declaration
public event SplitterEventHandler DragSplitterMoved
Event Type
Type |
---|
System.Windows.Forms.SplitterEventHandler |
DragSplitterMoving
Events fired before and after the splitter is moved
Declaration
public event SplitterEventHandler DragSplitterMoving
Event Type
Type |
---|
System.Windows.Forms.SplitterEventHandler |