Shapes.AddTextEffect 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建艺术字对象。 返回一个 Shape 对象,该对象代表新的艺术字对象。
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
参数
- PresetTextEffect
- MsoPresetTextEffect
必需 MsoPresetTextEffect。 预置文字效果。
- Text
- String
必需的 字符串 。 艺术字中的文字。
- FontName
- String
必需的 字符串 。 艺术字中所用字体的名称。
- FontSize
- Single
必需 单一。 艺术字中所用字体的大小(以磅为单位)。
- FontBold
- MsoTriState
必需 MsoTriState。 在艺术字中要加粗的字体。
- FontItalic
- MsoTriState
必需 MsoTriState。 在艺术字中要倾斜的字体。
- Left
- Single
必需 单一。 艺术字边框左上角相对于文档左上角的位置(以磅为单位)。
- Top
- Single
必需 单一。 艺术字边框左上角相对于文档顶部的位置(以磅为单位)。
返回
注解
向文档添加艺术字对象时,该对象的高度和宽度将自动根据所指定的文字的大小和数量来设置。