BiffXfRecord Struct
Definition
Represents the leading fields of a decoded XF (extended format) record: the font and number-format indices
and the protection and style flags. Alignment, border, and fill fields that follow are not interpreted.
public readonly struct BiffXfRecord : IEquatable<BiffXfRecord>
- Implements
- Inherited Members
- Extension Methods
Remarks
The first six bytes are laid out identically in BIFF5 (16-byte record) and BIFF8 (20-byte record).
Constructors
BiffXfRecord(ushort, ushort, ushort)
Represents the leading fields of a decoded XF (extended format) record: the font and number-format indices
and the protection and style flags. Alignment, border, and fill fields that follow are not interpreted.
public BiffXfRecord(ushort FontIndex, ushort FormatIndex, ushort TypeField)
Parameters
FontIndexushortThe index of the cell's font in the
FONTrecord sequence.FormatIndexushortThe index of the cell's number format.
TypeFieldushortThe raw type-and-protection word: locked (bit 0), hidden (bit 1), style (bit 2), parent style index (bits 4-15).
Remarks
The first six bytes are laid out identically in BIFF5 (16-byte record) and BIFF8 (20-byte record).
- See Also
-
GetXf()WriteXf(in BiffXfRecord)
Properties
FontIndex
The index of the cell's font in the FONT record sequence.
public ushort FontIndex { get; init; }
Property Value
FormatIndex
The index of the cell's number format.
public ushort FormatIndex { get; init; }
Property Value
IsHidden
Gets a value indicating whether the cell's formula is hidden.
public bool IsHidden { get; }
Property Value
IsLocked
Gets a value indicating whether the cell is locked.
public bool IsLocked { get; }
Property Value
IsStyle
Gets a value indicating whether the record describes a style rather than a cell format.
public bool IsStyle { get; }
Property Value
ParentStyleIndex
Gets the index of the parent style format.
public int ParentStyleIndex { get; }
Property Value
TypeField
The raw type-and-protection word: locked (bit 0), hidden (bit 1), style (bit 2), parent style index (bits 4-15).
public ushort TypeField { get; init; }
Property Value
Methods
Deconstruct(out ushort, out ushort, out ushort)
public void Deconstruct(out ushort FontIndex, out ushort FormatIndex, out ushort TypeField)
Parameters
Equals(BiffXfRecord)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(BiffXfRecord other)
Parameters
otherBiffXfRecordAn 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 ==(BiffXfRecord, BiffXfRecord)
public static bool operator ==(BiffXfRecord left, BiffXfRecord right)
Parameters
leftBiffXfRecordrightBiffXfRecord
Returns
operator !=(BiffXfRecord, BiffXfRecord)
public static bool operator !=(BiffXfRecord left, BiffXfRecord right)
Parameters
leftBiffXfRecordrightBiffXfRecord
Returns
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |