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 an int that represents the number of consecutive lines that can be auto-hyphenated by Word in this document.

Signature
C#
C#
 public int AllowedConsecutiveHyphens{ get; set; }
Signature
vb.net
vb.net
Public Property AllowedConsecutiveHyphens() As Integer
Remarks

This option is set to No limit by default.

MS Word equivalent: Tools menu > Language > Hyphenation... > Limit consecutive hyphens to:

Example
Code Block
csharp
csharp
titleC#

          //--- Return AllowedConsecutiveHyphens
          int allowedHyphens = hyphenSettings.AllowedConsecutiveHyphens;

          //--- Set AllowedConsecutiveHyphens
          hyphenSettings.AllowedConsecutiveHyphens = 1;
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Return AllowedConsecutiveHyphens
          Dim allowedHyphens As Boolean = hyphenSettings.AllowedConsecutiveHyphens

          '--- Set AllowedConsecutiveHyphens
          hyphenSettings.AllowedConsecutiveHyphens = 1