WorksheetPart.AddCustomPropertyPart 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
返回
新添加的部件。