Struct RangeAddress
Represents the address of a range as a pair of cell addresses (top-left and bottom-right corners).
Inherited Members
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public struct RangeAddress
Remarks
RangeAddress is a value type that defines the boundaries of a rectangular range of cells.
It is used internally to represent and manipulate range positions within worksheets.
This struct provides properties to check if the range spans full rows or columns, and supports offset operations for range manipulation.
Properties
ColumnSpan
Gets the number of columns spanned by this range address.
Declaration
public int ColumnSpan { get; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
RangeAddress is a value type that defines the boundaries of a rectangular range of cells.
It is used internally to represent and manipulate range positions within worksheets.
This struct provides properties to check if the range spans full rows or columns, and supports offset operations for range manipulation.
Offset
Gets the offset (difference) between the bottom-right and top-left corners.
Declaration
public CellRelativeAddress Offset { get; }
Property Value
| Type | Description |
|---|---|
| CellRelativeAddress |
Remarks
RangeAddress is a value type that defines the boundaries of a rectangular range of cells.
It is used internally to represent and manipulate range positions within worksheets.
This struct provides properties to check if the range spans full rows or columns, and supports offset operations for range manipulation.
RowSpan
Gets the number of rows spanned by this range address.
Declaration
public int RowSpan { get; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
RangeAddress is a value type that defines the boundaries of a rectangular range of cells.
It is used internally to represent and manipulate range positions within worksheets.
This struct provides properties to check if the range spans full rows or columns, and supports offset operations for range manipulation.
Methods
Equals(RangeAddress)
Determines whether this range address equals another.
Declaration
public bool Equals(RangeAddress a)
Parameters
| Type | Name | Description |
|---|---|---|
| RangeAddress | a | The range address to compare with. |
Returns
| Type | Description |
|---|---|
| bool |
|
Remarks
RangeAddress is a value type that defines the boundaries of a rectangular range of cells.
It is used internally to represent and manipulate range positions within worksheets.
This struct provides properties to check if the range spans full rows or columns, and supports offset operations for range manipulation.
GetCellAddresses()
Gets all individual cell addresses within this range.
Declaration
public IEnumerable<CellAddress> GetCellAddresses()
Returns
| Type | Description |
|---|---|
| IEnumerable<CellAddress> | An enumerable collection of all cell addresses in this range. |
Remarks
RangeAddress is a value type that defines the boundaries of a rectangular range of cells.
It is used internally to represent and manipulate range positions within worksheets.
This struct provides properties to check if the range spans full rows or columns, and supports offset operations for range manipulation.
GetRows()
Gets the individual row addresses that make up this range.
Declaration
public IEnumerable<RangeAddress> GetRows()
Returns
| Type | Description |
|---|---|
| IEnumerable<RangeAddress> | An enumerable collection of range addresses, one for each row. |
Remarks
RangeAddress is a value type that defines the boundaries of a rectangular range of cells.
It is used internally to represent and manipulate range positions within worksheets.
This struct provides properties to check if the range spans full rows or columns, and supports offset operations for range manipulation.
ToString()
Returns the A1-style string representation of this range address.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The range address as a string (e.g., "A1:B10"). |
Overrides
Remarks
RangeAddress is a value type that defines the boundaries of a rectangular range of cells.
It is used internally to represent and manipulate range positions within worksheets.
This struct provides properties to check if the range spans full rows or columns, and supports offset operations for range manipulation.
Operators
operator +(RangeAddress, CellRelativeAddress)
Adds an offset to a range address.
Declaration
public static RangeAddress operator +(RangeAddress r, CellRelativeAddress b)
Parameters
| Type | Name | Description |
|---|---|---|
| RangeAddress | r | The range address. |
| CellRelativeAddress | b | The offset to add. |
Returns
| Type | Description |
|---|---|
| RangeAddress | A new range address with the offset applied. |
Remarks
RangeAddress is a value type that defines the boundaries of a rectangular range of cells.
It is used internally to represent and manipulate range positions within worksheets.
This struct provides properties to check if the range spans full rows or columns, and supports offset operations for range manipulation.