# ObjectItem Property

> Returns a reference to the current OLE object selected through ObjectCurrent, for example to set FontBold on a Text Control inserted with ObjectInsertAsChar.

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

---

Returns a reference to an OLE object. The [ObjectCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectcurrent-property/llms-full.txt) property determines the object.

### Syntax

```vbscript
TXTextControl.ObjectItem
```

### Data Types

Object.

### Examples

The following Basic example inserts a Text Control into another Text Control at the current input position and sets the font bold attribute for the inserted Text Control. The [ObjectInsertAsChar](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectinsertaschar-method/llms-full.txt) method implicitly sets the [ObjectCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectcurrent-property/llms-full.txt) property to the just inserted object.

```vbscript
TXTextControl1.ObjectInsertAsChar 2, "TIS.TX.TextControl.34", -1, 100, 100, 0, 0
TXTextControl1.ObjectItem.FontBold = True
```

### Limitations

Read only, run time only.

### See Also

- [Programming Category: Images, Text Frames, Signature Fields and OLE Objects](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/images-objects/llms-full.txt)

---

## Nearby

- **Previous:** [ObjectInsertionMode Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectinsertionmode-property/llms-full.txt)
- **Next:** [ObjectMoved Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectmoved-event/llms-full.txt)
