Table of Contents

BiffDateModeRecord Struct

Definition

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

Represents a decoded DATEMODE record: whether serial dates in the workbook count from 1 January 1904 rather than from the 1900 date system.

public readonly struct BiffDateModeRecord : IEquatable<BiffDateModeRecord>
Implements
Inherited Members
Extension Methods

Remarks

The record identifier is DateMode. The payload is a single 16-bit value in both versions; any non-zero value selects the 1904 system.

Constructors

BiffDateModeRecord(bool)

Represents a decoded DATEMODE record: whether serial dates in the workbook count from 1 January 1904 rather than from the 1900 date system.

public BiffDateModeRecord(bool Is1904)

Parameters

Is1904 bool

Whether the 1904 date system is in use.

Remarks

The record identifier is DateMode. The payload is a single 16-bit value in both versions; any non-zero value selects the 1904 system.

See Also

Properties

Is1904

Whether the 1904 date system is in use.

public bool Is1904 { get; init; }

Property Value

bool

Methods

Deconstruct(out bool)

public void Deconstruct(out bool Is1904)

Parameters

Is1904 bool

Equals(BiffDateModeRecord)

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

public bool Equals(BiffDateModeRecord other)

Parameters

other BiffDateModeRecord

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 ==(BiffDateModeRecord, BiffDateModeRecord)

public static bool operator ==(BiffDateModeRecord left, BiffDateModeRecord right)

Parameters

left BiffDateModeRecord
right BiffDateModeRecord

Returns

bool

operator !=(BiffDateModeRecord, BiffDateModeRecord)

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

Parameters

left BiffDateModeRecord
right BiffDateModeRecord

Returns

bool

Applies to

ProductVersions
.NET8, 10

See Also