ComponentRenderMode 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
Specifies the rendering mode of the document viewer component.
Syntax
public enum ComponentRenderModePublic Enum ComponentRenderModeMembers
| Member | Value | Description |
|---|---|---|
| Auto | 0 | Sets the rendering mode automatically. |
| Font | 1 | Renders text with embedded fonts. |
| GlyphOutlines | 2 | Renders text using glyph outlines. |
| Bitmap | 4 | Renders pages as bitmaps. |
Examples
The following example selects Auto and retains that choice for the related document-processing operation.
TXTextControl.Web.MVC.DocumentViewer.ComponentRenderMode value = TXTextControl.Web.MVC.DocumentViewer.ComponentRenderMode.Auto;
Console.WriteLine($"Using Component Render Mode: {value}");Dim value As TXTextControl.Web.MVC.DocumentViewer.ComponentRenderMode = TXTextControl.Web.MVC.DocumentViewer.ComponentRenderMode.Auto
Console.WriteLine($"Using Component Render Mode: {value}")