BiffRowRecord Struct
Definition
Represents a decoded ROW record: a row's used column extent, height, option flags, and default format.
public readonly struct BiffRowRecord : IEquatable<BiffRowRecord>
- Implements
- Inherited Members
- Extension Methods
Remarks
The record identifier is Row. The payload is sixteen bytes in both versions; the two reserved words at offsets 8 through 11 are not interpreted. The derived properties mask the raw fields: Height, HasCustomHeight, IsHidden, OutlineLevel, HasFormat, and XfIndex.
Constructors
BiffRowRecord(int, int, int, ushort, ushort, ushort)
Represents a decoded ROW record: a row's used column extent, height, option flags, and default format.
public BiffRowRecord(int Row, int FirstColumn, int LastColumnExclusive, ushort HeightField, ushort Options, ushort XfField)
Parameters
RowintThe zero-based row index.
FirstColumnintThe zero-based index of the first defined cell in the row.
LastColumnExclusiveintOne past the zero-based index of the last defined cell in the row.
HeightFieldushortThe raw
miyRwfield: the height in twips in its low 15 bits.OptionsushortThe raw option flags (
grbit).XfFieldushortThe raw format field: the extended-format index in its low 12 bits.
Remarks
The record identifier is Row. The payload is sixteen bytes in both versions; the two reserved words at offsets 8 through 11 are not interpreted. The derived properties mask the raw fields: Height, HasCustomHeight, IsHidden, OutlineLevel, HasFormat, and XfIndex.
- See Also
-
GetRow()
Properties
FirstColumn
The zero-based index of the first defined cell in the row.
public int FirstColumn { get; init; }
Property Value
HasCustomHeight
Gets a value indicating whether the row height differs from the sheet default.
public bool HasCustomHeight { get; }
Property Value
HasFormat
Gets a value indicating whether the row carries an explicit default format.
public bool HasFormat { get; }
Property Value
Height
Gets the row height in twips (twentieths of a point).
public int Height { get; }
Property Value
- int
The low 15 bits of HeightField.
HeightField
The raw miyRw field: the height in twips in its low 15 bits.
public ushort HeightField { get; init; }
Property Value
IsHidden
Gets a value indicating whether the row is hidden.
public bool IsHidden { get; }
Property Value
LastColumnExclusive
One past the zero-based index of the last defined cell in the row.
public int LastColumnExclusive { get; init; }
Property Value
Options
The raw option flags (grbit).
public ushort Options { get; init; }
Property Value
OutlineLevel
Gets the outline level of the row.
public int OutlineLevel { get; }
Property Value
Row
The zero-based row index.
public int Row { get; init; }
Property Value
XfField
The raw format field: the extended-format index in its low 12 bits.
public ushort XfField { get; init; }
Property Value
XfIndex
Gets the extended-format index applied to cells the row does not define individually.
public ushort XfIndex { get; }
Property Value
Methods
Deconstruct(out int, out int, out int, out ushort, out ushort, out ushort)
public void Deconstruct(out int Row, out int FirstColumn, out int LastColumnExclusive, out ushort HeightField, out ushort Options, out ushort XfField)
Parameters
Equals(BiffRowRecord)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(BiffRowRecord other)
Parameters
otherBiffRowRecordAn 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 ==(BiffRowRecord, BiffRowRecord)
public static bool operator ==(BiffRowRecord left, BiffRowRecord right)
Parameters
leftBiffRowRecordrightBiffRowRecord
Returns
operator !=(BiffRowRecord, BiffRowRecord)
public static bool operator !=(BiffRowRecord left, BiffRowRecord right)
Parameters
leftBiffRowRecordrightBiffRowRecord
Returns
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |