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

Pane.Active 属性 (PowerPoint)Pane.Active Property (PowerPoint)

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

返回指定的窗格或窗口是否处于活动状态。只读。Returns whether the specified pane or window is active. Read-only.

语法Syntax

表达式活动expression. Active

表达式_一个表示一个窗格中对象的变量。_expression A variable that represents a Pane object.

返回值Return Value

MsoTriStateMsoTriState

注解Remarks

活动属性返回的值可以是其中一个MsoTriState常量。The value returned by the Active property can be one of these MsoTriState constants.

常量Constant说明Description
msoFalsemsoFalse指定的窗格或窗口处于非活动状态。The specified pane or window is inactive.
属性值为 msoTruemsoTrue指定的窗格或窗口处于活动状态。The specified pane or window is active.

示例Example

本示例检查演示文稿文件_"test.ppt"是否处于活动状态的窗口。如果不是这样,它保存在变量中当前处于活动状态的演示文稿的名称oldWin,并激活"test.ppt"演示文稿。This example checks to see if the presentation file "test.ppt" is in the active window. If not, it saves the name of the presentation that is currently active in the variable oldWin and activates the "test.ppt"_ presentation.

With Application.Presentations("test.ppt").Windows(1)

    If Not .Active Then

        Set oldWin = Application.ActiveWindow

        .Activate

    End If

End With

另请参阅See also

概念Concepts

Pane 对象Pane Object

© 2018 Microsoft