Class GridSelectionStateCommand
Holds undo information about the selection state at a previous operation.
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()
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridSelectionStateCommand : GridModelCommand
Remarks
A GridSelectionStateCommand is created by the CreateSelectionStateCommand() of CommandStack.
Constructors
GridSelectionStateCommand(GridModel, Int32, Int32, GridRangeInfo[])
Initializes a new GridSelectionStateCommand with information about current cell position and selected ranges.
Declaration
public GridSelectionStateCommand(GridModel table, int currentRow, int currentCol, GridRangeInfo[] ranges)
Parameters
Type | Name | Description |
---|---|---|
GridModel | table | The GridModel this command is associated with. |
System.Int32 | currentRow | The row index of current cell. |
System.Int32 | currentCol | The column index of current cell. |
GridRangeInfo[] | ranges | The currently selected ranges. |
Methods
Execute()
Executes the command.
Declaration
public override void Execute()