TX Text Control .NET Server

BasePath 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 base path where to search for the TextControl controller.

Syntax

public string BasePath { get; set; }

Examples

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

documentViewerSettings.BasePath = @"App_Data\document.docx";
if (!string.IsNullOrWhiteSpace(documentViewerSettings.BasePath))
{
    Console.WriteLine($"Base Path: {documentViewerSettings.BasePath}");
}