Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

Sets or returns a boolean that represents whether or not Word will automatically hyphenate this document.

Signature
C#
C#
 public boolean AutoHyphen{ get; set; }
Signature
vb.net
vb.net
Public Property AutoHyphen() As Boolean
Remarks

This option is set to false by default.

MS Word equivalent: Tools menu > Language > Hyphenation... > Automatically hyphenate document

Example
Code Block
csharp
csharp
titleC#

          //--- Return AutoHyphen
          bool autoHyphen = hyphenSettings.AutoHyphen;

          //--- Set AutoHyphen
          hyphenSettings.AutoHyphen = true;
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Return AutoHyphen
          Dim autoHyphen As Boolean = hyphenSettings.AutoHyphen

          '--- Set AutoHyphen
          hyphenSettings.AutoHyphen = True