HotXLS 文档

Underline 属性

Returns or sets the type of underline applied to the font. 读/写 LongWord

语法

property Underline: LongWord;

说明

Underline can be one of these XlUnderlineStyle constants:
xlUnderlineStyleNone
xlUnderlineStyleSingle
xlUnderlineStyleDouble
xlUnderlineStyleSingleAccounting
xlUnderlineStyleDoubleAccounting

示例

本示例 sets the font in the cell A1 to single underline

Workbook.Worksheets[1].Range['A1', 'A1'].Font.Underline := xlUnderlineStyleSingle;