CanvasShapes.AddTextEffect Method

Definition

Adds a WordArt shape to a drawing canvas.

public:
 Microsoft::Office::Interop::Word::Shape ^ AddTextEffect(Microsoft::Office::Core::MsoPresetTextEffect PresetTextEffect, System::String ^ Text, System::String ^ FontName, float FontSize, Microsoft::Office::Core::MsoTriState FontBold, Microsoft::Office::Core::MsoTriState FontItalic, float Left, float Top);
public Microsoft.Office.Interop.Word.Shape AddTextEffect (Microsoft.Office.Core.MsoPresetTextEffect PresetTextEffect, string Text, string FontName, float FontSize, Microsoft.Office.Core.MsoTriState FontBold, Microsoft.Office.Core.MsoTriState FontItalic, float Left, float Top);
abstract member AddTextEffect : Microsoft.Office.Core.MsoPresetTextEffect * string * string * single * Microsoft.Office.Core.MsoTriState * Microsoft.Office.Core.MsoTriState * single * single -> Microsoft.Office.Interop.Word.Shape
Public 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

Parameters

PresetTextEffect
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
String

The text in the WordArt.

FontName
String

The name of the font used in the WordArt.

FontSize
Single

The size (in points) of the font used in the WordArt.

FontBold
MsoTriState

A value that indicates whether to bold the WordArt font.

FontItalic
MsoTriState

A value that indicates whether to italicize the WordArt font.

Left
Single

The position, measured in points, of the left edge of the WordArt shape relative to the left edge of the drawing canvas.

Top
Single

The position, measured in points, of the top edge of the WordArt shape relative to the top edge of the drawing canvas.

Returns

Applies to