Page tree

Versions Compared

Key

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

Description

Excerpt

Sets or returns a boolean representing if auto hyphening is allowed for a paragraph.

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 AllowAutoHyphenation{ get; set; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
Public <p>Public Property AllowAutoHyphenation() As Boolean</p>Boolean
Remarks

The default value for a new paragraph is true.

MS Word equivalent: Format menu > Paragraph... > Line and Page Breaks tab > Don't hyphenate

Example
Code Block
csharp
csharp
titleC#
            //--- Return AllowAutoHyphenation
          bool allowAutoHyphenation = oParagraphFormatting.AllowAutoHyphenation;

          //--- Set AllowAutoHyphenation
          oParagraphFormatting.AllowAutoHyphenation = true;
        
Code Block
vb.net
vb.net
titlevb.net
            '--- Return AllowAutoHyphenation
          Dim allowAutoHyphenation As Boolean = oParagraphFormatting.AllowAutoHyphenation

          '--- Set AllowAutoHyphenation
          oParagraphFormatting.AllowAutoHyphenation = True