Creates an
IShape object that represents the new text effect object.
'Declaration
Function AddTextEffect( _
ByVal As PresetTextEffect, _
ByVal As String, _
ByVal As String, _
ByVal As Double, _
Optional ByVal As Boolean, _
Optional ByVal As Boolean, _
Optional ByVal As Double, _
Optional ByVal As Double _
) As IShape
'Usage
Dim instance As IShapes
Dim textEffect As PresetTextEffect
Dim text As String
Dim fontName As String
Dim fontSize As Double
Dim bold As Boolean
Dim italic As Boolean
Dim x As Double
Dim y As Double
Dim value As IShape
value = instance.AddTextEffect(textEffect, text, fontName, fontSize, bold, italic, x, y)
Parameters
- textEffect
- The preset text effect.
- text
- The text in the shape.
- fontName
- The name of the font used in the shape.
- fontSize
- The size (in points) of the font used in the shape.
- bold
- The font used in the shape to bold.
- italic
- The font used in the shape to italic.
- 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.
- y
- The position (in pixels) of the upper-left corner of the shape's bounding box relative to the top of the document.
Return Value
The created
IShape object.