DocumentBase.HyphenationZone 屬性

取得或設定斷字區域的寬度 (以點為單位)。

命名空間:  Microsoft.Office.Tools.Word
組件:  Microsoft.Office.Tools.Word.v4.0.Utilities (在 Microsoft.Office.Tools.Word.v4.0.Utilities.dll 中)

語法

'宣告
Public Property HyphenationZone As Integer
    Get
    Set
public int HyphenationZone { get; set; }

屬性值

型別:System.Int32
斷字區域的寬度 (以點為單位)。

備註

斷字區域是 Microsoft Office Word 在一行中最後一個字結尾和右邊界之間能保留的最大空間。

範例

下列程式碼範例會啟用文件的自動斷字,並且將斷字區域設定為 36 點 (0.5 英吋)。 若要使用這個範例,請在文件層級專案中的 ThisDocument 類別執行。

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

.NET Framework 安全性

請參閱

參考

DocumentBase 類別

Microsoft.Office.Tools.Word 命名空間