HotXLS Docs

TitleFont property

Sets the font used for the title band. Read-only TXLSDataExportFont; by default Calibri at 12 points with the bold style

Remarks

Read the font object and assign its Name, Size, Style and Color members; the component owns the object, so do not free it. The font applies only when Title is not empty. On non-Windows targets the same object acts as a TPersistent font description without a handle and follows the portable font and colour rules

Syntax

property TitleFont: TXLSDataExportFont read FTitleFont;

Example

This example makes the title band 14-point bold Arial

DataToXLS1.TitleFont.Name := 'Arial';
DataToXLS1.TitleFont.Size := 14;
DataToXLS1.TitleFont.Style := [xlsDataExportBold];