Identifies a range of cells in a Worksheet.
Namespace: MindFusion.Spreadsheet
Assembly: MindFusion.Spreadsheet.WinForms
SyntaxC#
Copy Code
|
|---|
public class CellRange : IEnumerable<Cell>, IEnumerable |
Visual Basic
Copy Code
|
|---|
Public Class CellRange |
RemarksInstances 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.
ExampleThe 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() |
Inheritance HierarchySystem.Object![]()
MindFusion.Spreadsheet.CellRange
See Also