Shapes.AddTextbox(MsoTextOrientation, Single, Single, Single, Single) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个文本框。 返回表示 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
必需 单一。 文本框的高度(以磅为单位)。