TX Text Control .NET Server

DocumentData Property

Property
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

Description

Gets or sets the document data from where to load the document to view

Syntax

public string DocumentData { get; set; }

Examples

The following example configures DocumentViewerSettings.DocumentData and checks the resulting web document component setting before it is used.

documentViewerSettings.DocumentData = "Quarterly report";
if (!string.IsNullOrWhiteSpace(documentViewerSettings.DocumentData))
{
    Console.WriteLine($"Document Data: {documentViewerSettings.DocumentData}");
}