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


WorkbookPart.AddThumbnailPart Method (ThumbnailPartType, String)

Adds a ThumbnailPart to the WorkbookPart.

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

Syntax

'Declaration
Public Function AddThumbnailPart ( _
    partType As ThumbnailPartType, _
    id As String _
) As ThumbnailPart
'Usage
Dim instance As WorkbookPart
Dim partType As ThumbnailPartType
Dim id As String
Dim returnValue As ThumbnailPart

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

Parameters

Return Value

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

See Also

Reference

WorkbookPart Class

WorkbookPart Members

AddThumbnailPart Overload

DocumentFormat.OpenXml.Packaging Namespace