Provides various options that control how a document is shown in Microsoft Word.
Shows how to set a custom zoom factor, which older versions of Microsoft Word will apply to a document upon loading.
Shows how to set a custom zoom type, which older versions of Microsoft Word will apply to a document upon loading.
#include <Aspose.Words.Cpp/Settings/ViewOptions.h>
Public Member Functions | |
bool | get_DisplayBackgroundShape () const |
Controls display of the background shape in print layout view. More... | |
bool | get_DoNotDisplayPageBoundaries () const |
Turns off display of the space between the top of the text and the top edge of the page. More... | |
bool | get_FormsDesign () const |
Specifies whether the document is in forms design mode. More... | |
ViewType | get_ViewType () const |
Controls the view mode in Microsoft Word. More... | |
int32_t | get_ZoomPercent () const |
Gets or sets the percentage (between 10 and 500) at which you want to view your document. More... | |
ZoomType | get_ZoomType () const |
Gets or sets a zoom value based on the size of the window. More... | |
virtual const TypeInfo & | GetType () const override |
virtual bool | Is (const TypeInfo &target) const override |
void | set_DisplayBackgroundShape (bool value) |
Setter for get_DisplayBackgroundShape. More... | |
void | set_DoNotDisplayPageBoundaries (bool value) |
Setter for get_DoNotDisplayPageBoundaries. More... | |
void | set_FormsDesign (bool value) |
Setter for get_FormsDesign. More... | |
void | set_ViewType (ViewType value) |
Setter for get_ViewType. More... | |
void | set_ZoomPercent (int32_t value) |
Setter for get_ZoomPercent. More... | |
void | set_ZoomType (ZoomType value) |
Setter for get_ZoomType. More... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
bool Aspose::Words::Settings::ViewOptions::get_DisplayBackgroundShape | ( | ) | const |
Controls display of the background shape in print layout view.
Shows how to hide/display document background images in view options.
bool Aspose::Words::Settings::ViewOptions::get_DoNotDisplayPageBoundaries | ( | ) | const |
Turns off display of the space between the top of the text and the top edge of the page.
Shows how to hide vertical whitespace and headers/footers in view options.
bool Aspose::Words::Settings::ViewOptions::get_FormsDesign | ( | ) | const |
Specifies whether the document is in forms design mode.
Currently works only for documents in WordML format.
Shows how to enable/disable forms design mode.
Aspose::Words::Settings::ViewType Aspose::Words::Settings::ViewOptions::get_ViewType | ( | ) | const |
Controls the view mode in Microsoft Word.
Although Aspose.Words is able to read and write this option, its usage is application-specific. For example MS Word 2013 does not respect the value of this option.
Shows how to set a custom zoom factor, which older versions of Microsoft Word will apply to a document upon loading.
int32_t Aspose::Words::Settings::ViewOptions::get_ZoomPercent | ( | ) | const |
Gets or sets the percentage (between 10 and 500) at which you want to view your document.
If value is 0 then this property uses 100 instead, else if value is less than 10 or greater than 500 this property throws.
Although Aspose.Words is able to read and write this option, its usage is application-specific. For example MS Word 2013 does not respect the value of this option.
Shows how to set a custom zoom factor, which older versions of Microsoft Word will apply to a document upon loading.
Aspose::Words::Settings::ZoomType Aspose::Words::Settings::ViewOptions::get_ZoomType | ( | ) | const |
Gets or sets a zoom value based on the size of the window.
Shows how to set a custom zoom factor, which older versions of Microsoft Word will apply to a document upon loading.
Shows how to set a custom zoom type, which older versions of Microsoft Word will apply to a document upon loading.
|
overridevirtual |
Reimplemented from System::Object.
|
overridevirtual |
Reimplemented from System::Object.
void Aspose::Words::Settings::ViewOptions::set_DisplayBackgroundShape | ( | bool | value | ) |
void Aspose::Words::Settings::ViewOptions::set_DoNotDisplayPageBoundaries | ( | bool | value | ) |
void Aspose::Words::Settings::ViewOptions::set_FormsDesign | ( | bool | value | ) |
void Aspose::Words::Settings::ViewOptions::set_ViewType | ( | Aspose::Words::Settings::ViewType | value | ) |
void Aspose::Words::Settings::ViewOptions::set_ZoomPercent | ( | int32_t | value | ) |
void Aspose::Words::Settings::ViewOptions::set_ZoomType | ( | Aspose::Words::Settings::ZoomType | value | ) |
|
static |