Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 2.59 KB

Project.shapes.addtexteffect.md

File metadata and controls

65 lines (43 loc) · 2.59 KB
title ms.service ms.assetid ms.date ms.localizationpriority
Shapes.AddTextEffect method (Project)
project-server
5510367c-7f8d-3266-642f-61f3d45a18cf
06/08/2017
medium

Shapes.AddTextEffect method (Project)

The AddTextEffect method is not implemented in Project.

Syntax

expression. AddTextEffect (PresetTextEffect, Text, FontName, FontSize, FontBold, FontItalic, Left, Top)

expression A variable that represents a Shapes object.

Parameters

Name Required/Optional Data type Description
PresetTextEffect Required 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 Required String The text in the WordArt.
FontName Required String The name of the font used in the WordArt.
FontSize Required Single The size (in points) of the font used in the WordArt.
FontBold Required MsoTriState Use the msoTrue constant to bold the font; otherwise, use msoFalse.
FontItalic Required MsoTriState Use the msoTrue constant to italicize the font; otherwise, use msoFalse.
Left Required Single The position, in points, of the left edge of the WordArt shape relative to the left edge of the report.
Top Required Single The position, in points, of the top edge of the WordArt shape relative to the top edge of the report.
PresetTextEffect Required MSOPRESETTEXTEFFECT
Text Required String
FontName Required String
FontSize Required FLOAT
FontBold Required MSOTRISTATE
FontItalic Required MSOTRISTATE
Left Required FLOAT
Top Required FLOAT
Name Required/Optional Data type Description

Return value

Shape

Remarks

Note

The Shapes.AddTextEffect method in Excel and Word creates a WordArt item, and returns a Shape object that represents the new WordArt item. But, Project does not support directly creating a WordArt item.

Instead of using the AddTextEffect method to add WordArt, you can use AddTextbox, and then format the selected text box with WordArt styles.

See also

Shapes Object Shape Object MsoPresetTextEffect Enumeration

[!includeSupport and feedback]