Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

Sets or returns a boolean that represents whether or not Word will underline trailing spaces for this document.

Signature
C#
C#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>
 public boolean UnderlineTrailingSpaces{ get; set; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
Public <p>Public Property UnderlineTrailingSpaces() As Boolean</p>Boolean
Remarks

MS Word equivalent: Tools menu > Options... > Compatibility tab > Compatibility options for [filename].doc section > Options > Don't underline on trailing spaces

Example
Code Block
csharp
csharp
titleC#
            //--- Return UnderlineTrailingSpaces
          bool underlineTrailingSpaces = cs.UnderlineTrailingSpaces;

          //--- Set UnderlineTrailingSpaces
          cs.UnderlineTrailingSpaces = true;
        
Code Block
vb.net
vb.net
titlevb.net
            '--- Return UnderlineTrailingSpaces
          Dim underlineTrailingSpaces As Boolean = cs.UnderlineTrailingSpaces

          '--- Set UnderlineTrailingSpaces
          cs.UnderlineTrailingSpaces = True