Class SpreadsheetGridCommand
Holds undo information about a previous ChangeCells(GridRangeInfo, GridStyleInfo[], StyleModifyType) operation.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Controls.Spreadsheet
Assembly: Syncfusion.Spreadsheet.WPF.ClientProfile.dll
Syntax
public class SpreadsheetGridCommand : GridChangeCellsCommand
Remarks
The Execute() method will call ChangeCells(GridRangeInfo, GridStyleInfo[], StyleModifyType) with information stored in this object and scroll the affect range into the current grid view.
Constructors
SpreadsheetGridCommand(SpreadsheetGridModel, GridRangeInfo, GridStyleInfo[], StyleModifyType, StyleInfoProperty)
Initializes the GridChangeCellsCommand with information how to execute a ChangeCells(GridRangeInfo, GridStyleInfo[], StyleModifyType) command at a later time.
Declaration
public SpreadsheetGridCommand(SpreadsheetGridModel table, GridRangeInfo range, GridStyleInfo[] cellsInfo, StyleModifyType type, StyleInfoProperty sip)
Parameters
Type | Name | Description |
---|---|---|
SpreadsheetGridModel | table | The SpreadsheetGridModel this command is associated with. |
GridRangeInfo | range | A GridRangeInfo that specifies the range of cells. |
GridStyleInfo[] | cellsInfo | The array of GridStyleInfo objects that holds cell information. |
StyleModifyType | type | A StyleModifyType that specifies the style operation to be performed. |
StyleInfoProperty | sip | A StyleInfoProperty that specifies the changed property. |
Fields
changedSip
Declaration
public StyleInfoProperty changedSip
Field Value
Type |
---|
StyleInfoProperty |
gridCellsInfo
Declaration
public GridStyleInfo[] gridCellsInfo
Field Value
Type |
---|
GridStyleInfo[] |
gridRange
Declaration
public GridRangeInfo gridRange
Field Value
Type |
---|
GridRangeInfo |
worksheet
Declaration
public IWorksheet worksheet
Field Value
Type |
---|
IWorksheet |
Methods
Execute()
Execute the command.
Declaration
public override void Execute()
Overrides
ExportCellToExcel(IRange, GridStyleInfo)
Export grid style info to excel range IRange.
Declaration
public void ExportCellToExcel(IRange rangeToConvert, GridStyleInfo styleInfo)
Parameters
Type | Name | Description |
---|---|---|
IRange | rangeToConvert | A IRange that specifies the excel range. |
GridStyleInfo | styleInfo | A GridStyleInfo that specifies the range of cells. |