TX Text Control .NET Server

UserName Property

Property|Introduced in 26.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as 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; }

Examples

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;
    }
}