Поделиться через


DocumentBase.ConsecutiveHyphensLimit Property

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

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Syntax

'Declaration
Public Property ConsecutiveHyphensLimit As Integer
    Get
    Set
public int ConsecutiveHyphensLimit { get; set; }

Property Value

Type: System.Int32
The maximum number of consecutive lines that can end with hyphens.

Remarks

If this property is set to 0 (zero), any number of consecutive lines 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 Sub DocumentConsecutiveHyphensLimit()
    Me.AutoHyphenation = True
    Me.ConsecutiveHyphensLimit = 2
End Sub
private void DocumentConsecutiveHyphensLimit()
{
    this.AutoHyphenation = true;
    this.ConsecutiveHyphensLimit = 2;
}

.NET Framework Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace