Class SpreadsheetModelInsertColumnsCommand
Holds undo information about a previous "GridModelRowColOperations.InsertRange" operation.
Inheritance
System.Object
SpreadsheetModelInsertColumnsCommand
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.Controls.Spreadsheet
Assembly: Syncfusion.Spreadsheet.WPF.ClientProfile.dll
Syntax
public class SpreadsheetModelInsertColumnsCommand : GridModelInsertColumnsCommand
Constructors
SpreadsheetModelInsertColumnsCommand(SpreadsheetGridModel, Int32, Int32, GridStyleInfo[], GridFormulaInfo[], Double[])
Initializes the SpreadsheetModelInsertColumnsCommand with information how to execute a "GridModelRowColOperations.RemoveRange" command at a later time and associates it with a "GridModelRowColOperations" instance.
Declaration
public SpreadsheetModelInsertColumnsCommand(SpreadsheetGridModel model, int insertAt, int count, GridStyleInfo[] cellsInfo, GridFormulaInfo[] formulas, double[] width)
Parameters
Type | Name | Description |
---|---|---|
SpreadsheetGridModel | model | The SpreadsheetGridModel this command is associated with. |
System.Int32 | insertAt | The row or column where cells should be inserted. |
System.Int32 | count | The number of rows or columns to insert. |
GridStyleInfo[] | cellsInfo | The collection of GridStyleInfo. |
GridFormulaInfo[] | formulas | The Collection of GridFormulaInfo. |
System.Double[] | width | The ColumnWidths. |
Methods
Execute()
Executes the command.
Declaration
public override void Execute()