DocumentFileDirectory Property
- Namespace
TXTextControl.Web. MVC
- Package
TXTextControl.asWeb TXTextControl.from nuget.org, the private NuGet feed or Text Control Offline PackagesWeb. DocumentEditor. dll
Description
Determines the directory path where document files are stored on the web server.
Syntax
public string DocumentFileDirectory { get; set; }Public Property DocumentFileDirectory As StringExamples
In the current ASP.NET Core integration, DocumentFileDirectory is configured through TextControlSettings. The following example sets it while creating the editor configuration.
textControlSettings.DocumentFileDirectory = @"App_Data\document.docx";
if (!string.IsNullOrWhiteSpace(textControlSettings.DocumentFileDirectory))
{
Console.WriteLine($"Document File Directory: {textControlSettings.DocumentFileDirectory}");
}textControlSettings.DocumentFileDirectory = "App_Data\document.docx"
If Not String.IsNullOrWhiteSpace(textControlSettings.DocumentFileDirectory) Then
Console.WriteLine($"Document File Directory: {textControlSettings.DocumentFileDirectory}")
End If