CustomXMLPart 成员 (Office)CustomXMLPart members (Office)

表示 CustomXMLParts 集合中的一个 CustomXMLPartRepresents a single CustomXMLPart in a CustomXMLParts collection.

事件Events

名称Name 说明Description
NodeAfterDeleteNodeAfterDelete CustomXMLPart对象中删除节点之后发生。Occurs after a node is deleted in a CustomXMLPart object.
NodeAfterInsertNodeAfterInsert 该事件发生在 CustomXMLPart 对象中插入节点后。Occurs after a node is inserted in a CustomXMLPart object.
NodeAfterReplaceNodeAfterReplace 恰好在CustomXMLPart对象中的节点被替换之后发生。Occurs just after a node is replaced in a CustomXMLPart object.

方法Methods

名称Name 说明Description
AddNodeAddNode 将节点添加到 XML 树。Adds a node to the XML tree.
删除Delete 从数据存储(IXMLDataStore 接口)中删除当前 CustomXMLPartDeletes the current CustomXMLPart from the data store (IXMLDataStore interface).
LoadLoad 使模板作者可以通过现有文件填充 CustomXMLPartAllows the template author to populate a CustomXMLPart from an existing file. 如果加载成功,则返回 TrueReturns True if the load was successful.
LoadXMLLoadXML 允许模板作者依据 XML 字符串填充 CustomXMLPart 对象。Allows the template author to populate a CustomXMLPart object from an XML string. 如果加载成功,则返回 TrueReturns True if the load was successful.
SelectNodesSelectNodes 从自定义 XML 部件中选择节点的集合。Selects a collection of nodes from a custom XML part.
SelectSingleNodeSelectSingleNode 选择自定义 XML 部件内与 XPath 表达式匹配的单个节点。Selects a single node within a custom XML part matching an XPath expression.

属性Properties

名称Name 说明Description
ApplicationApplication 获取一个表示CustomXMLPart对象的容器应用程序的 Application对象。Gets an Application object that represents the container application for the CustomXMLPart object. 只读。Read-only.
BuiltInBuiltIn 获取一个指示 CustomXMLPart 是否为内置的值。Gets a value that indicates whether the CustomXMLPart is built-in. 只读。Read-only.
CreatorCreator 获取一个32位整数, 该整数指示在其中创建CustomXMLPart对象的应用程序。Gets a 32-bit integer that indicates the application in which the CustomXMLPart object was created. 只读。Read-only.
DocumentElementDocumentElement 获取文档中数据绑定区域的根元素。Gets the root element of a bound region of data in a document. 如果该区域为空,则该属性将返回 NothingIf the region is empty, the property returns Nothing. 只读。Read-only.
错误Errors 获取一个CustomXMLValidationErrors对象, 该对象提供对任何 XML 验证错误 (如果存在) 的访问权限。Gets a CustomXMLValidationErrors object that provides access to any XML validation errors, if any exist. 如果不存在验证错误, 则此属性返回NothingIf no validation errors exist, this property returns Nothing. 只读。Read-only.
IdId 获取包含分配给当前CustomXMLPart对象的 GUID 的字符串Gets a String containing the GUID assigned to the current CustomXMLPart object. 只读。Read-only.
NamespaceManagerNamespaceManager 获取对当前 CustomXMLPart 对象使用的命名空间前缀映射集。Gets the set of namespace prefix mappings used against the current CustomXMLPart object. 只读。Read-only.
NamespaceURINamespaceURI 获取CustomXMLPart对象的命名空间的唯一地址标识符。Gets the unique address identifier for the namespace of the CustomXMLPart object. 只读。Read-only.
ParentParent 获取CustomXMLPart对象的对象。Gets the Parent object for the CustomXMLPart object. 只读。Read-only.
SchemaCollectionSchemaCollection 获取或设置一个CustomXMLSchemaCollection对象, 该对象代表附加到文档中的数据绑定区域的架构集。Gets or sets a CustomXMLSchemaCollection object representing the set of schemas attached to a bound region of data in a document. 读/写。Read/write.
XMLXML 获取当前CustomXMLPart对象的 XML 表示形式。Gets the XML representation of the current CustomXMLPart object. 只读。Read-only.

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.