DrawingsPart.AddCustomXmlPart 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddCustomXmlPart(CustomXmlPartType) |
将 CustomXmlPart 添加到 DrawingsPart |
AddCustomXmlPart(String) |
将 CustomXmlPart 添加到 DrawingsPart |
AddCustomXmlPart(CustomXmlPartType, String) |
将 CustomXmlPart 添加到 DrawingsPart |
AddCustomXmlPart(String, String) |
将 CustomXmlPart 添加到 DrawingsPart |
AddCustomXmlPart(CustomXmlPartType)
将 CustomXmlPart 添加到 DrawingsPart
public DocumentFormat.OpenXml.Packaging.CustomXmlPart AddCustomXmlPart (DocumentFormat.OpenXml.Packaging.CustomXmlPartType partType);
member this.AddCustomXmlPart : DocumentFormat.OpenXml.Packaging.CustomXmlPartType -> DocumentFormat.OpenXml.Packaging.CustomXmlPart
Public Function AddCustomXmlPart (partType As CustomXmlPartType) As CustomXmlPart
参数
- partType
- CustomXmlPartType
CustomXmlPart 的部件类型
返回
新添加的部件。
适用于
AddCustomXmlPart(String)
将 CustomXmlPart 添加到 DrawingsPart
public DocumentFormat.OpenXml.Packaging.CustomXmlPart AddCustomXmlPart (string contentType);
member this.AddCustomXmlPart : string -> DocumentFormat.OpenXml.Packaging.CustomXmlPart
Public Function AddCustomXmlPart (contentType As String) As CustomXmlPart
参数
- contentType
- String
CustomXmlPart 的内容类型
返回
新添加的部件。
适用于
AddCustomXmlPart(CustomXmlPartType, String)
将 CustomXmlPart 添加到 DrawingsPart
public DocumentFormat.OpenXml.Packaging.CustomXmlPart AddCustomXmlPart (DocumentFormat.OpenXml.Packaging.CustomXmlPartType partType, string id);
member this.AddCustomXmlPart : DocumentFormat.OpenXml.Packaging.CustomXmlPartType * string -> DocumentFormat.OpenXml.Packaging.CustomXmlPart
Public Function AddCustomXmlPart (partType As CustomXmlPartType, id As String) As CustomXmlPart
参数
- partType
- CustomXmlPartType
CustomXmlPart 的部件类型
- id
- String
关系 ID
返回
新添加的部件。
适用于
AddCustomXmlPart(String, String)
将 CustomXmlPart 添加到 DrawingsPart
public DocumentFormat.OpenXml.Packaging.CustomXmlPart AddCustomXmlPart (string contentType, string id);
member this.AddCustomXmlPart : string * string -> DocumentFormat.OpenXml.Packaging.CustomXmlPart
Public Function AddCustomXmlPart (contentType As String, id As String) As CustomXmlPart
参数
- contentType
- String
CustomXmlPart 的内容类型
- id
- String
关系 ID
返回
新添加的部件。