TX Text Control ActiveX

Hypertext Links

Topic

Hypertext links in TXTextControl are marked text fields that point to a link target, a named position in the document. The members below insert, find, delete and jump to link targets, set the field type of a link and report a clicked link.

Properties

MemberDescription
TXTextControl.FieldTypeThis property sets or returns the type of a marked text field.
TXTextControl.FieldTypeDataThis property sets or returns the data that belongs to a marked text field of a special type.
TXTextControl.TargetAtInputPosReturns the target identifier of the target at the current text input position.
TXTextControl.TargetDataThis property relates numeric or string data to a link target.
TXTextControl.TargetNameReturns or sets the name of a link target.
TXTextControl.TargetPosReturns the position of a target.
TXTextControl.TargetStartReturns the target's character index, one-based, in the document.

Methods

MemberDescription
TXTextControl.TargetDeleteThis method can be used to delete a link target or bookmark from the document.
TXTextControl.TargetGotoSets the current text input position to the position of the specified link target and scrolls the text so that this position is at the top of the control's visible text.
TXTextControl.TargetInsertThis method inserts a new link target or bookmark in the text at the current text input position.
TXTextControl.TargetNextThis method returns the identifier of the link target that follows the specified target in the TXTextControl's current text.

Events

MemberDescription
TXTextControl.FieldLinkClickedOccurs when a marked text field has been clicked on that represents the source of a hypertext link.
TXTextControl.TargetCreatedOccurs when a link target or bookmark has been created.
TXTextControl.TargetDeletedOccurs when a link target or bookmark has been deleted.