Table of contents
TOC
折叠目录
展开目录

CustomXMLParts.PartAfterAdd 事件 (办公室)CustomXMLParts.PartAfterAdd Event (Office)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

附加集合添加了一个CustomXMLPart对象后发生。Occurs just after a CustomXMLPart object is added to the CustomXMLParts collection.

语法Syntax

表达式PartAfterAdd( NewPart)expression. PartAfterAdd( NewPart, )

该表达式返回一个附加对象。An expression that returns a CustomXMLParts object.

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
NewPartNewPart必需RequiredCustomXMLPartCustomXMLPart已添加的部件。The part that was added.

示例Example

下面的示例显示 XML 内容的一部分添加到附加集合之后。The following example displays the XML contents of a part after it has been added to a CustomXMLParts collection.

Sub CustomXMLParts_PartAfterAdd(ByVal objPart As CustomXMLPart) 
Dim strPartXML As String 
strPartXML = objPart.XML 
   MsgBox ("The part's contents are: " & vbCrLf & strPartXML) 
End Sub

另请参阅See also

概念Concepts

附加对象CustomXMLParts Object

其他资源Other resources

附加对象成员CustomXMLParts Object Members

© 2018 Microsoft