TX Text Control .NET for Windows Forms

UserName Property

Property|Introduced in 26.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

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

Further Reading

  • Powerful Extension Methods to Handle Tracked Changes –