Class RangeAccessor
Provides access to ranges within a worksheet using string-based labels.
Inherited Members
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public class RangeAccessor
Remarks
RangeAccessor enables convenient access to cell ranges using A1-style notation
(e.g., "A1:B10", "C5", "Sheet2!D1:E20"). It is typically accessed through the
Range property.
Examples
// Access ranges using string labels
var range1 = worksheet.Range["A1:B10"];
var range2 = worksheet.Range["C5"];
Properties
this[string]
Gets a range from the worksheet using an A1-style label.
Declaration
public Range this[string label] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| string | label | The A1-style label (e.g., "A1:B10", "C5"). |
Property Value
| Type | Description |
|---|---|
| Range | The range at the specified address. |
Remarks
RangeAccessor enables convenient access to cell ranges using A1-style notation
(e.g., "A1:B10", "C5", "Sheet2!D1:E20"). It is typically accessed through the
Range property.