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 wrap text with punctuation in this document.

Signature
C#
C#

 public boolean WrapTextWithPunct{ get; set; }
Signature
vb.net
vb.net

Public Property WrapTextWithPunct() As Boolean
Remarks

MS Word equivalent: Tools menu > Options... > Compatibility tab > Compatibility options for [filename].doc section > Options > Don't allow hanging punctuation with character grid

Example
Code Block
csharp
csharp
titleC#
            //--- Return WrapTextWithPunct
          bool wrapTextWithPunct = cs.WrapTextWithPunct;

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

          '--- Set WrapTextWithPunct
          cs.WrapTextWithPunct = True