TX Text Control .NET Server

DocumentViewer Constructor

Constructor
Namespace
TXTextControl.Web.MVC.DocumentViewer
Package
TXTextControl.Web.DocumentViewer as TXTextControl.Web.MVC.DocumentViewer.dll from nuget.org, the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.Web.DocumentViewer.Classic as TXTextControl.Web.MVC.DocumentViewer.dll

Syntax

DocumentViewer()

Constructor.

public DocumentViewer();

DocumentViewer(Action<DocumentViewerSettings>)

Constructor.

public DocumentViewer(Action<DocumentViewerSettings> method);
ParameterDescription
method

System.Action<TXTextControl.Web.MVC.DocumentViewer.DocumentViewerSettings>

DocumentViewer(DocumentViewerSettings)

Constructor.

public DocumentViewer(DocumentViewerSettings settings);
ParameterDescription
settings

TXTextControl.Web.MVC.DocumentViewer.DocumentViewerSettings

Examples

The following example creates a Document Viewer instance and verifies that it is ready for the surrounding document workflow.

TXTextControl.Web.MVC.DocumentViewer.DocumentViewer documentViewer = new();
Console.WriteLine("Document Viewer is ready.");