UserNames Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. 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; }Public Property UserNames As String()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.");
}textControl.UserNames = New String() { "Editor" }
If textControl.UserNames IsNot Nothing Then
Console.WriteLine("Text Control: User Names is available.")
End If