# Javascript: TXTextControl.images Property

> Gets a collection of all images contained in the text part with the input focus. This can be the main text, a text frame or a header or footer.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TXTextControl.images Property
- **236 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/images-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/images-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/images-property/llms-full.txt

---

### Description

Gets a collection of all images contained in the text part with the input focus. This can be the main text, a text frame or a header or footer.

### Syntax

```javascript
<ImageCollection> TXTextControl.images
```

### Examples

The following example demonstrates `TXTextControl.images` in a practical document-editing workflow. It gets a collection of all images contained in the text part with the input focus. This can be the main text, a text frame or a header or footer.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

tXTextControl.images.getCount(function(count) {
    console.log("images count:", count);
}, onTxError);
```

### Limitations

Read Only.

---

## Nearby

- **Previous:** [Javascript: TXTextControl.ImageInsertionMode Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/imageinsertionmode-enumeration/llms-full.txt)
- **Next:** [TXTextControl.IncludeTextField Object](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-includetextfield/llms-full.txt)
