TX Text Control .NET Server

SetFileDirectory Method

Method|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 the files of a specific file type are stored.

Syntax

public TextControl SetFileDirectory(string directory, 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.

Return Value

A reference to the Web.MVC.TextControl instance to allow method chaining.

Examples

The following example uses TextControl.SetFileDirectory in a document-processing workflow.

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