WorksheetPart.AddCustomPropertyPart 方法

定义

重载

AddCustomPropertyPart(CustomPropertyPartType)

将 CustomPropertyPart 添加到 WorksheetPart

AddCustomPropertyPart(String)

将 CustomPropertyPart 添加到 WorksheetPart

AddCustomPropertyPart(CustomPropertyPartType, String)

将 CustomPropertyPart 添加到 WorksheetPart

AddCustomPropertyPart(String, String)

将 CustomPropertyPart 添加到 WorksheetPart

AddCustomPropertyPart(CustomPropertyPartType)

将 CustomPropertyPart 添加到 WorksheetPart

public DocumentFormat.OpenXml.Packaging.CustomPropertyPart AddCustomPropertyPart (DocumentFormat.OpenXml.Packaging.CustomPropertyPartType partType);
member this.AddCustomPropertyPart : DocumentFormat.OpenXml.Packaging.CustomPropertyPartType -> DocumentFormat.OpenXml.Packaging.CustomPropertyPart
Public Function AddCustomPropertyPart (partType As CustomPropertyPartType) As CustomPropertyPart

参数

partType
CustomPropertyPartType

CustomPropertyPart 的部件类型

返回

新添加的部件。

适用于

AddCustomPropertyPart(String)

将 CustomPropertyPart 添加到 WorksheetPart

public DocumentFormat.OpenXml.Packaging.CustomPropertyPart AddCustomPropertyPart (string contentType);
member this.AddCustomPropertyPart : string -> DocumentFormat.OpenXml.Packaging.CustomPropertyPart
Public Function AddCustomPropertyPart (contentType As String) As CustomPropertyPart

参数

contentType
String

CustomPropertyPart 的内容类型

返回

新添加的部件。

适用于

AddCustomPropertyPart(CustomPropertyPartType, String)

将 CustomPropertyPart 添加到 WorksheetPart

public DocumentFormat.OpenXml.Packaging.CustomPropertyPart AddCustomPropertyPart (DocumentFormat.OpenXml.Packaging.CustomPropertyPartType partType, string id);
member this.AddCustomPropertyPart : DocumentFormat.OpenXml.Packaging.CustomPropertyPartType * string -> DocumentFormat.OpenXml.Packaging.CustomPropertyPart
Public Function AddCustomPropertyPart (partType As CustomPropertyPartType, id As String) As CustomPropertyPart

参数

partType
CustomPropertyPartType

CustomPropertyPart 的部件类型

id
String

关系 ID

返回

新添加的部件。

适用于

AddCustomPropertyPart(String, String)

将 CustomPropertyPart 添加到 WorksheetPart

public DocumentFormat.OpenXml.Packaging.CustomPropertyPart AddCustomPropertyPart (string contentType, string id);
member this.AddCustomPropertyPart : string * string -> DocumentFormat.OpenXml.Packaging.CustomPropertyPart
Public Function AddCustomPropertyPart (contentType As String, id As String) As CustomPropertyPart

参数

contentType
String

CustomPropertyPart 的内容类型

id
String

关系 ID

返回

新添加的部件。

适用于