
## index_of {#int}

Gets the index of the given position.


### Returns 


The index of the collection in the dictionary -or- -1 if the position is not found.


```python
def index_of(self, position):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| position | int | The position |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentOutOfRangeException |  |





### See Also
* module [`aspose.html.toolkit.markdown.syntax.text`](../../)
* class [`TextLineCollection`](/html/python-net/aspose.html.toolkit.markdown.syntax.text/textlinecollection)
