BasePath Property
- Namespace
TXTextControl.Web. MVC. DocumentViewer
- Package
TXTextControl.asWeb. DocumentViewer TXTextControl.from nuget.org, the private NuGet feed or Text Control Offline PackagesWeb. MVC. DocumentViewer. dll
- Also in
TXTextControl.asWeb. DocumentViewer. Classic 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; }Public Property BasePath As StringExamples
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}");
}documentViewerSettings.BasePath = "App_Data\document.docx"
If Not String.IsNullOrWhiteSpace(documentViewerSettings.BasePath) Then
Console.WriteLine($"Base Path: {documentViewerSettings.BasePath}")
End If