Table of Contents

BiffStringRecord Struct

Definition

Namespace
Bodu.IO.Biff
Assembly
Bodu.IO.Biff.dll
Package
Bodu.IO.Biff 1.3.0
Source
BiffStringRecord.cs

Represents a decoded STRING record: the cached text result of the FORMULA record that precedes it. The text is a 16-bit-length Unicode string in BIFF8 and a 16-bit-length code-page byte string in BIFF5.

public readonly ref struct BiffStringRecord
Inherited Members

Remarks

The record identifier is String. The payload is the string structure alone. The record has no position of its own: it belongs to the BiffFormulaRecord before it, whose CachedResultKind is String, and follows it directly or, for an array, table or shared formula, after its ARRAY, TABLE or SHRFMLA record ([MS-XLS] 2.1.7.20.6).

A long text continues in CONTINUE records after the STRING record ([MS-XLS] 2.1.7.20.6), each continued segment opening with its own flags byte, as in the shared string table. GetString() decodes the STRING record alone, so it rejects a text whose characters run past the record.

Properties

Text

Gets the cached text.

public BiffString Text { get; }

Property Value

BiffString

The text as a span-backed view.

Remarks

In BIFF8 the text is an XLUnicodeString: only bit 0 of its flags byte, which selects 16-bit characters, is read, and the other bits are ignored, so the view carries no rich-text runs or extended data.

Applies to

ProductVersions
.NET8, 10

See Also