Class GroupDropAreaDragHeaderMouseController
Defines a class that provides support for dragging headers from the GroupDropArea.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid.Grouping
Assembly: Syncfusion.Grid.Grouping.Windows.dll
Syntax
public class GroupDropAreaDragHeaderMouseController : GroupDragHeaderMouseControllerBase, IMouseController, IGridFocusHelper
Constructors
GroupDropAreaDragHeaderMouseController(GridGroupDropArea)
Initializes a new instance of the GroupDropAreaDragHeaderMouseController class specified with the instance of the GridGroupDropArea class.
Declaration
public GroupDropAreaDragHeaderMouseController(GridGroupDropArea grid)
Parameters
Type | Name | Description |
---|---|---|
GridGroupDropArea | grid | The group drop area. |
Methods
CancelMode()
CancelMode is called for the active controller after a MouseDown message when the mouse operation is canceled.
Declaration
public override void CancelMode()
Overrides
GetGridTableControl()
Overrides and gets the grid associated with the grid.
Declaration
protected override GridTableControl GetGridTableControl()
Returns
Type | Description |
---|---|
GridTableControl | An instance of the GridTableControl class. |
Overrides
HitTest(MouseEventArgs, IMouseController)
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)
MouseDown is called when this controller signaled in HitTest that it wants to handle mouse events and the user pressed the mouse button.
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)
MouseMove is called 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)
MouseUp 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. |