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#

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

Public Property AllowAutoHyphenation() As 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