WPS 基础接口 > 文字 API 参考 > Font > 属性 > Font.Animation 属性
返回或设置应用于字体的动态效果类型。WdAnimation 类型,可读写。

语法

表达式.Animation

表达式   必选。一个代表 Font 对象的变量。

示例

本示例为新文档中的文本设置动态效果。

示例代码
let docNew = Documents.Add()
docNew.Content.InsertAfter("This is a test of animation.")
docNew.Content.Font.Animation = wdAnimationLasVegasLights

本示例为选定文本设置动态效果。

示例代码
if(Selection.Type == wdSelectionNormal) {
    Selection.Font.Animation = wdAnimationShimmer
}
else{
    MsgBox("You need to select some text.")
}


请参阅