Publisher (的 ParagraphFormat.UseCharBasedFirstLineIndent 屬性)
會傳回或設定 MsoTriState 常數,指定段落是否使用東亞字元寬度縮排。 讀取/寫入。
語法
運算式。UseCharBasedFirstLineIndent
表達 代表 ParagraphFormat 物件的 變數。
傳回值
MsoTriState
註解
UseCharBasedFirstLineIndent 屬性值可以是 Microsoft Office 類型程式庫中所宣告的 MsoTriState 常數之一。
UseCharBasedFirstLineIndent 的值可以是只有將東亞語言已啟用的用戶端電腦上,而不論是否已啟用東亞語言可以傳回的值。 請注意,必須先 CharBasedFirstLineIndent 屬性設定 UseCharBasedFirstLineIndent 可以傳回或設定。 如果沒有先設定 UseCharBasedFirstLineIndent 會傳回執行階段 」 權限遭拒 」 錯誤。
如果 UseCharBasedFirstLineIndent 是 msoTrue,則段落會使用東亞字元寬度縮排,如果是 msoFalse,則不會。 預設值為 msoFalse 。
範例
下列範例會將使用中出版物第四頁上建立文字方塊。 UseCharBasedFirstLineIndent 屬性設為 True 之後,第一行縮排的寬度為使用 CharBasedFirstLineIndent 屬性設定為 15 點。 然後設定 font 屬性及文字插入至段落。
Dim theTextBox As Shape
Set theTextBox = ActiveDocument.Pages(4).Shapes _
.AddShape(msoShapeRectangle, 100, 100, 300, 200)
With theTextBox
.TextFrame.TextRange.ParagraphFormat _
.UseCharBasedFirstLineIndent = msoTrue
.TextFrame.TextRange.ParagraphFormat _
.CharBasedFirstLineIndent = 15
.TextFrame.TextRange.Font.Name = "Verdana"
.TextFrame.TextRange.Font.Size = 12
.TextFrame.TextRange.Text = "This is a test sentence." _
& Chr(13) & "This is another test sentence."
End With
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。