MainDocumentPart.AddThumbnailPart Method (String, String)

Adds a ThumbnailPart to the MainDocumentPart.

Namespace:  DocumentFormat.OpenXml.Packaging
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Function AddThumbnailPart ( _
    contentType As String, _
    id As String _
) As ThumbnailPart
'Usage
Dim instance As MainDocumentPart
Dim contentType As String
Dim id As String
Dim returnValue As ThumbnailPart

returnValue = instance.AddThumbnailPart(contentType, _
    id)
public ThumbnailPart AddThumbnailPart(
    string contentType,
    string id
)

Parameters

  • contentType
    Type: System.String
    the content type of the ThumbnailPart

Return Value

Type: DocumentFormat.OpenXml.Packaging.ThumbnailPart
The newly added part.

See Also

Reference

MainDocumentPart Class

MainDocumentPart Members

AddThumbnailPart Overload

DocumentFormat.OpenXml.Packaging Namespace