TX Text Control .NET Server

UserNames Property

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

Description

Gets or sets a list of names specifying users who have access to editable regions. When a document is set to read-only all editable regions that are related to these users can be edited.

Syntax

public string[] UserNames { get; set; }

Examples

In the current ASP.NET Core integration, UserNames is configured through TextControlSettings. The following example sets it while creating the editor configuration.

textControlSettings.UserNames = new string[] { "Quarterly report" };
if (textControlSettings.UserNames != null)
{
    Console.WriteLine("User Names is available for Text Control Settings.");
}