Description
Sets or returns an int that represents the number of consecutive lines that can be auto-hyphenated by Word in this document.
C#
public int AllowedConsecutiveHyphens{ get; set; }
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:
Examples
C#
//--- Return AllowedConsecutiveHyphens
int allowedHyphens = hyphenSettings.AllowedConsecutiveHyphens;
//--- Set AllowedConsecutiveHyphens
hyphenSettings.AllowedConsecutiveHyphens = 1;
vb.net
'--- Return AllowedConsecutiveHyphens
Dim allowedHyphens As Boolean = hyphenSettings.AllowedConsecutiveHyphens
'--- Set AllowedConsecutiveHyphens
hyphenSettings.AllowedConsecutiveHyphens = 1
