HotXLS Docs

TXLSXNumberFormats class

Unit: lxHandleX
Workbook-level custom number-format collection exposed by TXLSXWorkbook.NumberFormats

Description

Workbook-level custom number-format collection exposed by TXLSXWorkbook.NumberFormats The class is part of the XLSX facade (lxHandleX) and is reached through the owning workbook or worksheet; instances are not normally created directly by application code

Imported numeric and date styles

Incoming XLSX cell style indexes belong to the source workbook's cell-format table; an index alone does not identify a numeric value as a date

The reader uses the imported cell format's actual number-format classification, so an integer format at style index 1 preserves numeric values and cached numeric formula results instead of applying date-system conversion

Actual imported date formats retain date typing and calendar values under the 1900 and 1904 date systems, including a built-in date format located at input style indexes 0, 1 or 2

Ordinary save/reopen uses the same format identity rule; output style ordering does not redefine the meaning of an unrelated source style index

Recognized built-in formats on import and save

Recognized built-in XLSX formats retain their effective format codes after import, including supported numeric, percentage, scientific, fraction, date/time, elapsed-time and text formats; cell display and subsequent save/reopen retain those format semantics

A retained code can be written as an equivalent workbook-local format definition, so callers should inspect the effective format code rather than depend on the original built-in identifier or a fixed NumberFormats pool position

Built-in format 15 uses D-MMM-YY, with an abbreviated month rather than a two-digit numeric month; month names follow the active formatting locale

This applies to recognized built-in codes and does not imply a new mapping for every locale-specific or unknown format identifier; see Date values and elapsed-time display for workbook-aware duration formatting

Properties

Count
Items

Methods

function Add
function IndexOf
function LookupOrAdd
procedure Clear

See also