• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Struct RangeAddress

Represents the address of a range as a pair of cell addresses (top-left and bottom-right corners).

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
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

true if the addresses are equal; otherwise, false.

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
ValueType.ToString()
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.

Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX