共用方式為


TextRange2.ParagraphFormat 屬性 (Office)

會傳回代表段落的指定文字的格式設定的 ParagraphFormat 物件。 唯讀。

語法

表情段落格式

一個回傳 TextRange2 物件的表達式。

傳回值

ParagraphFormat

範例

在這個範例中,會在使用中 PowerPoint 簡報內第一張投影片上第二個圖案中的每一個段落之前、之間及之後設定行距。

With Application.ActivePresentation.Slides(2).Shapes(2) 
 With .TextFrame.TextRange2.ParagraphFormat 
 .LineRuleWithin = msoTrue 
 .SpaceWithin = 1.4 
 .LineRuleBefore = msoTrue 
 .SpaceBefore = 0.25 
 .LineRuleAfter = msoTrue 
 .SpaceAfter = 0.75 
 End With 
End With

另請參閱

支援和意見反應

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