OpenXmlSupportedRelationshipExtensions.AddThumbnailPart Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddThumbnailPart<T>(T, PartTypeInfo, String) |
Adds a ThumbnailPart as a relationship to the parent part. |
AddThumbnailPart<T>(T, String, String) |
Adds a ThumbnailPart as a relationship to the parent part |
AddThumbnailPart<T>(T, PartTypeInfo, String)
Adds a ThumbnailPart as a relationship to the parent part.
public static DocumentFormat.OpenXml.Packaging.ThumbnailPart AddThumbnailPart<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.ThumbnailPart>;
static member AddThumbnailPart : 'T * DocumentFormat.OpenXml.Packaging.PartTypeInfo * string -> DocumentFormat.OpenXml.Packaging.ThumbnailPart (requires 'T :> DocumentFormat.OpenXml.Packaging.OpenXmlPartContainer and 'T :> DocumentFormat.OpenXml.Packaging.ISupportedRelationship<DocumentFormat.OpenXml.Packaging.ThumbnailPart>)
<Extension()>
Public Function AddThumbnailPart(Of T As {OpenXmlPartContainer, ISupportedRelationship(Of ThumbnailPart)}) (parent As T, partType As PartTypeInfo, Optional id As String = Nothing) As ThumbnailPart
Type Parameters
- T
Parameters
- parent
- T
The parent part requesting to add.
- partType
- PartTypeInfo
The part type information for the added extensible part.
- id
- String
The relationship id. Optional, default to null.
Returns
Applies to
AddThumbnailPart<T>(T, String, String)
Adds a ThumbnailPart as a relationship to the parent part
public static DocumentFormat.OpenXml.Packaging.ThumbnailPart AddThumbnailPart<T> (this T parent, string contentType, string? id = default) where T : DocumentFormat.OpenXml.Packaging.OpenXmlPartContainer, DocumentFormat.OpenXml.Packaging.ISupportedRelationship<DocumentFormat.OpenXml.Packaging.ThumbnailPart>;
static member AddThumbnailPart : 'T * string * string -> DocumentFormat.OpenXml.Packaging.ThumbnailPart (requires 'T :> DocumentFormat.OpenXml.Packaging.OpenXmlPartContainer and 'T :> DocumentFormat.OpenXml.Packaging.ISupportedRelationship<DocumentFormat.OpenXml.Packaging.ThumbnailPart>)
<Extension()>
Public Function AddThumbnailPart(Of T As {OpenXmlPartContainer, ISupportedRelationship(Of ThumbnailPart)}) (parent As T, contentType As String, Optional id As String = Nothing) As ThumbnailPart
Type Parameters
- T
Parameters
- parent
- T
The parent part requesting to add.
- contentType
- String
The content type information for the added extensible part.
- id
- String
The relationship id. Optional, default to null.