---
title: "get_prop method"
url: "https://reference.aspose.com/diagram/python-net/aspose.diagram/propcollection/get_prop/"
product: "Aspose.Diagram for Python via .NET API References"
---


## get_prop(id) {#int}

Gets the element at the specified ID.

### Returns 





```python
def get_prop(self, id):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| id | int |  |


## get_prop(name) {#str}

Gets the element at the specified name.

### Returns 





```python
def get_prop(self, name):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| name | str |  |



### See Also
* module [aspose.diagram](../../)
* class [PropCollection](/diagram/python-net/aspose.diagram/propcollection)
