Products Technologies Demo Docs Blog Support Company

User Management Features in TX Text Control

TX Text Control includes a list of user names which is used for document protection and to track changes for multiple authors.

User Management Features in TX Text Control

TX Text Control includes a list of user names which is used for document protection and to track changes for multiple authors. This article explains how to use the user names for different scenarios.

TX Text Control provides the TXTextControl.TextControl.UserNames property that gets or sets a list of names specifying users who have access to editable regions or define the currently active user for track changes.

Document Protection

Using TX Text Control, documents can be protected by restricting the formatting and editing of content. When protecting a document, it is possible to define whether the document is completely locked or formatting can be applied.

Document Permissions

Editable regions are exceptions within protected documents that can be defined through a start position and a length or through a selection. These regions can be nested and overlap. Each editable region is associated with a TXTextControl.EditableRegion.UserName property or more user names which inserts more regions for the same content. Only these users can edit the regions, when the document has been set to read only.

After loading a protected document, the TXTextControl.TextControl.UserNames property is used to define a list of names specifying users who have access to editable regions. In this sample, we grant access for the user developer@textcontrol.com:

textControl1.UserNames = new string[] { "developer@textcontrol.com" };
textControl1.Load("encrypted-document.tx", StreamType.InternalUnicodeFormat);

Track Changes

TX Text Control X16 enables document collaboration features in business applications. Track Changes, also known as redline, or redlining, is a way to keep track of the changes different authors make to a document.

These changes can be accepted or rejected by the authors to collaborate on the same document. TX Text Control remembers these changes, and stores them MS Word compatible in the document.

The TXTextControl.TrackedChangeCollection class stores all changes as TXTextControl.TrackedChange class which keeps the user name, time stamp and the change itself. The user name can be only one specific user. It is the first user name in the list of user names passed in the TXTextControl.TextControl.UserNames property.

When initializing a TX Text Control with these user names, the first user is used as the actual user which is also used in the tracked change object:

private void Form1_Load(object sender, EventArgs e)
{
    textControl1.UserNames = new string[] { "developer@textcontrol.com", "qa@textcontrol.com" };
}

Track Changes

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

Also See

This post references the following in the documentation:

  • TXTextControl.EditableRegion.UserName Property
  • TXTextControl.TextControl.UserNames Property
  • TXTextControl.TrackedChange Class
  • TXTextControl.TrackedChangeCollection Class

Related Posts

ASP.NETWindows FormsWPF

TX Text Control 33.0 SP3 is Now Available: What's New in the Latest Version

TX Text Control 33.0 Service Pack 3 is now available, offering important updates and bug fixes for all platforms. If you use TX Text Control in your document processing applications, this service…


ASP.NETWindows FormsWPF

TX Text Control 33.0 SP2 is Now Available: What's New in the Latest Version

TX Text Control 33.0 Service Pack 2 is now available, offering important updates and bug fixes for all platforms. If you use TX Text Control in your document processing applications, this service…


ActiveXASP.NETWindows Forms

Service Pack Releases: What's New in TX Text Control 33.0 SP1 and 32.0 SP5

TX Text Control 33.0 Service Pack 1 and TX Text Control 32.0 Service Pack 5 have been released, providing important updates and bug fixes across platforms. These service packs improve the…


ASP.NETWindows FormsWPF

The Wait is Over: TX Text Control for Linux is Officially Here

We are very excited to announce the release of TX Text Control 33.0 which includes the long awaited Linux version of TX Text Control. This version allows you to integrate TX Text Control into your…


ASP.NETWindows FormsWPF

Full .NET 9 Support in Text Control .NET Components for ASP.NET Core,…

.NET 9 will be launched tomorrow, November 12, at the .NET Conf 2024 with updates to cloud capabilities, security, and performance. TX Text Control .NET components are fully compatible with .NET 9…