Class GridSelectionStateCommand
Holds undo information about the selection state at a previous operation.
Inherited Members
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.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()