Skip to end of metadata
Go to start of metadata

Description

Sets or returns a Font.UnderlineType object that represents the underline type for this formatting.
C#
 public UnderlineType Underline{ get; set; }
vb.net
Public Property Underline() As UnderlineType

Remarks

MS Word equivalent: Format menu > Font... > Font tab > Underline style:

Examples

C#
          //--- Return Underline
          Font.UnderlineType oUnderline = oFont.Underline;

          //--- Set Underline to Double
          oFont.Underline = Font.UnderlineType.Double;
        
vb.net
          '--- Return Underline
          Dim oUnderline As Font.UnderlineType = oFont.Underline

          '--- Set Underline to Double
          oFont.Underline = Font.UnderlineType.Double
        
  • No labels