HotXLS Docs

TXLSCustomChart class

Unit: lxChart
Classic XLS custom chart wrapper that builds and serializes a TXLSChartModel from worksheet ranges

Description

Classic XLS custom chart wrapper that builds and serializes a TXLSChartModel from worksheet ranges. This object is reached through the owning pivot table, shape collection, worksheet or page setup and is not normally created directly by application code.

Properties

SourceBiffVersion: Word — BIFF version of the loaded chart stream
SourceCodePage: Word — source code page retained for text decoding

Methods

AddData(RecId, RecLen, Data) — appends one raw chart record
AddAreaData(AItem) — appends a pre-built area item so save-time formula name indexes are rebound
Store(DataList, FileFormat) — serializes the chart record stream
AssignFrom(Source, SourceCalculator, SourceSheetID, TargetSheetID, SourceFonts, TargetFonts) — deep-copies another chart and rebinds its series formulas and font references
Count — number of stored records
GetReferencedFontIndices — returns the font-pool indexes this chart references, for copying font state alongside the chart
GetStoredRecordInfo(Index, RecordId, ByteCount) — reads a zero-based record ID and byte count without allocating
ReadStoredRecord(Index, MaxBytes) — checks the byte limit and returns detached bytes in TXLSChartStoredRecord, without evaluating formulas or changing caches
GetChartInfo: TXLSChartInfo — decodes the summary record (family, 3-D flag, series count, legend presence)
GetChartModel: TXLSChartModel — builds the full typed model; the caller owns the returned object
ApplyDateAxisModel(AModel) — applies a typed date-axis model to the raw chart records

See also