Table of contents
TOC
折叠目录
展开目录

ActionSetting.AnimateAction 属性 (PowerPoint)ActionSetting.AnimateAction Property (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

指定发生指定的鼠标操作时指定形状的颜色是否立即反转。可读/写。Specifies whether the color of the specified shape is momentarily inverted when the specified mouse action occurs. Read/write.

语法Syntax

表达式AnimateActionexpression. AnimateAction

表达式_一个表示ActionSetting对象的变量。_expression A variable that represents an ActionSetting object.

返回值Return Value

MsoTriStateMsoTriState

注解Remarks

AnimateAction属性的值可以是其中一个MsoTriState常量。The value of the AnimateAction property can be one of these MsoTriState constants.

常量Constant说明Description
msoFalsemsoFalse发生指定的鼠标操作时,指定形状的颜色不立即反转。The color of the specified shape is not momentarily inverted when the specified mouse action occurs.
属性值为 msoTruemsoTrue发生指定的鼠标操作时,指定形状的颜色立即反转。The color of the specified shape is momentarily inverted when the specified mouse action occurs.

示例Example

本示例设置在幻灯片放映过程中,单击活动演示文稿第一张幻灯片的第三个形状时播放掌声,并立即反转该形状的颜色。This example sets shape three on slide one in the active presentation to play the sound of applause and to momentarily invert its color when it is clicked during a slide show.

With ActivePresentation.Slides(1) _
    .Shapes(3).ActionSettings(ppMouseClick)
        .SoundEffect.Name = "applause"
        .AnimateAction = msoTrue
End With

另请参阅See also

概念Concepts

ActionSetting 对象ActionSetting Object

© 2018 Microsoft