Aspose::Words::Rendering::ThumbnailGeneratingOptions Class Reference

Detailed Description

Can be used to specify additional options when generating thumbnail for a document.

User can call method UpdateThumbnail to generate Thumbnail for a document.

#include <Aspose.Words.Cpp/Rendering/ThumbnailGeneratingOptions.h>

+ Inheritance diagram for Aspose::Words::Rendering::ThumbnailGeneratingOptions:

Public Member Functions

 ThumbnailGeneratingOptions ()
 
bool get_GenerateFromFirstPage () const
 Specifies whether to generate thumbnail from first page of the document or first image. More...
 
Size get_ThumbnailSize () const
 Size of generated thumbnail in pixels. Default is 600x900. More...
 
void set_GenerateFromFirstPage (bool value)
 Setter for get_GenerateFromFirstPage. More...
 
void set_ThumbnailSize (Size value)
 Setter for get_ThumbnailSize. More...
 
- Public Member Functions inherited from Object
ASPOSECPP_SHARED_API Object ()
 
ASPOSECPP_SHARED_API Object (Object const &x)
 
virtual ASPOSECPP_SHARED_API ~Object ()
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 
Detail::SmartPtrCounter * GetCounter ()
 
virtual ASPOSECPP_SHARED_API int GetHashCode () const
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 
ASPOSECPP_SHARED_API void Lock ()
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 
Objectoperator= (Object const &x)
 
bool ReferenceEquals (String const &str, std::nullptr_t)
 
bool ReferenceEquals (String const &str1, String const &str2)
 
int RemovedSharedRefs (int count)
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (unsigned int argument)
 
int SharedCount () const
 
ObjectSharedRefAdded ()
 
int SharedRefRemovedSafe ()
 
virtual ASPOSECPP_SHARED_API String ToString () const
 
ASPOSECPP_SHARED_API void Unlock ()
 
Detail::SmartPtrCounter * WeakRefAdded ()
 
void WeakRefRemoved ()
 

Additional Inherited Members

- Public Types inherited from Object
typedef SmartPtr< Objectptr
 
typedef System::Details::SharedMembersType shared_members_type
 
- Static Public Member Functions inherited from Object
bool Equals (double const &objA, double const &objB)
 
bool Equals (float const &objA, float const &objB)
 
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 
static const TypeInfoType ()
 

Constructor & Destructor Documentation

◆ ThumbnailGeneratingOptions()

Aspose::Words::Rendering::ThumbnailGeneratingOptions::ThumbnailGeneratingOptions ( )

Member Function Documentation

◆ get_GenerateFromFirstPage()

bool Aspose::Words::Rendering::ThumbnailGeneratingOptions::get_GenerateFromFirstPage ( ) const

Specifies whether to generate thumbnail from first page of the document or first image.

Default is true, which means thumbnail will be generated from first page of the document. If value is false and there is no image in the document, thumbnail will be generated from first page of the document.

◆ get_ThumbnailSize()

System::Drawing::Size Aspose::Words::Rendering::ThumbnailGeneratingOptions::get_ThumbnailSize ( ) const

Size of generated thumbnail in pixels. Default is 600x900.

◆ set_GenerateFromFirstPage()

void Aspose::Words::Rendering::ThumbnailGeneratingOptions::set_GenerateFromFirstPage ( bool  value)

◆ set_ThumbnailSize()

void Aspose::Words::Rendering::ThumbnailGeneratingOptions::set_ThumbnailSize ( System::Drawing::Size  value)