Identifies a range of cells in a Worksheet.
Namespace: MindFusion.Spreadsheet.Wpf
Assembly: MindFusion.Spreadsheet.Wpf
C# Copy Code |
---|
public class CellRange : IEnumerable<Cell>, IEnumerable |
Visual Basic Copy Code |
---|
Public Class CellRange |
Instances of this class can be accessed through the CellRanges collection of the Worksheet class. The CellRange object can be used to customize the appearance of all cells in the range through its Style, to insert, delete, merge and unmerge cells.
The following example demonstrates how to merge the cells A1:C4 in a worksheet:
C# Copy Code |
---|
worksheet.CellRanges["A1:C4"].Merge(); |
Visual Basic Copy Code |
---|
worksheet.CellRanges("A1:C4").Merge() |
System.Object
MindFusion.Spreadsheet.Wpf.CellRange