IXpsFixedPageWriter.AddThumbnail Method (XpsImageType)


Adds a thumbnail image of a specified XpsImageType to the current page.

Namespace:   System.Windows.Xps.Packaging
Assembly:  ReachFramework (in ReachFramework.dll)

XpsThumbnail AddThumbnail(
	XpsImageType imageType


Type: System.Windows.Xps.Packaging.XpsImageType

The image type of the thumbnail image to add to the page.

Return Value

Type: System.Windows.Xps.Packaging.XpsThumbnail

The new thumbnail image resource that was added.

Exception Condition

AddThumbnail has already been called to add an image thumbnail for this page.


Dispose has been called.

AddThumbnail adds a new XpsImageType to the document package and associates it with the current FixedPage.

For example, imageType can be JpegImageType or PngImageType. to add a JPEG or PNG thumbnail image, respectively.

Notes to Implementers:

Each page can only contain with one thumbnail. An InvalidOperationException is thrown if AddThumbnail is called to add more than one thumbnail image for the page.

.NET Framework
Available since 3.0
Return to top