[]
Creates an IShape object that represents the new text effect object.
IShape AddTextEffect(PresetTextEffect textEffect, string text, string fontName, double fontSize, bool bold = false, bool italic = false, double x = NaN, double y = NaN)
Function AddTextEffect(textEffect As PresetTextEffect, text As String, fontName As String, fontSize As Double, Optional bold As Boolean = False, Optional italic As Boolean = False, Optional x As Double = NaN, Optional y As Double = NaN) As IShape
| Type | Name | Description |
|---|---|---|
| PresetTextEffect | textEffect | The preset text effect. |
| string | text | The text in the shape. |
| string | fontName | The name of the font used in the shape. |
| double | fontSize | The size (in points) of the font used in the shape. |
| bool | bold | The font used in the shape to bold. |
| bool | italic | The font used in the shape to italic. |
| double | x | The position (in pixels) of the upper-left corner of the shape's bounding box relative to the upper-left corner of the document. |
| double | y | The position (in pixels) of the upper-left corner of the shape's bounding box relative to the top of the document. |
| Type | Description |
|---|---|
| IShape | The created IShape object. |