Gets or sets whether cells in this range are merged.
Namespace: GemBox.SpreadsheetAssembly: GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 37.3.30.1035
Syntax
public virtual bool Merged { get; set; }
Exceptions
| Exception | Condition |
|---|---|
| System ArgumentException | Merged range can't be created because some of the cells in the range are already merged. |
Remarks
By setting this property to , you are merging all the cells (ExcelCell) in this range. Merging process will fail if any of the cells in the range is already merged.
When modifying merged cell, whole merged range is modified. For example, if you set ExcelCell.Value, value of merged range will be modified. You can find out if the cell is merged by checking if ExcelCell.MergedRange property is different than .
See Also