
## add_comment(shape_id, comment) {#int-str}

Adds comment to a shape with shape's id.



```python
def add_comment(self, shape_id, comment):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| shape_id | int |  |
| comment | str | Comment's string. |


## add_comment(shape, comment) {#Shape-str}

Adds comment to a shape.



```python
def add_comment(self, shape, comment):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| shape | [Shape](/diagram/python-net/aspose.diagram/shape) | Specifies the shape which is adding comment  . |
| comment | str | Comment's string. |


## add_comment(pin_x, pin_y, comment) {#float-float-str}

Adds comment with defined PinX and PinY.



```python
def add_comment(self, pin_x, pin_y, comment):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| pin_x | float | Specifies the x-coordinate of the comment's pin (center of rotation) in relation to the page. |
| pin_y | float | Specifies the y-coordinate of the comment's pin (center of rotation) in relation to the page. |
| comment | str | Comment's string. |



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