| Sheets |
Worksheet collection. See TXLSXSheets. |
| Fonts |
Workbook-level font palette. Cells pick a font by
setting TXLSXCell.FontIndex to a 1-based index into this
collection. See TXLSXFont / TXLSXFonts. |
| Fills |
Workbook-level fill palette. Cells pick a fill by
setting TXLSXCell.FillIndex to a 1-based index into this
collection. See TXLSXFill / TXLSXFills. |
| Borders |
Workbook-level border palette. Cells pick a border
by setting TXLSXCell.BorderIndex to a 1-based index into
this collection. See TXLSXBorder / TXLSXBorders. |
| NumberFormats |
Workbook-level custom number-format palette. Cells
pick a format by setting TXLSXCell.NumberFormatIndex to
a 1-based index into this collection. See
TXLSXNumberFormat / TXLSXNumberFormats. |
| DefinedNames |
Workbook-level named ranges (workbook-scoped or
sheet-scoped). See
TXLSXDefinedName / TXLSXDefinedNames. |
| Alignments |
Workbook-level cell-alignment palette. Cells pick
an entry by setting TXLSXCell.AlignmentIndex to a
1-based index into this collection. See
TXLSXAlignment. |
| Document properties |
Title, Author, Subject, Keywords, Description,
Category, LastModifiedBy, Company, Application, AppVersion,
Created, Modified. Setting any one of them populates
docProps/core.xml + docProps/app.xml on
SaveAs (otherwise the workbook keeps the minimal part set). |
| ProtectWorkbook / UnProtectWorkbook |
Workbook protection toggle with an optional
16-bit legacy password hash and LockStructure /
LockWindows flags. Reflected as
<workbookProtection> in xl/workbook.xml. |
| LoadVbaProjectFromFile / VbaProject / HasVbaProject |
Round-trips a vbaProject.bin payload byte-for-byte
so existing macro projects survive a SaveAs/Open cycle. SaveAs
switches to the macro-enabled workbook content type and rels target
when HasVbaProject is True. Save the workbook with a
.xlsm extension for Excel to enable macros. |
| AddChartSheet(Name, Type, Title) |
Creates a worksheet flagged
IsChartSheet = True and seeds Charts[0]
with a sensible default full-page anchor. SaveAs writes such sheets
to xl/chartsheets/sheetN.xml. See
TXLSXChart. |
| StreamingWrite |
When True, SaveAs uses
WriteWorksheetXmlStreaming per sheet — no sheetXmls
cache is held, sharedStrings.xml is emitted last after every sheet
has populated the SST. Combined with the per-row
TXLSWideStringBuilder this keeps memory linear on
large sheets. Default is False (existing behavior). |
| SaveAsEncrypted / OpenEncrypted / CanReadEncrypted |
Reserved API surface for AES + Compound File
encryption. CanReadEncrypted detects the OLE2 magic
bytes; OpenEncrypted transparently falls back to
plain Open for unencrypted files. Writing an actually-
encrypted file or reading one currently raises
EXlsxEncryptionNotImplemented. |
| SaveAs(FileName) |
Writes the workbook to the given file. Returns
1 on success, negative on failure. If the workbook has no
sheets a default Sheet1 is added before writing. |
| SaveAs(FileName, FileFormat) |
Same as above with an explicit file format. The only
accepted value today is xlsxOpenXMLWorkbook. |
| SaveAs(Stream) / SaveAs(Stream, FileFormat) |
Writes the workbook directly into any
TStream. Useful for in-memory generation or BLOB fields.
Returns 1 on success. |
| Open(FileName) |
Reads an OOXML .xlsx archive and replaces the
Sheets collection with its contents. Returns 1
on success. |
| Open(FileName, Password) |
Reserved for future encrypted XLSX support. Behaves
like Open(FileName) today — the password is ignored. |
| Open(Stream) |
Reads an OOXML .xlsx archive from a
TStream. Returns 1 on success. |
| SaveAsCSV overloads |
Four overloads (FileName or Stream ×
active-sheet default / explicit SheetIndex + Delimiter). Writes the
chosen sheet as a UTF-8 CSV with BOM. Date values render as
yyyy-mm-dd hh:nn:ss; formula text is written verbatim.
Returns 0 on success. |
| SaveAsHTML overloads |
Four overloads (FileName or Stream ×
active-sheet default / explicit SheetIndex). Writes the chosen sheet
as a UTF-8 HTML5 file with a single <table>.
Merged cells become colspan / rowspan
attributes. Basic cell styles (font name/size/bold/italic, color,
fill, alignment) are emitted as inline CSS. Theme colors are skipped
(no theme1.xml available). Returns 0 on success. |
| SaveAsRTF overloads |
Four overloads (FileName or Stream ×
active-sheet default / explicit SheetIndex). Writes the chosen sheet
as an RTF 1.6 document with a plain table. Column widths are derived
from ColWidth data (1 char unit ≈ 96 twips;
default 809 twips). Per-cell bold / italic / font size are applied;
non-ASCII characters are encoded as signed-16-bit \uN?
RTF unicode escapes. Merged cells are not spanned. Returns 0 on
success. |
| ActiveSheet |
0-based index of the active (selected) sheet.
SaveAs writes <workbookView activeTab="N"/>
and marks the matching sheet with
tabSelected="1". |
| Date1904 |
Workbook date base. False (default) =
Windows 1900 epoch; True = Mac 1904 epoch (shifts every
date serial by 1462 days). Set this before assigning
TDateTime cell values so Excel renders the same
calendar date. |
| IndexedColor[Index] |
ARGB value for the given OOXML indexed-color palette
slot (0..63). Reading returns the user override if set, otherwise the
built-in OOXML default (XlsxDefaultIndexedPalette).
Writing overrides slot N; SaveAs then emits a full
<indexedColors> block with all 64 slots. |
| HasCustomIndexedColor / CustomIndexedColorCount / ResetIndexedColors |
HasCustomIndexedColor(N) returns
True when slot N was explicitly overridden.
CustomIndexedColorCount returns the number of overridden
slots (0 = no <colors> block emitted by SaveAs).
ResetIndexedColors discards every override and restores
the default palette. |
| ExternalLinks |
Collection of external workbook references. Each
TXLSXExternalLink
entry holds a Target URL and a SheetNames list. SaveAs
emits the <externalReferences> block in
xl/workbook.xml and the corresponding
xl/externalLinks/ parts. Open round-trips the Target and
SheetNames; cached cell values inside
<sheetDataSet> are not preserved. |