TX Text Control .NET Server

UserNames Property

Property|Introduced in 26.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

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