Shape.TextEffect 屬性 (Excel)Shape.TextEffect property (Excel)

會傳回 TextEffectFormat 物件,其中包含指定之圖案的文字效果設定格式屬性。Returns a TextEffectFormat object that contains text-effect formatting properties for the specified shape. 唯讀。Read-only.



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


如果 myDocument 中的圖案三是文字藝術師,本範例會將該圖案的字型樣式設為粗體。This example sets the font style to bold for shape three on myDocument if the shape is WordArt.

Set myDocument = Worksheets(1) 
With myDocument.Shapes(3) 
 If .Type = msoTextEffect Then 
 .TextEffect.FontBold = True 
 End If 
End With

支援和意見反應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.