_Document.ActiveWindow 属性

定义

返回一个 Window 对象,表示活动窗口。Returns a Window object that represents the active window.

public:
 property Microsoft::Office::Interop::Word::Window ^ ActiveWindow { Microsoft::Office::Interop::Word::Window ^ get(); };
public Microsoft.Office.Interop.Word.Window ActiveWindow { get; }
member this.ActiveWindow : Microsoft.Office.Interop.Word.Window
Public ReadOnly Property ActiveWindow As Window

属性值

Window

注解

活动窗口是具有焦点的窗口。The active window is the window with the focus.

如果没有打开的窗口,则会发生错误。If there are no windows open, an error occurs.

适用于