Returns the position of a target. The dimensions are given in twips with an origin at the upper left corner of the Text Control's complete text. The relationship between the upper left corner of the complete text and the upper left corner of the control can be obtained with the ScrollPosX and the ScrollPosY properties. The property returns an array of 2 long values specifying the left and top coordinate of the target's position.
Introduced: 28.0.
TXTextControl.TargetPos(TargetId)
Parameter | Description | |
TargetId |
Specifies the target's unique identifier. This must be the value returned from the TargetInsert method. |
TargetId: | Long |
Property value: | Array of 2 Long |
Read only, run time only.
<< TXTextControl.TargetNext Method | >> TXTextControl.TargetStart Property