共用方式為


PowerPoint (的 TextStyles 物件)

TextStyle 物件所表示的三種文字樣式層標題文字、 本文及預設文字-每個這些集合。

註解

每種文字樣式包含 TextFrame 物件的說明文字內文字邊界的放置方式、 Ruler 物件包含定位停駐點及大綱格式設定資訊,並包含大綱文字的格式資訊的 TextStyleLevels 集合的縮排。

範例

使用 TextStyles (索引) ,其中 indexppBodyStyleppDefaultStyleppTitleStyle,可傳回單一 TextStyle 物件。 本範例設定使用中簡報的所有備忘稿上附註的邊界內文] 區域中。

With ActivePresentation.NotesMaster _
        .TextStyles(ppBodyStyle).TextFrame
    .MarginBottom = 50
    .MarginLeft = 50
    .MarginRight = 50
    .MarginTop = 50
End With

另請參閱

PowerPoint 物件模型參考資料

支援和意見反應

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