Sets or returns an int that represents the number of consecutive lines that can be auto-hyphenated by Word in this document.

 public int AllowedConsecutiveHyphens{ get; set; }
Public Property AllowedConsecutiveHyphens() As Integer

This option is set to No limit by default.

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


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

          //--- Set AllowedConsecutiveHyphens
          hyphenSettings.AllowedConsecutiveHyphens = 1;
        

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

          '--- Set AllowedConsecutiveHyphens
          hyphenSettings.AllowedConsecutiveHyphens = 1