Gets an object that can be used to access and manipulate rectangular ranges of worksheet cells.
Namespace: MindFusion.Spreadsheet.Wpf
Assembly: MindFusion.Spreadsheet.Wpf
C# Copy Code |
---|
public CellRangeCollection CellRanges { get; } |
Visual Basic Copy Code |
---|
Public ReadOnly Property CellRanges As CellRangeCollection |
An instance of the CellRangeCollection class.
The following example applies a new background to all cells in the range 'A1:C10', by using a CellRange object.
C# Copy Code |
---|
worksheet.CellRanges["A1:C10"].Style.Background = Brushes.PaleGoldenrod; |
Visual Basic Copy Code |
---|
worksheet.CellRanges("A1:C10").Style.Background = Brushes.PaleGoldenrod |