TXTextControl.TargetPos Property

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.

Syntax

TXTextControl.TargetPos(TargetId)
Parameter Description
TargetId

Specifies the target's unique identifier. This must be the value returned from the TargetInsert method.

Data Types

TargetId: Long
Property value: Array of 2 Long

Limitations

Read only, run time only.

See Also