Share via


Font.Underline Property

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

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property Underline As Object
    Get
    Set
'Usage
Dim instance As Font
Dim value As Object

value = instance.Underline

instance.Underline = value
Object Underline { get; set; }

Property Value

Type: System.Object

Remarks

Can be one of the following XlUnderlineStyle constants.

xlUnderlineStyleNone

xlUnderlineStyleSingle

xlUnderlineStyleDouble

xlUnderlineStyleSingleAccounting

xlUnderlineStyleDoubleAccounting

See Also

Reference

Font Interface

Font Members

Microsoft.Office.Interop.Excel Namespace