TX Text Control ActiveX

Restricted Document Access

Topic

A TXTextControl document can be opened so that users may only change parts of it, or only format it in certain ways. The members below set the edit mode and the document permissions, define editable regions for users and report when the input position enters or leaves such a region.

Properties

MemberDescription
TXTextControl.CanCharacterFormatInforms whether character formatting attributes can be changed for the currently selected text.
TXTextControl.CanDocumentFormatInforms whether page and section formatting attributes can be changed.
TXTextControl.CanEditInforms whether the document's text can be changed at the current text input position.
TXTextControl.CanParagraphFormatInforms whether paragraph formatting attributes can be changed for the currently selected text.
TXTextControl.CanPrintInforms whether the document can be printed.
TXTextControl.CanStyleFormatInforms whether the document can be formatted with formatting styles.
TXTextControl.CanTableFormatInforms whether table formatting attributes and/or the table layout can be changed for the currently selected text.
TXTextControl.DocumentPermissionsSpecifies settings determining how the document can be edited and formatted, when the EditMode is changed from Edit to Protected or Password Protected.
TXTextControl.EditableRegionHighlightModeThis property returns or sets a value determining how editable regions are highlighted in the document.
TXTextControl.EditableRegionUserIdReturns or sets a user-defined identifier of an editable region.
TXTextControl.EditableRegionUserNameReturns or sets the name of the user who can edit the region.
TXTextControl.EditModeSpecifies whether the document is protected or can be freely edited and formatted.
TXTextControl.UserNamesGets or sets a list of names specifying users who have access to a document.

Methods

MemberDescription
TXTextControl.EditableRegionDeleteThis method can be used to delete an editable region from the document.
TXTextControl.EditableRegionGotoSets the current input position to the beginning of the specified editable region and scrolls the text so that this position is at the top of the control's visible text.
TXTextControl.EditableRegionInsertThis method inserts a new editable region in the text.

Events

MemberDescription
TXTextControl.EditableRegionEnteredOccurs when the current input position has been moved to a position that belongs to an editable region.
TXTextControl.EditableRegionLeftOccurs when the current input position has left an editable region.