Udostępnij za pośrednictwem


Document.HyphenationZone Property (2007 System)

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

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

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public Property HyphenationZone As Integer
'Usage
Dim instance As Document 
Dim value As Integer 

value = instance.HyphenationZone

instance.HyphenationZone = value
[BrowsableAttribute(false)]
public int HyphenationZone { get; set; }
[BrowsableAttribute(false)]
public:
property int HyphenationZone {
    int get ();
    void set (int value);
}
public function get HyphenationZone () : int 
public function set HyphenationZone (value : int)

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).

This example is for a document-level customization.

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

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace