Compartir a través de


MainDocumentPart.AddThumbnailPart Method (ThumbnailPartType)

Adds a ThumbnailPart to the MainDocumentPart.

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

Syntax

'Declaration
Public Function AddThumbnailPart ( _
    partType As ThumbnailPartType _
) As ThumbnailPart
'Usage
Dim instance As MainDocumentPart
Dim partType As ThumbnailPartType
Dim returnValue As ThumbnailPart

returnValue = instance.AddThumbnailPart(partType)
public ThumbnailPart AddThumbnailPart(
    ThumbnailPartType partType
)

Parameters

Return Value

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

See Also

Reference

MainDocumentPart Class

MainDocumentPart Members

AddThumbnailPart Overload

DocumentFormat.OpenXml.Packaging Namespace