Class GridTableControlDragHeaderMouseController
Defines a class that provides the mouse controller support for dragging column headers within the GridTableControl or dragging them to the GridGroupDropArea.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid.Grouping
Assembly: Syncfusion.Grid.Grouping.Windows.dll
Syntax
public class GridTableControlDragHeaderMouseController : GroupDragHeaderMouseControllerBase, IMouseController, IGridFocusHelper
Constructors
GridTableControlDragHeaderMouseController(GridTableControl)
Initializes a new instance of the GridTableControlDragHeaderMouseController class specified with the grid it operates on
Declaration
public GridTableControlDragHeaderMouseController(GridTableControl grid)
Parameters
Type | Name | Description |
---|---|---|
GridTableControl | grid | The instance of the GridTableControl class associated with the mouse controller. |
Methods
CancelMode()
Overrides and performs the CancelMode operation when the current mouse operation is canceled.
Declaration
public override void CancelMode()
Overrides
HitTest(MouseEventArgs, IMouseController)
Overrides and HitTest is called to determine whether your controller wants to handle the mouse events based current context.
Declaration
public override int HitTest(MouseEventArgs e, IMouseController controller)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e | A System.Windows.Forms.MouseEventArgs contains the event data. |
IMouseController | controller | A IMouseController that has indicated to handle the mouse event. |
Returns
Type | Description |
---|---|
System.Int32 | A non-zero value if the button can and wants to handle the mouse event; 0 if the mouse event is unrelated for this button. |
Overrides
MouseDown(MouseEventArgs)
Overrides and triggered when the System.Windows.Forms.Control.MouseDown is done and this controller signaled in HitTest that it wants to handle mouse events pressed by the user.
Declaration
public override void MouseDown(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e | A System.Windows.Forms.MouseEventArgs contains the event data. |
Overrides
MouseMove(MouseEventArgs)
Overrides and triggered when the System.Windows.Forms.Control.MouseMove event is done for the active controller after a MouseDown message when the user moves the mouse pointer.
Declaration
public override void MouseMove(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e | A System.Windows.Forms.MouseEventArgs contains the event data. |
Overrides
MouseUp(MouseEventArgs)
Overrides and triggered when the System.Windows.Forms.Control.MouseUp event is called for the active controller after a MouseDown message when the user releases the mouse button.
Declaration
public override void MouseUp(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e | A System.Windows.Forms.MouseEventArgs contains the event data. |