Shapes.AddTextbox(MsoTextOrientation, Single, Single, Single, Single) 方法

定义

创建一个文本框。 返回表示 Shape 新文本框的 对象。

public:
 Microsoft::Office::Interop::Excel::Shape ^ AddTextbox(Microsoft::Office::Core::MsoTextOrientation Orientation, float Left, float Top, float Width, float Height);
public Microsoft.Office.Interop.Excel.Shape AddTextbox (Microsoft.Office.Core.MsoTextOrientation Orientation, float Left, float Top, float Width, float Height);
Public Function AddTextbox (Orientation As MsoTextOrientation, Left As Single, Top As Single, Width As Single, Height As Single) As Shape

参数

Orientation
MsoTextOrientation

必需 MsoTextOrientation。 文本框的方向。

Left
Single

必需 单一。 相对于文档左上角的文本框左上角的位置(以磅为单位)。

Top
Single

必需 单一。 相对于文档顶部的文本框左上角的位置(以磅为单位)。

Width
Single

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

Height
Single

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

返回

适用于