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)

public int HyphenationZone { get; set; }

Property Value

Type: System.Int32

The width of the hyphenation zone, in points.

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.

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 void DocumentHyphenationZone()
{
    this.AutoHyphenation = true;
    this.HyphenationZone = 36;
}
Return to top
Show: