# TargetPos Property

> Returns the left and top position in twips of a link target as an array of two Long values, relative to the upper left corner of the complete text.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > TargetPos Property
- **294 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetpos-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetpos-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetpos-property/llms-full.txt

---

Returns the position of a target. The dimensions are given in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-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](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/scrollposx-property/llms-full.txt) and the [ScrollPosY](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/scrollposy-property/llms-full.txt) 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

```vbscript
TXTextControl.TargetPos(TargetId)
```

### Parameters

| Parameter | Description |
|---|---|
| TargetId | Specifies the target's unique identifier. This must be the value returned from the [TargetInsert](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetinsert-method/llms-full.txt) method. |

### Data Types

| Name | Data type |
|---|---|
| TargetId | Long |
| Property value | Array of 2 Long |

### Limitations

Read only, run time only.

### See Also

- [Marked Text Fields](https://docs.textcontrol.com/tx-text-control-activex/document-editor/fields/llms-full.txt)
- [Programming Category: Hypertext Links](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/hypertext-links/llms-full.txt)

---

## Nearby

- **Previous:** [TargetNext Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetnext-method/llms-full.txt)
- **Next:** [TargetStart Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetstart-property/llms-full.txt)
