TX Text Control .NET for WPF

UserNames Property

Property|Introduced in 25.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from 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

The following example uses TextControl.UserNames to configure user names as part of the text control workflow. The configured value is checked before the workflow continues.

textControl.UserNames = new string[] { "Editor" };
if (textControl.UserNames != null)
{
    Console.WriteLine("Text Control: User Names is available.");
}