CanvasShapes.AddTextEffect 方法

定义

将艺术字形状添加到绘图画布上。

public:
 Microsoft::Office::Interop::Word::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.Word.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);
abstract member AddTextEffect : Microsoft.Office.Core.MsoPresetTextEffect * string * string * single * Microsoft.Office.Core.MsoTriState * Microsoft.Office.Core.MsoTriState * single * single -> Microsoft.Office.Interop.Word.Shape
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

一个 值,该值指示是否加粗艺术字字体。

FontItalic
MsoTriState

一个 值,该值指示是否对艺术字字体进行斜体化。

Left
Single

艺术字形状左边缘相对于绘图画布左边缘的位置(以磅为单位)。

Top
Single

艺术字形状上边缘相对于绘图画布上边缘的位置(以磅为单位)。

返回

适用于