HotXLS Delphi Excel Read Write Library / Component Developers Guide loslab Inc.

Name property

Returns or sets the name of the font. Read/write WideString.

Syntax

property Name: WideString;

Example

This example sets the font name for cells A1:C5 to Arial.
Workbook.Sheets[1].Range['A1', 'C5'].Font.Name := 'Arial';
This example displays the font name of the cell A1.
MessageDlg( Workbook.Sheets[1].Range['A1', 'A1'].Font.Name + 
            ' is the font name of "A1" cell.',
            mtInformation, [mbOk], 0);
Copyright©2007-2019 loslab.com