Class SpreadsheetMergeCommand
Holds undo information about a previous merge cell range.
Inheritance
System.Object
SpreadsheetMergeCommand
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 SpreadsheetMergeCommand : GridChangeCellsCommand
Constructors
SpreadsheetMergeCommand(SpreadsheetGridModel, GridRangeInfo, GridStyleInfo[], StyleModifyType, Boolean)
Initializes the SpreadsheetTableFormatCommand with information about merge cell range.
Declaration
public SpreadsheetMergeCommand(SpreadsheetGridModel table, GridRangeInfo range, GridStyleInfo[] cellsInfo, StyleModifyType type, bool merge)
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. |
System.Boolean | merge | Specify te range to merge or unmerge |
Fields
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()