Shapes.AddTextEffect Method

Definition

Creates a WordArt object. Returns a Shape object that represents the new WordArt object.

public:
 Microsoft::Office::Interop::Excel::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.Excel.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);
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

Required MsoPresetTextEffect. The preset text effect.

Text
String

Required String. The text in the WordArt.

FontName
String

Required String. The name of the font used in the WordArt.

FontSize
Single

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

FontBold
MsoTriState

Required MsoTriState. The font used in the WordArt to bold.

FontItalic
MsoTriState

Required MsoTriState. The font used in the WordArt to italic.

Left
Single

Required Single. The position (in points) of the upper-left corner of the WordArt's bounding box relative to the upper-left corner of the document.

Top
Single

Required Single. The position (in points) of the upper-left corner of the WordArt's bounding box relative to the top of the document.

Returns

Remarks

When you add WordArt to a document, the height and width of the WordArt are automatically set based on the size and amount of text you specify.

Applies to