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

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

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

返回或设置在单击指定的形状或将鼠标指针置于形状在幻灯片放映时将发生的操作的类型。读/写。Returns or sets the type of action that will occur when the specified shape is clicked or the mouse pointer is positioned over the shape during a slide show. Read/write.

语法Syntax

表达式操作expression. Action

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

返回值Return Value

LongLong

注解Remarks

动作的属性值可以是下面的PpActionType常量之一。The Action property value can be one of the following PpActionType constants.

|| |:-----| |ppActionEndShowppActionEndShow| |ppActionFirstSlideppActionFirstSlide| |ppActionHyperlinkppActionHyperlink| |ppActionLastSlideppActionLastSlide| |ppActionLastSlideViewedppActionLastSlideViewed| |ppActionMixedppActionMixed| |ppActionNamedSlideShowppActionNamedSlideShow| |ppActionNextSlideppActionNextSlide| |ppActionNoneppActionNone| |ppActionOLEVerbppActionOLEVerb| |ppActionPlayppActionPlay| |ppActionPreviousSlideppActionPreviousSlide| |ppActionRunMacroppActionRunMacro| |ppActionRunProgramppActionRunProgram| 下表中所示,可以使用操作属性与ActionSetting对象,此对象的其他属性结合使用。You can use the Action property in conjunction with other properties of the ActionSetting object, as shown in the following table.

如果将操作属性设置为此值If you set the Action property to this value使用此属性Use this property若要执行此操作To do this
ppActionHyperlinkppActionHyperlinkHyperlinkHyperlink设置超链接的属性,在幻灯片放映过程中为响应形状上的鼠标动作将转至该超链接。Set properties for the hyperlink that will be followed in response to a mouse action on the shape during a slide show.
ppActionRunProgramppActionRunProgram运行Run返回或设置在幻灯片放映过程中为响应形状上的鼠标动作而运行的程序的名称。Return or set the name of the program to run in response to a mouse action on the shape during a slide show.
ppActionRunMacroppActionRunMacro运行Run返回或设置在幻灯片放映过程中为响应形状上的鼠标动作而运行的宏的名称。Return or set the name of the macro to run in response to a mouse action on the shape during a slide show.
ppActionOLEVerbppActionOLEVerbActionVerbActionVerb设置在幻灯片放映过程中为响应形状上的鼠标动作而调用的 OLE 动作。Set the OLE verb that will be invoked in response to a mouse action on the shape during a slide show.
ppActionNamedSlideShowppActionNamedSlideShowSlideShowNameSlideShowName设置自定义放映名称以响应幻灯片放映过程中对形状的鼠标操作。Set the name of the custom slide show that will run in response to a mouse action on the shape during a slide show.

示例Example

本示例设置活动演示文稿第一张幻灯片的第三个形状(OLE 对象),使其在幻灯片放映过程中当鼠标移过它时播放。This example sets shape three (an OLE object) on slide one in the active presentation to be played when the mouse passes over it during a slide show.

With ActivePresentation.Slides(1) _
    .Shapes(3).ActionSettings(ppMouseOver)

        .ActionVerb = "Play"
        .Action = ppActionOLEVerb

End With

另请参阅See also

概念Concepts

ActionSetting 对象ActionSetting Object

© 2018 Microsoft