UserName Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Gets or sets the name of the user who can edit the region. This parameter can be null or an empty string to indicate, that no user name has been specified and the region can be edited by everyone.
Syntax
public string UserName { get; set; }Public Property UserName As StringExamples
The following example marks selected contract text as editable by the review team by using EditableRegion.UserName.
textControl.Text = "Terms subject to legal review";
textControl.Select(0, textControl.Text.Length);
EditableRegion editableRegion = new("ReviewTeam", 10);
textControl.EditableRegions.Add(editableRegion);
editableRegion.UserName = "Review Team";
if (!string.IsNullOrWhiteSpace(editableRegion.UserName))
{
Console.WriteLine($"User Name: {editableRegion.UserName}");
}textControl.Text = "Terms subject to legal review"
textControl.Select(0, textControl.Text.Length)
Dim editableRegion As New EditableRegion("ReviewTeam", 10)
textControl.EditableRegions.Add(editableRegion)
editableRegion.UserName = "Review Team"
If Not String.IsNullOrWhiteSpace(editableRegion.UserName) Then
Console.WriteLine($"User Name: {editableRegion.UserName}")
End If