# InputItemIndex Property

> Returns the index of the XML element with the current input position in an XMLElements collection as a Long, or zero if the position is in no element.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > XMLElements > InputItemIndex Property
- **142 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/inputitemindex-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/inputitemindex-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/inputitemindex-property/llms-full.txt

---

Returns the index of the element with the current input position in the collection. The property value is zero if the current input position is in no element of this collection.

### Syntax

```vbscript
XMLElements.InputItemIndex
```

### Data Types

Long.

### Limitations

Read only, run time only.

### See Also

- [Working with XML Files](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/llms-full.txt)
- [XMLElements.InputItem Method](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/inputitem-method/llms-full.txt)
- [XMLElements.Item Method](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/item-method/llms-full.txt)
- [Programming Category: XML Programming](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/xml/llms-full.txt)

---

## Nearby

- **Previous:** [InputItem Method](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/inputitem-method/llms-full.txt)
- **Next:** [Item Method](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/item-method/llms-full.txt)
