Share via


DocumentBase.HyphenationZone Property

Definition

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

public:
 property int HyphenationZone { int get(); void set(int value); };
public int HyphenationZone { get; set; }
member this.HyphenationZone : int with get, set
Public Property HyphenationZone As Integer

Property Value

The width of the hyphenation zone, in points.

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 void DocumentHyphenationZone()
{
    this.AutoHyphenation = true;
    this.HyphenationZone = 36;
}
Private Sub DocumentHyphenationZone()
    Me.AutoHyphenation = True
    Me.HyphenationZone = 36
End Sub 

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.

Applies to