BiffDimensionsRecord Struct
Definition
Represents a decoded DIMENSIONS record: the used row and column extent of a sheet.
public readonly struct BiffDimensionsRecord : IEquatable<BiffDimensionsRecord>
- Implements
- Inherited Members
- Extension Methods
Remarks
The last row and column are stored one past the end (rwMac, colMac). BIFF8 stores rows as 32-bit
values; BIFF5 stores them as 16-bit values.
Constructors
BiffDimensionsRecord(int, int, int, int)
Represents a decoded DIMENSIONS record: the used row and column extent of a sheet.
public BiffDimensionsRecord(int FirstRow, int LastRowExclusive, int FirstColumn, int LastColumnExclusive)
Parameters
FirstRowintThe zero-based index of the first used row.
LastRowExclusiveintOne past the zero-based index of the last used row.
FirstColumnintThe zero-based index of the first used column.
LastColumnExclusiveintOne past the zero-based index of the last used column.
Remarks
The last row and column are stored one past the end (rwMac, colMac). BIFF8 stores rows as 32-bit
values; BIFF5 stores them as 16-bit values.
- See Also
Properties
ColumnCount
Gets the number of used columns.
public int ColumnCount { get; }
Property Value
- int
The column count, never negative.
FirstColumn
The zero-based index of the first used column.
public int FirstColumn { get; init; }
Property Value
FirstRow
The zero-based index of the first used row.
public int FirstRow { get; init; }
Property Value
LastColumnExclusive
One past the zero-based index of the last used column.
public int LastColumnExclusive { get; init; }
Property Value
LastRowExclusive
One past the zero-based index of the last used row.
public int LastRowExclusive { get; init; }
Property Value
RowCount
Gets the number of used rows.
public int RowCount { get; }
Property Value
- int
The row count, never negative.
Methods
Deconstruct(out int, out int, out int, out int)
public void Deconstruct(out int FirstRow, out int LastRowExclusive, out int FirstColumn, out int LastColumnExclusive)
Parameters
Equals(BiffDimensionsRecord)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(BiffDimensionsRecord other)
Parameters
otherBiffDimensionsRecordAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
operator ==(BiffDimensionsRecord, BiffDimensionsRecord)
public static bool operator ==(BiffDimensionsRecord left, BiffDimensionsRecord right)
Parameters
leftBiffDimensionsRecordrightBiffDimensionsRecord
Returns
operator !=(BiffDimensionsRecord, BiffDimensionsRecord)
public static bool operator !=(BiffDimensionsRecord left, BiffDimensionsRecord right)
Parameters
leftBiffDimensionsRecordrightBiffDimensionsRecord
Returns
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |