Click or drag to resize
ViewOptions Class
Represents the view options for the DocumentModel. Supported only in DOCX and DOC formats and partially in PDF format.
Inheritance Hierarchy
SystemObject
  GemBox.DocumentViewOptions

Namespace:  GemBox.Document
Assembly:  GemBox.Document (in GemBox.Document.dll) Version: 25.3.30.1255
Syntax
public sealed class ViewOptions

The ViewOptions type exposes the following members.

Constructors
  NameDescription
Public methodViewOptions
Initializes a new instance of the ViewOptions class.
Top
Properties
  NameDescription
Public propertyViewType
Gets or sets the type of the view.
Public propertyZoom
Gets or sets the zoom.
Top
Methods
  NameDescription
Public methodClone
Clones this ViewOptions instance.
Top
Remarks

ViewOptions are used to define document view and zoom when document is viewed in an application such as Microsoft Word or Adobe Reader.

For more information, see view options sample.

ViewOptions are currently no supported when exporting a document to XPS or image file formats.

See Also