HotXLS Docs
Contents
Home
Overview
TGridToXLS
IXLSWorkbook
Home
Contents
Overview
IXLSFont Interface
Unit:
lxHandle
Contains the font attributes (font name, font size, colour, and so on)
Description
Use the Font property to return the Font object.
Properties
Name property
Size property
ColorIndex property
Colour property
Bold property
Italic property
Strikethrough property
OutLineFont property
Shadow property
Underline property
SubScript property
SuperScript property
Methods
SetThemeColor method
— assign the font colour to one of the 12 Office theme colour slots with an optional tint (since v2.61.0).
Example
The following example formats cells A1:C5 as bold.
Workbook.Sheets[
1
].Range[
'A1'
,
'C5'
].Font.Bold := true;