TextEffectFormat 属性 (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.

语法Syntax

表达式PresetTextEffectexpression.PresetTextEffect

_表达式_一个代表**TextEffectFormat** 对象的变量。expression A variable that represents a TextEffectFormat object.

返回值Return value

MsoPresetTextEffectMsoPresetTextEffect

说明Remarks

PresetTextEffect属性值可以是在 Microsoft Office 类型库中声明的MsoPresetTextEffect常量之一。The PresetTextEffect property value can be one of the MsoPresetTextEffect constants declared in the Microsoft Office type library.

示例Example

本示例设置当前出版物的第一页上的第一个形状的文字效果样式。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.