ControlsFactory Class
- 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
Contains helper methods to create DocumentViewer MVC extensions.
Syntax
public sealed class ControlsFactoryPublic NotInheritable Class ControlsFactoryExamples
The following example prepares the current ASP.NET Core Document Viewer settings that a Razor view passes to the viewer helper to load a server-side document.
TXTextControl.Web.MVC.DocumentViewer.DocumentViewerSettings settings = new()
{
DocumentPath = @"App_Data\document.pdf",
ToolbarDocked = true
};
Console.WriteLine($"Document Viewer source: {settings.DocumentPath}");Dim settings As New TXTextControl.Web.MVC.DocumentViewer.DocumentViewerSettings() With {
.DocumentPath = "App_Data\document.pdf",
.ToolbarDocked = True
}
Console.WriteLine($"Document Viewer source: {settings.DocumentPath}")Members
Constructors
| Constructor | Description |
|---|---|
| ControlsFactory | Initializes a new instance of the ControlsFactory class. |
Methods
| Method | Description |
|---|---|
| DocumentViewer | Creates a DocumentViewer. |