SetFileDirectory Method
- 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);Public Sub SetFileDirectory(ByVal directory As String, ByVal type As Web.FileType)Parameters
| Parameter | Description |
|---|---|
| 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);Dim result = textControl.SetFileDirectory("Quarterly report", TXTextControl.Web.FileType.Document)
Console.WriteLine(result)