Publisher (的 ParagraphFormat.CharBasedFirstLineIndent 屬性)

會傳回或設定首行縮排的值 (以東亞字元寬度)。 讀取/寫入的 Long

語法

運算式CharBasedFirstLineIndent

表達 代表 ParagraphFormat 物件的 變數。

傳回值

Long

註解

只有在設定 UseCharBasedFirstLineIndent 屬性之後,才能傳回或設定 CharBasedFirstLineIndent 的 值。 如果沒有先設定 UseCharBasedFirstLineIndent 會傳回執行階段 」 權限遭拒 」 錯誤。

注意事項

只有在用戶端電腦上啟用東亞語言時,才能設定UseCharBasedFirstLineIndent (不論是否啟用東亞語言) ,都可以傳回值。 這表示必須在用戶端電腦上啟用東亞語言,才可使用 CharBasedFirstLineIndent

CharBasedFirstLineIndent 的值可介於 0 (零) 到 80 之間。

範例

下列範例會將使用中出版物第四頁上建立文字方塊。 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 支援與意見反應