IXpsFixedDocumentWriter.AddThumbnail(XpsImageType) Method

Definition

XpsThumbnail 加入 FixedDocument 影像。Adds an XpsThumbnail image for the FixedDocument.

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 of the thumbnail to add.

Returns

XpsThumbnail

XpsThumbnail 的新 FixedDocumentThe new XpsThumbnail for the FixedDocument.

Remarks

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

Notes to Implementers

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

Applies to