ViewMode Enumeration
- Namespace
TXTextControl.Web. MVC. DocumentViewer
- Package
TXTextControl.from nuget.org, the private NuGet feed or Text Control Offline PackagesWeb. DocumentViewer
- Assembly
TXTextControl.Web. MVC. DocumentViewer. dll
- Install
dotnet add package TXTextControl.Web. DocumentViewer
- Also in
TXTextControl.asWeb. DocumentViewer. Classic TXTextControl.Web. MVC. DocumentViewer. dll
Description
Enumeration for the ViewMode property.
Syntax
public enum DocumentViewerSettings.ViewModePublic Enum DocumentViewerSettings.ViewModeMembers
| Member | Value | Description |
|---|---|---|
| Mobile | 0 | Shows the viewer in a style optimized for mobile devices. |
| Desktop | 1 | Shows 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}");Dim value As TXTextControl.Web.MVC.DocumentViewer.DocumentViewerSettings.ViewMode = TXTextControl.Web.MVC.DocumentViewer.DocumentViewerSettings.ViewMode.Mobile
Console.WriteLine($"Using View Mode: {value}")