TX Text Control .NET Server

DocumentFileDirectory Property

Property|Introduced in 23.0
Namespace
TXTextControl.Web.MVC
Package
TXTextControl.Web as TXTextControl.Web.DocumentEditor.dll from nuget.org, the private NuGet feed or Text Control Offline Packages

Description

Determines the directory path where document files are stored on the web server.

Syntax

public string DocumentFileDirectory { get; set; }

Examples

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}");
}