Class CustomDragProvider
Custom Drag Provider class will provide the option to change the default drag provider style.
Inheritance
System.Object
CustomDragProvider
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
public class CustomDragProvider : IDragProvider
Constructors
Creates a new instances of a class.
Declaration
public CustomDragProvider()
Declaration
public CustomDragProvider(DockingManager dockingManager)
Parameters
Fields
Indicates the flag to Initiate the drag or not
Declaration
protected bool bInitiateDrag
Field Value
Declaration
protected bool m_bAllowDrag
Field Value
Declaration
protected int m_borderWidth
Field Value
Declaration
protected DockingManager m_DockingManager
Field Value
Declaration
protected bool m_singleTabOperate
Field Value
Instance of the DragMessageFilter class to specify the messages of Mouse and Paint messages.
Declaration
protected static DragMessageFilter MessageFilter
Field Value
Specifies the initial position of the dragging point.
Declaration
Field Value
Type |
System.Drawing.Point |
Specifies the current point of the dragging window.
Declaration
protected Point ptMoveStart
Field Value
Type |
System.Drawing.Point |
Static field to get or set the bool value whether the DisallowFloating cursor should be displayed or not.
Declaration
public static bool ShowDisallowFloatCursor
Field Value
Properties
Specifies whether dragging of controls is allowed.
Declaration
public bool AllowDrag { get; set; }
Property Value
Returns the CanFloat When DisallowFloating
Declaration
public virtual bool CanFloatWhenDisallowFloating { get; }
Property Value
Gets/sets the docking manager instance.
Declaration
public DockingManager DockingManager { get; set; }
Property Value
Specifies the currently being dragged control.
Declaration
public IDraggable DraggingControl { get; set; }
Property Value
Gets / Sets the SingleTabOperate.
Declaration
public virtual bool SingleTabOperate { get; set; }
Property Value
Methods
Declaration
protected virtual Point CalculateFormOffset(IDraggable ctrl, Point ptClient)
Parameters
Type |
Name |
Description |
IDraggable |
ctrl |
|
System.Drawing.Point |
ptClient |
|
Returns
Type |
System.Drawing.Point |
Declaration
protected bool CanFloat(DockControllerBase controller)
Parameters
Returns
Declaration
protected bool CanFloat(IDraggable draggingControl)
Parameters
Returns
Correct docked window location, after it has been dragged outside of
working area, so it becomes visible.
Declaration
protected void CorrectDockedLocation(IDraggable ctrl)
Parameters
Dispose the custom drag provider.
Declaration
public virtual void Dispose()
Declaration
public virtual void ForceStopDrag()
Overridable method. It gets current the Docking Information
Declaration
protected void GetNewDockInfo(IDraggable ctrl, Point ptscreen)
Parameters
Type |
Name |
Description |
IDraggable |
ctrl |
|
System.Drawing.Point |
ptscreen |
|
Declaration
protected virtual DockHostController GetUnderlayingController(Control underlaying)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Control |
underlaying |
|
Returns
Overridable method. Returns the control being dragged currently.
Declaration
public virtual Control GetUnderlyingControl(Point point)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
point |
|
Returns
Type |
System.Windows.Forms.Control |
Declaration
protected void GetYOffset(out int borderHWidth, ref Point ptClient)
Parameters
Type |
Name |
Description |
System.Int32 |
borderHWidth |
|
System.Drawing.Point |
ptClient |
|
Declaration
protected virtual void InitiateDrag(IDraggable ctrl, Point ptscreen)
Parameters
Type |
Name |
Description |
IDraggable |
ctrl |
|
System.Drawing.Point |
ptscreen |
|
Returns if it is allowed do dock IDraggable control to internal target controller.
Declaration
protected virtual bool IsDockAllowed(IDraggable ctrl)
Parameters
Type |
Name |
Description |
IDraggable |
ctrl |
Dragging control.
|
Returns
Type |
Description |
System.Boolean |
Is dock operation allowed.
|
Returns if it is allowed do dock IDraggable control to specified target controller.
Declaration
protected virtual bool IsDockAllowed(IDraggable ctrl, DockControllerBase targetCtrl)
Parameters
Returns
Type |
Description |
System.Boolean |
Is dock operation allowed.
|
Declaration
public virtual void ProcessCtrlKeyDown()
Declaration
public virtual void ProcessCtrlKeyUp()
Declaration
public virtual void ProcessDoubleClick()
Declaration
public virtual void ProcessMouseDown(DockControllerBase controller, IDraggable ctrl, Point ptscreen)
Parameters
Declaration
public virtual void ProcessMouseMove(DockControllerBase controller, IDraggable ctrl, Point ptscreen)
Parameters
Declaration
public virtual void ProcessMouseUp(DockControllerBase controller, IDraggable ctrl, Point ptscreen)
Parameters
Declaration
public virtual void TerminateDrag(IDraggable ctrl, Point ptscreen)
Parameters
Type |
Name |
Description |
IDraggable |
ctrl |
|
System.Drawing.Point |
ptscreen |
|
Declaration
protected virtual void TransitToPrevDock(IDraggable ctrl)
Parameters
Declaration
public virtual void UpdateColors()