Word) (Document.HyphenationZone 屬性

會傳回或設定的斷字區、 寬度以點為單位。 讀取/寫入的 Long

語法

expressionHyphenationZone

表達 代表 Document 物件的變數。

註解

斷字區是 Microsoft Word 在一行之最後一個字結尾和右邊界之間所留下的最大空白數。

範例

注意事項

[!注意事項] 除非Word相容性模式、 HyphenationZone一定會傳回 99999999。

本範例會啟用 MyReport.doc 的自動斷字功能。斷字區會設定為 36 點 (0.5 英吋)。

With Documents("MyReport.doc") 
 .AutoHyphenation = True 
 .HyphenationZone = 36 
End With

本範例會將斷字區設定為 0.25 英吋 (18 點),然後開始進行使用中文件的手動斷字。

With ActiveDocument 
 .HyphenationZone = InchesToPoints(0.25) 
 .ManualHyphenation 
End With

另請參閱

Document 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應