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 the name of the user who has changed the document. This parameter can be null or an empty string to indicate, that an unknown user has changed the document.
Syntax
public string UserName { get; }Public ReadOnly Property UserName As StringExamples
The following example navigates to the next revision authored by the review team.
foreach (TrackedChange change in textControl.TrackedChanges)
{
if (change.UserName == "Review Team")
{
change.ScrollTo();
break;
}
}For Each change As TrackedChange In textControl.TrackedChanges
If change.UserName = "Review Team" Then
change.ScrollTo()
Exit For
End If
Next