BiffBoolErrRecord Struct
Definition
Represents a decoded BOOLERR record: a cell holding either a boolean or an error code.
public readonly struct BiffBoolErrRecord : IEquatable<BiffBoolErrRecord>
- Implements
- Inherited Members
- Extension Methods
Remarks
The record identifier is BoolErr. The payload is eight bytes in both versions: the cell prefix, the value byte, and a kind byte that is zero for a boolean and non-zero for an error code.
Constructors
BiffBoolErrRecord(int, int, ushort, byte, bool)
Represents a decoded BOOLERR record: a cell holding either a boolean or an error code.
public BiffBoolErrRecord(int Row, int Column, ushort XfIndex, byte RawValue, bool IsError)
Parameters
RowintThe zero-based row index.
ColumnintThe zero-based column index.
XfIndexushortThe extended-format index of the cell.
RawValuebyteThe value byte: zero or one for a boolean, the error code otherwise.
IsErrorboolWhether
RawValueis an error code rather than a boolean.
Remarks
The record identifier is BoolErr. The payload is eight bytes in both versions: the cell prefix, the value byte, and a kind byte that is zero for a boolean and non-zero for an error code.
- See Also
Properties
BooleanValue
Gets a value indicating whether the cell holds true.
public bool BooleanValue { get; }
Property Value
Column
The zero-based column index.
public int Column { get; init; }
Property Value
ErrorCode
Gets the error code of the cell.
public byte ErrorCode { get; }
Property Value
IsError
Whether RawValue is an error code rather than a boolean.
public bool IsError { get; init; }
Property Value
RawValue
The value byte: zero or one for a boolean, the error code otherwise.
public byte RawValue { get; init; }
Property Value
Row
The zero-based row index.
public int Row { get; init; }
Property Value
XfIndex
The extended-format index of the cell.
public ushort XfIndex { get; init; }
Property Value
Methods
Deconstruct(out int, out int, out ushort, out byte, out bool)
public void Deconstruct(out int Row, out int Column, out ushort XfIndex, out byte RawValue, out bool IsError)
Parameters
Equals(BiffBoolErrRecord)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(BiffBoolErrRecord other)
Parameters
otherBiffBoolErrRecordAn 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 ==(BiffBoolErrRecord, BiffBoolErrRecord)
public static bool operator ==(BiffBoolErrRecord left, BiffBoolErrRecord right)
Parameters
leftBiffBoolErrRecordrightBiffBoolErrRecord
Returns
operator !=(BiffBoolErrRecord, BiffBoolErrRecord)
public static bool operator !=(BiffBoolErrRecord left, BiffBoolErrRecord right)
Parameters
leftBiffBoolErrRecordrightBiffBoolErrRecord
Returns
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |