Shapes.AddTextEffect Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應