DocumentUpdateThumbnail Method (ThumbnailGeneratingOptions)
Updates Thumbnail of the document according to the specified options.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.9
Syntax
public void UpdateThumbnail(
	ThumbnailGeneratingOptions options
)

Parameters

options
Type: Aspose.Words.RenderingThumbnailGeneratingOptions
The generating options to use.
Remarks
The ThumbnailGeneratingOptions allows you to specify the source of thumbnail, size and other options. If attempt to generate thumbnail fails, doesn't change one.
Examples
Shows how to update a document's thumbnail.
[C#]

Document doc = new Document();

// Update document's thumbnail the default way. 
doc.UpdateThumbnail();

// Review/change thumbnail options and then update document's thumbnail.
ThumbnailGeneratingOptions tgo = new ThumbnailGeneratingOptions();

Console.WriteLine("Thumbnail size: {0}", tgo.ThumbnailSize);
tgo.GenerateFromFirstPage = true;

doc.UpdateThumbnail(tgo);
See Also