TX Text Control .NET Server

ZoomTo Property

Property|Introduced in 15.0
Namespace
TXTextControl.DocumentServer.Web
Package
TXTextControl.TextControl.ASP.SDK as TXDocumentServer.Web.DocumentViewer.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the zoom behavior of the DocumentServer.Web.DocumentViewer.

Syntax

public DocumentViewer.ZoomLevel ZoomTo { get; set; }

Members

ValueDescription
ControlWidthThe current page is zoomed to a size, which makes the horizontal scroll bar unnecessary.
FixedSizeThe document is zoomed to the value specified by the DocumentServer.Web.DocumentViewer.ZoomFactor property.
WholePageThe current page is zoomed to a size that allows to view it as a whole.

Examples

DocumentServer.Web.DocumentViewer.ZoomTo belongs to the legacy Web Forms viewer. In the current ASP.NET Core viewer, configure the server-rendered component through DocumentViewerSettings.View; interactive page state and styling are handled by the viewer client.

documentViewerSettings.View = TXTextControl.Web.MVC.DocumentViewer.DocumentViewerSettings.ViewMode.Mobile;
if (documentViewerSettings.View != null)
{
    Console.WriteLine("View is available for Document Viewer Settings.");
}

Remarks

The property's default value is ControlWidth.