API Documentation > CorelDRAW > 2025-v26 > StructFontProperties > IVGStructFontProperties
StructFontProperties.Underline property
Syntax:
Property Get Underline() As cdrFontLine
Property Let Underline(ByVal Value As cdrFontLine)
Remarks:
The Underline property returns or specifies the type of line that appears under the characters in a text object. The Underline property returns a value of cdrFontLine.
Examples:
The following VBA example creates a text object and applies double underline to it.
Sub Test()
Dim s As Shape
Set s = ActiveLayer.CreateArtisticText(4, 5, "Some Text String")
s.Text.FontProperties.Underline = cdrDoubleThinFontLine 
End Sub