Underline Property

Microsoft Graph Visual Basic

Underline Property

       

Returns or sets the type of underline applied to the font. Required XlUnderlineStyle.

XlUnderlineStyle can be one of these XlUnderlineStyle constants.
xlUnderlineStyleNone
xlUnderlineStyleSingle

xlUnderlineStyleDouble

xlUnderlineStyleSingleAccounting

xlUnderlineStyleDoubleAccounting

expression.Underline

expression   Required. An expression that returns one of the objects in the Applies To list.

Example

This example sets the font in the chart title to single underline.

myChart.ChartTitle.Font.Underline = xlUnderlineStyleSingle