DocumentBase.ConsecutiveHyphensLimit Property

Definition

Gets or sets the maximum number of consecutive lines that can end with hyphens.

public int ConsecutiveHyphensLimit { get; set; }

Property Value

Int32

The maximum number of consecutive lines that can end with hyphens.

Examples

The following code example limits the number of consecutive lines that can end with hyphens to two. To use this example, run it from the ThisDocument class in a document-level project.

private void DocumentConsecutiveHyphensLimit()
{
    this.AutoHyphenation = true;
    this.ConsecutiveHyphensLimit = 2;
}
Private Sub DocumentConsecutiveHyphensLimit()
    Me.AutoHyphenation = True
    Me.ConsecutiveHyphensLimit = 2
End Sub

Remarks

If this property is set to 0 (zero), any number of consecutive lines can end with hyphens.

Applies to