GemBox.Document
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    ViewOptions Class

    Namespace:
    GemBox.Document
    Assembly:
    GemBox.Document.dll

    Represents the view options for the DocumentModel. Supported only in DOCX and DOC formats and partially in PDF format.

    • C#
    • VB.NET
    public sealed class ViewOptions
    Public NotInheritable Class ViewOptions
    Inheritance:
    System.Object
    ViewOptions
    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 example.

    Constructors

    ViewOptions()

    Initializes a new instance of the ViewOptions class.

    • C#
    • VB.NET
    public ViewOptions()
    Public Sub New

    Properties

    ViewType

    Gets or sets the type of the view.

    • C#
    • VB.NET
    public ViewType ViewType { get; set; }
    Public Property ViewType As ViewType
    Property Value
    ViewType

    The type of the view.

    Zoom

    Gets or sets the zoom.

    • C#
    • VB.NET
    public int Zoom { get; set; }
    Public Property Zoom As Integer
    Property Value
    System.Int32

    The zoom.

    Remarks

    Zoom can be between 10% and 500%. Default value is 100%.

    Methods

    Clone()

    Clones this ViewOptions instance.

    • C#
    • VB.NET
    public ViewOptions Clone()
    Public Function Clone As ViewOptions
    Returns
    ViewOptions

    Cloned ViewOptions.

    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.