[]
public Shape AddShape()
| Type | Description |
|---|---|
| Shape | The added Shape. |
public Shape AddShape(float width, float height, string text = null)
| Type | Name | Description |
|---|---|---|
| float | width | The shape width, in points. |
| float | height | The shape height, in points. |
| string | text | If not null, a TextFrame with this text is added to the shape. |
| Type | Description |
|---|---|
| Shape | The added Shape. |
Adds a new Shape with a specified size, text and geometry to the end of the canvas shape.
public Shape AddShape(float width, float height, string text, GeometryType type)
| Type | Name | Description |
|---|---|---|
| float | width | The shape width, in points. |
| float | height | The shape height, in points. |
| string | text | If not null, a TextFrame with this text is added to the shape. Note that some geometries do not allow text frames (see TextFrameSupported(GeometryType)).
If this parameter is not null and |
| GeometryType | type | The geometry type of the shape. |
| Type | Description |
|---|---|
| Shape | The added Shape. |
Adds a new Shape with a specified size and text to the end of the canvas shape.
public Shape AddShape(float width, float height, GeometryType type)
| Type | Name | Description |
|---|---|---|
| float | width | The shape width, in points. |
| float | height | The shape height, in points. |
| GeometryType | type | The geometry type of the shape. |
| Type | Description |
|---|---|
| Shape | The added Shape. |