TextEffectFormat PresetTextEffect 屬性 (Publisher)TextEffectFormat.PresetTextEffect property (Publisher)

會傳回或設定代表指定之文字藝術師的樣式**MsoPresetTextEffect** 常數。Returns or sets an MsoPresetTextEffect constant that represents the style of the specified WordArt. 此屬性的值會對應至 文字藝術師圖庫] 對話方塊中,從左到右、 由上到下編號的格式。The values for this property correspond to the formats in the WordArt Gallery dialog box, numbered from left to right, top to bottom. 讀取/寫入。Read/write.



_運算式_代表**TextEffectFormat** 物件的變數。expression A variable that represents a TextEffectFormat object.

傳回值Return value



PresetTextEffect屬性值可以是 Microsoft Office 類型程式庫中所宣告的MsoPresetTextEffect常數之一。The PresetTextEffect property value can be one of the MsoPresetTextEffect constants declared in the Microsoft Office type library.


本範例設定使用中出版物第一頁的第一個圖案的文字效果樣式。This example sets the text effect style for the first shape on the first page of the active publication. 本範例假設使用中出版物第一頁內至少有一個圖案。This example assumes that there is at least one shape on the first page of the active publication.

Sub ChangeTextEffect() 
 With ActiveDocument.Pages(1).Shapes(1) 
 If .Type = msoTextEffect Then 
 .TextEffect.PresetTextEffect = msoTextEffect1 
 End If 
 End With 
End Sub

支援和意見反應Support and feedback

有關於 Office VBA 或這份文件的問題或意見反應嗎?Have questions or feedback about Office VBA or this documentation? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.