IXpsFixedDocumentSequenceWriter.AddThumbnail(XpsImageType) Method

Definition

Adds an XpsThumbnail image for the FixedDocumentSequence.Adds an XpsThumbnail image for the FixedDocumentSequence.

public:
 System::Windows::Xps::Packaging::XpsThumbnail ^ AddThumbnail(System::Windows::Xps::Packaging::XpsImageType imageType);
public System.Windows.Xps.Packaging.XpsThumbnail AddThumbnail (System.Windows.Xps.Packaging.XpsImageType imageType);
abstract member AddThumbnail : System.Windows.Xps.Packaging.XpsImageType -> System.Windows.Xps.Packaging.XpsThumbnail
Public Function AddThumbnail (imageType As XpsImageType) As XpsThumbnail

Parameters

imageType
XpsImageType

The image type to write.The image type to write.

Returns

XpsThumbnail

The new XpsThumbnail for the FixedDocumentSequence.The new XpsThumbnail for the FixedDocumentSequence.

Remarks

例如,imageType 可能是 JpegImageTypePngImageTypeFor example, the imageType might be JpegImageType or PngImageType.

Notes to Implementers

只有一個縮圖影像可以代表整個檔順序(雖然個別的檔和頁面可以有自己的縮圖影像)。Only one thumbnail image can represent the document sequence as a whole (although individual documents and pages can have their own thumbnail images). FixedDocumentSequence 已經有縮圖時,如果呼叫 AddThumbnail(XpsImageType),則會擲回 InvalidOperationExceptionAn InvalidOperationException is thrown if AddThumbnail(XpsImageType) is called when the FixedDocumentSequence already has a thumbnail.

Applies to