TX Text Control .NET Server

ViewMode Enumeration

Enumeration
Namespace
TXTextControl.Web.MVC.DocumentViewer
Package
TXTextControl.Web.DocumentViewer from nuget.org, the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Web.MVC.DocumentViewer.dll
Install
dotnet add package TXTextControl.Web.DocumentViewer
Also in
TXTextControl.Web.DocumentViewer.Classic as TXTextControl.Web.MVC.DocumentViewer.dll

Description

Enumeration for the ViewMode property.

Syntax

public enum DocumentViewerSettings.ViewMode

Members

MemberValueDescription
Mobile0Shows the viewer in a style optimized for mobile devices.
Desktop1Shows the viewer in a style optimized for desktop devices.

Examples

The following example selects Mobile and retains that choice for the related document-processing operation.

TXTextControl.Web.MVC.DocumentViewer.DocumentViewerSettings.ViewMode value = TXTextControl.Web.MVC.DocumentViewer.DocumentViewerSettings.ViewMode.Mobile;
Console.WriteLine($"Using View Mode: {value}");