PresentationDocument.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(ThumbnailPartType) |
Adds a ThumbnailPart to the PresentationDocument. |
AddThumbnailPart(String) |
Adds a ThumbnailPart to the PresentationDocument. |
AddThumbnailPart(ThumbnailPartType)
Adds a ThumbnailPart to the PresentationDocument.
public DocumentFormat.OpenXml.Packaging.ThumbnailPart AddThumbnailPart (DocumentFormat.OpenXml.Packaging.ThumbnailPartType partType);
member this.AddThumbnailPart : DocumentFormat.OpenXml.Packaging.ThumbnailPartType -> DocumentFormat.OpenXml.Packaging.ThumbnailPart
Public Function AddThumbnailPart (partType As ThumbnailPartType) As ThumbnailPart
Parameters
- partType
- ThumbnailPartType
The type of the ThumbnailPart.
Returns
The newly added ThumbnailPart.
Applies to
AddThumbnailPart(String)
Adds a ThumbnailPart to the PresentationDocument.
public DocumentFormat.OpenXml.Packaging.ThumbnailPart AddThumbnailPart (string contentType);
member this.AddThumbnailPart : string -> DocumentFormat.OpenXml.Packaging.ThumbnailPart
Public Function AddThumbnailPart (contentType As String) As ThumbnailPart
Parameters
- contentType
- String
The content type of the ThumbnailPart.
Returns
The newly added ThumbnailPart.