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 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:

Loading...

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 collection stores all changes as TXTextControl.TrackedChange objects 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:

Loading...

Track Changes