Table of Contents

TCellAddressRange Record

A class with 2 TCellAddress objects marking the start and end of a cell range.

Syntax

Unit: FlexCel.Core

TCellAddressRange = record;

Methods

Name Description
Create Creates a new instance. Addresses can't be null.
Equals Returns true if both objects have the same data.
GetHashCode HashCode for the object
HasValidAddress Returns true if row1 and col1 are > 0, row2 and col2 >= col1 and row2 and col2 <= MaxRow and MaxCol
IsNull Returns true if the record doesn't have a defined value.
HasValue Returns true if the record has a defined value. This is the inverse of IsNull

Operators

Name Description
Equality Adapts the = operator so it returns true when both instances have the same values.
Inequality Adapts the <> operator so it returns true when both instances have different values.

Properties

Name Description
TopLeft The cell at the top left position in the range. It can't be null.
BottomRight The cell at the bottom right position in the range. It can't be null.