NativeExcel suite v1.x

Font property

Returns a IXLSFont object that represents the font of the specified range

Syntax

property Font: IXLSFont;

Example

This example sets the font and font size for A1:F2 cells on first sheet to 12-point bold Arial.
With Workbook.Sheets[1].Range['A1', 'F2'].Font do
begin
  Name := 'Arial';
  Size := 12;
  Bold := True;
end;
Copyright © NikaSoft 2004-2012