UserNames Property
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. 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 applies bold formatting through the text view generator's selection by using TextViewGenerator.UserNames.
Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;
textViewGenerator.UserNames = new string[] { "Editor" };
if (textViewGenerator.UserNames != null)
{
Console.WriteLine("Text View Generator: User Names is available.");
}Dim formattedSelection As Selection = textViewGenerator.Selection
formattedSelection.Bold = True
textViewGenerator.Selection = formattedSelection
textViewGenerator.UserNames = New String() { "Editor" }
If textViewGenerator.UserNames IsNot Nothing Then
Console.WriteLine("Text View Generator: User Names is available.")
End If