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


DocumentBase.HyphenationZone Property

Gets or sets the width of the hyphenation zone, in points.

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 HyphenationZone As Integer
    Get
    Set
public int HyphenationZone { get; set; }

Property Value

Type: System.Int32
The width of the hyphenation zone, in points.

Remarks

The hyphenation zone is the maximum amount of space that Microsoft Office Word leaves between the end of the last word in a line and the right margin.

Examples

The following code example enables automatic hyphenation for the document and sets the hyphenation zone to 36 points (0.5 inch). To use this example, run it from the ThisDocument class in a document-level project.

Private Sub DocumentHyphenationZone()
    Me.AutoHyphenation = True
    Me.HyphenationZone = 36
End Sub 
private void DocumentHyphenationZone()
{
    this.AutoHyphenation = true;
    this.HyphenationZone = 36;
}

.NET Framework Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace