Link Targets and Bookmarks
Link targets and bookmarks mark positions in a document that a hypertext link or your code can jump to. Earlier versions of TX Text Control handled them as marked text fields of the type txFieldLinkTarget. To allow several bookmarks at every text position, this type has been replaced with a set of properties, methods and events of their own, the Target members.
Replace Field Members With Target Members
Code written for the old implementation has to be changed when it programs link targets or bookmarks. The table lists each member of the old implementation and the member that replaces it:
| Old implementation | New implementation |
|---|---|
| FieldInsert method, FieldType property | TargetInsert method |
| FieldTypeData property | TargetName property |
| FieldAtInputPos property | TargetAtInputPos property |
| FieldStart property | TargetStart property |
| FieldPosX property, FieldPosY property | TargetPos property |
| FieldData property | TargetData property |
| FieldDelete method | TargetDelete method |
| FieldGoto method | TargetGoto method |
| FieldNext method | TargetNext method |
| FieldCreated event | TargetCreated event |
| FieldDeleted event | TargetDeleted event |