AddActiveXControl
ShapeCollection.AddActiveXControl method
创建一个 Activex 控件。
public Shape AddActiveXControl(ControlType type, int topRow, int top, int leftColumn, int left,
int width, int height)
| 范围 | 类型 | 描述 |
|---|---|---|
| type | ControlType | 控件的类型。 |
| topRow | Int32 | 左上行索引。 |
| top | Int32 | 表示 Shape 与其左行的垂直偏移量,以像素为单位。 |
| leftColumn | Int32 | 左上列索引。 |
| left | Int32 | 表示 Shape 与其左列的水平偏移量,以像素为单位。 |
| height | Int32 | 表示Shape的高度,以像素为单位。 |
| width | Int32 | 表示Shape的宽度,以像素为单位。 |
例子
[C#]
//添加一个ActiveX控件
Shape activeXControl = shapes.AddActiveXControl(Aspose.Cells.Drawing.ActiveXControls.ControlType.CheckBox, 1, 0, 1, 0, 100, 50);
也可以看看
- class Shape
- enum ControlType
- class ShapeCollection
- 命名空间 Aspose.Cells.Drawing
- 部件 Aspose.Cells