DocumentBase.GetAutomationObject 方法

定义

由 Visual Studio Tools for Office Runtime 调用,用于获取可由文档中的 VBA 代码使用的对象。

protected virtual object GetAutomationObject ();

返回

Object

文档级自定义项中的一个对象,可由文档中的 VBA 代码使用。

实现

注解

重写此方法以返回已向文档中的 VBA 代码公开的类的实例。 有关详细信息,请参阅 Combining VBA and Document-Level Customizations

适用于