Поделиться через


OpenXmlSupportedRelationshipExtensions.AddCustomPropertyPart Метод

Определение

Перегрузки

AddCustomPropertyPart<T>(T, PartTypeInfo, String)

Добавляет в CustomPropertyPart качестве отношения к родительской части

AddCustomPropertyPart<T>(T, String, String)

Добавляет в CustomPropertyPart качестве отношения к родительской части

AddCustomPropertyPart<T>(T, PartTypeInfo, String)

Добавляет в CustomPropertyPart качестве отношения к родительской части

public static DocumentFormat.OpenXml.Packaging.CustomPropertyPart AddCustomPropertyPart<T> (this T parent, DocumentFormat.OpenXml.Packaging.PartTypeInfo partType, string? id = default) where T : DocumentFormat.OpenXml.Packaging.OpenXmlPartContainer, DocumentFormat.OpenXml.Packaging.ISupportedRelationship<DocumentFormat.OpenXml.Packaging.CustomPropertyPart>;
static member AddCustomPropertyPart : 'T * DocumentFormat.OpenXml.Packaging.PartTypeInfo * string -> DocumentFormat.OpenXml.Packaging.CustomPropertyPart (requires 'T :> DocumentFormat.OpenXml.Packaging.OpenXmlPartContainer and 'T :> DocumentFormat.OpenXml.Packaging.ISupportedRelationship<DocumentFormat.OpenXml.Packaging.CustomPropertyPart>)
<Extension()>
Public Function AddCustomPropertyPart(Of T As {OpenXmlPartContainer, ISupportedRelationship(Of CustomPropertyPart)}) (parent As T, partType As PartTypeInfo, Optional id As String = Nothing) As CustomPropertyPart

Параметры типа

T

Параметры

parent
T

Родительская часть, запрашивающая добавление.

partType
PartTypeInfo

Сведения о типе части для добавленной расширяемой части.

id
String

Идентификатор связи. Необязательный, по умолчанию — null.

Возвращаемое значение

Применяется к

AddCustomPropertyPart<T>(T, String, String)

Добавляет в CustomPropertyPart качестве отношения к родительской части

public static DocumentFormat.OpenXml.Packaging.CustomPropertyPart AddCustomPropertyPart<T> (this T parent, string contentType, string? id = default) where T : DocumentFormat.OpenXml.Packaging.OpenXmlPartContainer, DocumentFormat.OpenXml.Packaging.ISupportedRelationship<DocumentFormat.OpenXml.Packaging.CustomPropertyPart>;
static member AddCustomPropertyPart : 'T * string * string -> DocumentFormat.OpenXml.Packaging.CustomPropertyPart (requires 'T :> DocumentFormat.OpenXml.Packaging.OpenXmlPartContainer and 'T :> DocumentFormat.OpenXml.Packaging.ISupportedRelationship<DocumentFormat.OpenXml.Packaging.CustomPropertyPart>)
<Extension()>
Public Function AddCustomPropertyPart(Of T As {OpenXmlPartContainer, ISupportedRelationship(Of CustomPropertyPart)}) (parent As T, contentType As String, Optional id As String = Nothing) As CustomPropertyPart

Параметры типа

T

Параметры

parent
T

Родительская часть, запрашивающая добавление.

contentType
String

Сведения о типе контента для добавленной расширяемой части.

id
String

Идентификатор связи. Необязательный, по умолчанию — null.

Возвращаемое значение

Применяется к