Search
Worksheet.CellRanges Property
See Also
 






Gets an object that can be used to access and manipulate rectangular ranges of worksheet cells.

Namespace: MindFusion.Spreadsheet
Assembly: MindFusion.Spreadsheet.WinForms

 Syntax

C#  Copy Code

public CellRangeCollection CellRanges { get; }

Visual Basic  Copy Code

Public ReadOnly Property CellRanges As CellRangeCollection

 Property Value

An instance of the CellRangeCollection class.

 Example

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 = new MindFusion.Drawing.SolidBrush(Color.PaleGoldenrod);

Visual Basic  Copy Code

worksheet.CellRanges("A1:C10").Style.Background = New MindFusion.Drawing.SolidBrush(Color.PaleGoldenrod)

 See Also