ZoomTo Property
- Namespace
TXTextControl.DocumentServer. Web
- Package
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline PackagesWeb. DocumentViewer. dll
Description
Gets or sets the zoom behavior of the DocumentServer.Web.DocumentViewer.
Syntax
public DocumentViewer.ZoomLevel ZoomTo { get; set; }Public Property ZoomTo As DocumentViewer.ZoomLevelMembers
| Value | Description |
|---|---|
| ControlWidth | The current page is zoomed to a size, which makes the horizontal scroll bar unnecessary. |
| FixedSize | The document is zoomed to the value specified by the DocumentServer.Web.DocumentViewer.ZoomFactor property. |
| WholePage | The 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.");
}documentViewerSettings.View = TXTextControl.Web.MVC.DocumentViewer.DocumentViewerSettings.ViewMode.Mobile
If documentViewerSettings.View IsNot Nothing Then
Console.WriteLine("View is available for Document Viewer Settings.")
End IfRemarks
The property's default value is ControlWidth.