
## \_\_getitem\_\_(index) {#int}

Gets or sets a document variable at the specified index.
``None`` values are not allowed as a right hand side of the assignment and will be replaced by empty string.



```python
def __getitem__(self, index: int):
    ...
```

| Parameter | Type | Description |
| --- | --- | --- |
| index | int |  |

### See Also

* module [aspose.words](../../)
* class [VariableCollection](../)

