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)
Usage
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
Dim canvasShapes1 As CanvasShapes
returnValue = canvasShapes1.AddTextEffect(PresetTextEffect, Text, FontName, FontSize, FontBold, FontItalic, Left, Top)
Syntax
Function AddTextEffect( _
<InAttribute()> ByVal PresetTextEffect As MsoPresetTextEffect, _
<InAttribute()> ByVal Text As String, _
<InAttribute()> ByVal FontName As String, _
<InAttribute()> ByVal FontSize As Single, _
<InAttribute()> ByVal FontBold As MsoTriState, _
<InAttribute()> ByVal FontItalic As MsoTriState, _
<InAttribute()> ByVal Left As Single, _
<InAttribute()> ByVal Top As Single _
) As Shape
Shape AddTextEffect(
[In] MsoPresetTextEffect PresetTextEffect,
[In] string Text,
[In] string FontName,
[In] float FontSize,
[In] MsoTriState FontBold,
[In] MsoTriState FontItalic,
[In] float Left,
[In] float Top
);
public: Shape^ AddTextEffect(
MsoPresetTextEffect^ PresetTextEffect,
String^ Text,
String^ FontName,
Single FontSize,
MsoTriState^ FontBold,
MsoTriState^ FontItalic,
Single Left,
Single Top
);
public Shape AddTextEffect(
/*in*/MsoPresetTextEffect PresetTextEffect,
/*in*/System.String Text,
/*in*/System.String FontName,
/*in*/float FontSize,
/*in*/MsoTriState FontBold,
/*in*/MsoTriState FontItalic,
/*in*/float Left,
/*in*/float Top
);
function AddTextEffect(
PresetTextEffect : MsoPresetTextEffect,
Text : String,
FontName : String,
FontSize : float,
FontBold : MsoTriState,
FontItalic : MsoTriState,
Left : float,
Top : float
) : Shape;
Parameters
- PresetTextEffect
A preset text effect. The values of the Microsoft.Office.Core.MsoPresetTextEffect constants correspond to the formats listed in the WordArt Gallery dialog box (numbered from left to right and from top to bottom).
- Text
The text in the WordArt.
- FontName
The name of the font used in the WordArt.
- FontSize
The size (in points) of the font used in the WordArt.
- FontBold
A value that indicates whether to bold the WordArt font.
- FontItalic
A value that indicates whether to italicize the WordArt font.
- Left
The position, measured in points, of the left edge of the WordArt shape relative to the left edge of the drawing canvas.
- Top
The position, measured in points, of the top edge of the WordArt shape relative to the top edge of the drawing canvas.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
CanvasShapes Interface
Microsoft.Office.Interop.Word Namespace