Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{description}
{excerpt}Sets or returns a [Font.UnderlineType|Font.UnderlineType (no attachments)] object that represents the underline type for this formatting.{excerpt}
{signature:C#}
 public UnderlineType Underline{ get; set; }
{signature}{signature:vb.net}
Public Property Underline() As UnderlineType
{signature}
{remarks}MS Word equivalent: Format menu > Font... > Font tab > Underline style:

{remarks}
{example}{code:csharp|title=C#}

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

          //--- Set Underline to Double
          oFont.Underline = Font.UnderlineType.Double;
        {code}
{code:vb.net|title=vb.net}

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

          '--- Set Underline to Double
          oFont.Underline = Font.UnderlineType.Double
        {code}

{example}