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 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기