Table of Contents

BiffDimensionsRecord Struct

Definition

Namespace
Bodu.IO.Biff
Assembly
Bodu.IO.Biff.dll
Package
Bodu.IO.Biff 1.0.0
Source
BiffDimensionsRecord.cs

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

FirstRow int

The zero-based index of the first used row.

LastRowExclusive int

One past the zero-based index of the last used row.

FirstColumn int

The zero-based index of the first used column.

LastColumnExclusive int

One 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

int

FirstRow

The zero-based index of the first used row.

public int FirstRow { get; init; }

Property Value

int

LastColumnExclusive

One past the zero-based index of the last used column.

public int LastColumnExclusive { get; init; }

Property Value

int

LastRowExclusive

One past the zero-based index of the last used row.

public int LastRowExclusive { get; init; }

Property Value

int

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

FirstRow int
LastRowExclusive int
FirstColumn int
LastColumnExclusive int

Equals(BiffDimensionsRecord)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(BiffDimensionsRecord other)

Parameters

other BiffDimensionsRecord

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

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

left BiffDimensionsRecord
right BiffDimensionsRecord

Returns

bool

operator !=(BiffDimensionsRecord, BiffDimensionsRecord)

public static bool operator !=(BiffDimensionsRecord left, BiffDimensionsRecord right)

Parameters

left BiffDimensionsRecord
right BiffDimensionsRecord

Returns

bool

Applies to

ProductVersions
.NET8, 10

See Also