AddActiveXControl
ShapeCollection.AddActiveXControl method
Skapar en Activex-kontroll.
public Shape AddActiveXControl(ControlType type, int topRow, int top, int leftColumn, int left,
int width, int height)
| Parameter | Typ | Beskrivning |
|---|---|---|
| type | ControlType | Typen av kontroll. |
| topRow | Int32 | Övre vänstra radens index. |
| top | Int32 | Representerar den vertikala förskjutningen av Shape från dess vänstra rad, i pixelenhet. |
| leftColumn | Int32 | Övre vänstra kolumnindex. |
| left | Int32 | Representerar den horisontella förskjutningen av Shape från dess vänstra kolumn, i pixelenhet. |
| height | Int32 | Representerar höjden på Shape, i pixelenhet. |
| width | Int32 | Representerar bredden på Shape, i pixelenhet. |
Exempel
[C#]
//lägg till en ActiveX-kontroll
Shape activeXControl = shapes.AddActiveXControl(Aspose.Cells.Drawing.ActiveXControls.ControlType.CheckBox, 1, 0, 1, 0, 100, 50);
Se även
- class Shape
- enum ControlType
- class ShapeCollection
- namnutrymme Aspose.Cells.Drawing
- hopsättning Aspose.Cells