_Application.ActiveDocument 属性

定义

返回表示 Document 活动文档的 对象。

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

属性值

注解

活动文档是具有焦点的文档。

如果没有打开的文档,就会导致出错。

适用于