Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

Sets or returns a Font.UnderlineType object that represents the underline type for this formatting.

Signature
C#
C#
 public UnderlineType Underline{ get; set; }
Signature
vb.net
vb.net
Public Property Underline() As UnderlineType
Remarks

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

Example
Code Block
csharp
csharp
titleC#

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

          //--- Set Underline to Double
          oFont.Underline = Font.UnderlineType.Double;
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Return Underline
          Dim oUnderline As Font.UnderlineType = oFont.Underline

          '--- Set Underline to Double
          oFont.Underline = Font.UnderlineType.Double