CanvasShapes.AddTextEffect Method
Adds a WordArt shape to a drawing canvas.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function AddTextEffect ( _
PresetTextEffect As MsoPresetTextEffect, _
Text As String, _
FontName As String, _
FontSize As Single, _
FontBold As MsoTriState, _
FontItalic As MsoTriState, _
Left As Single, _
Top As Single _
) As Shape
'Usage
Dim instance As CanvasShapes
Dim PresetTextEffect As MsoPresetTextEffect
Dim Text As String
Dim FontName As String
Dim FontSize As Single
Dim FontBold As MsoTriState
Dim FontItalic As MsoTriState
Dim Left As Single
Dim Top As Single
Dim returnValue As Shape
returnValue = instance.AddTextEffect(PresetTextEffect, _
Text, FontName, FontSize, FontBold, _
FontItalic, Left, Top)
Shape AddTextEffect(
MsoPresetTextEffect PresetTextEffect,
string Text,
string FontName,
float FontSize,
MsoTriState FontBold,
MsoTriState FontItalic,
float Left,
float Top
)
Parameters
- PresetTextEffect
Type: MsoPresetTextEffect
A preset text effect. The values of the MsoPresetTextEffect constants correspond to the formats listed in the WordArt Gallery dialog box (numbered from left to right and from top to bottom).
- Text
Type: System.String
The text in the WordArt.
- FontName
Type: System.String
The name of the font used in the WordArt.
- FontSize
Type: System.Single
The size (in points) of the font used in the WordArt.
- FontBold
Type: MsoTriState
A value that indicates whether to bold the WordArt font.
- FontItalic
Type: MsoTriState
A value that indicates whether to italicize the WordArt font.
- Left
Type: System.Single
The position, measured in points, of the left edge of the WordArt shape relative to the left edge of the drawing canvas.
- Top
Type: System.Single
The position, measured in points, of the top edge of the WordArt shape relative to the top edge of the drawing canvas.
Return Value
Type: Microsoft.Office.Interop.Word.Shape