OfficeExtension.ClientObject class

一个代表 Office 文档中的对象的抽象代理对象。An abstract proxy object that represents an object in an Office document. 您可以从上下文 (或其他代理对象) 创建代理对象, 将命令添加到队列以对该对象执行操作, 然后通过调用来将代理对象状态与文档同步context.sync()You create proxy objects from the context (or from other proxy objects), add commands to a queue to act on the object, and then synchronize the proxy object state with the document by calling context.sync().

属性

context

与对象关联的请求上下文The request context associated with the object

isNullObject

返回一个布尔值, 该值指示对应的对象是否为 null 对象。Returns a boolean value for whether the corresponding object is a null object. 在读取 isNullObject context.sync()属性之前, 必须先调用。You must call context.sync() before reading the isNullObject property.

属性详细信息

context

与对象关联的请求上下文The request context associated with the object

context: ClientRequestContext;

属性值

isNullObject

返回一个布尔值, 该值指示对应的对象是否为 null 对象。Returns a boolean value for whether the corresponding object is a null object. 在读取 isNullObject context.sync()属性之前, 必须先调用。You must call context.sync() before reading the isNullObject property.

isNullObject: boolean;

属性值

boolean