Expand Minimize
This topic has not yet been rated - Rate this topic

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: 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;
}
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.