CanvasShapes.AddTextbox 方法

定义

在绘图画布上添加一个文本框。

public:
 Microsoft::Office::Interop::Word::Shape ^ AddTextbox(Microsoft::Office::Core::MsoTextOrientation Orientation, float Left, float Top, float Width, float Height);
public Microsoft.Office.Interop.Word.Shape AddTextbox (Microsoft.Office.Core.MsoTextOrientation Orientation, float Left, float Top, float Width, float Height);
abstract member AddTextbox : Microsoft.Office.Core.MsoTextOrientation * single * single * single * single -> Microsoft.Office.Interop.Word.Shape
Public Function AddTextbox (Orientation As MsoTextOrientation, Left As Single, Top As Single, Width As Single, Height As Single) As Shape

参数

Orientation
MsoTextOrientation

文本的方向。 由于选择或安装的语言支持(例如美国英语)不同,有些常量可能无法使用。

Left
Single

文本框左边缘的位置(以磅为单位)。

Top
Single

文本框上边缘的位置(以磅为单位)。

Width
Single

文本框的宽度(以磅为单位)。

Height
Single

文本框的高度(以磅为单位)。

返回

适用于