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 μέλη
| Name | Style name displayed by Excel |
| XfId | Index into the workbook cell-style format collection |
| BuiltInId and CustomBuiltIn | Built-in style identity and customization marker |
| Hidden and BuiltinLevel | Visibility and outline metadata persisted in the cell-style record |
Παράδειγμα
var Style: TXLSXNamedStyle;
begin
Style := Workbook.NamedStyles.Add;
Style.Name := 'ReportHeader';
Style.XfId := 1;
end;
Δείτε επίσης