HotXLS-dokumentasjon

TXLSXNamedStyle and TXLSXNamedStyles classes

TXLSXNamedStyles manages workbook-level cell-style names through TXLSXWorkbook.NamedStyles

Declarations

function TXLSXNamedStyles.Add: TXLSXNamedStyle;
procedure TXLSXNamedStyles.Clear;
property TXLSXNamedStyles.Items[Index: Integer]: TXLSXNamedStyle;
property TXLSXNamedStyle.Name: WideString;
property TXLSXNamedStyle.XfId, BuiltInId, BuiltinLevel: Integer;
property TXLSXNamedStyle.CustomBuiltIn, Hidden: Boolean;

Key medlemmer

NameStyle name displayed by Excel
XfIdIndex into the workbook cell-style format collection
BuiltInId and CustomBuiltInBuilt-in style identity and customization marker
Hidden and BuiltinLevelVisibility and outline metadata persisted in the cell-style record

Eksempel

var Style: TXLSXNamedStyle;
begin
  Style := Workbook.NamedStyles.Add;
  Style.Name := 'ReportHeader';
  Style.XfId := 1;
end;

Se også