WorkbookPart.AddCustomXmlPart 方法

定义

重载

AddCustomXmlPart(CustomXmlPartType)

将 CustomXmlPart 添加到 WorkbookPart

AddCustomXmlPart(String)

将 CustomXmlPart 添加到 WorkbookPart

AddCustomXmlPart(CustomXmlPartType, String)

将 CustomXmlPart 添加到 WorkbookPart

AddCustomXmlPart(String, String)

将 CustomXmlPart 添加到 WorkbookPart

AddCustomXmlPart(CustomXmlPartType)

将 CustomXmlPart 添加到 WorkbookPart

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 添加到 WorkbookPart

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 添加到 WorkbookPart

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 添加到 WorkbookPart

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

返回

新添加的部件。

适用于