TX Text Control .NET Server

SetFileDirectory Method

Method|Introduced in 21.0
Namespace
TXTextControl.Web
Package
None: the TX Text Control .NET Server setup installs it, for .NET Framework.
Assembly
TXTextControl.Web.dll

Description

Determines the directory path where the files of a specific file type are stored.

Syntax

public void SetFileDirectory(string directory, Web.FileType type);

Parameters

ParameterDescription
directory

Specifies the directory path where the files of a specific file type are stored.

type

Specifies one of the FileType values.

Examples

SetFileDirectory is not exposed by the current ASP.NET Core editor helper. The following example uses SetFileDirectory in the current server-side setup instead.

var result = textControl.SetFileDirectory("Quarterly report", TXTextControl.Web.FileType.Document);
Console.WriteLine(result);