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#
![]() |
---|
public CellRangeCollection CellRanges { get; } |
Visual Basic
![]() |
---|
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#
![]() |
---|
worksheet.CellRanges["A1:C10"].Style.Background = Brushes.PaleGoldenrod; |
Visual Basic
![]() |
---|
worksheet.CellRanges("A1:C10").Style.Background = Brushes.PaleGoldenrod |
MindFusion.Spreadsheet for WPF Programmer's Guide | © 2025 MindFusion |