## ShapeCollection.AddActiveXControl method

Crea un Control Activex.

```csharp
public Shape AddActiveXControl(ControlType type, int topRow, int top, int leftColumn, int left, 
    int width, int height)
```

| Parámetro | Escribe | Descripción |
| --- | --- | --- |
| type | ControlType | El tipo de control. |
| topRow | Int32 | Índice de la fila superior izquierda. |
| top | Int32 | Representa el desplazamiento vertical de Shape desde su fila izquierda, en unidades de píxel. |
| leftColumn | Int32 | Índice de la columna superior izquierda. |
| left | Int32 | Representa el desplazamiento horizontal de Shape desde su columna izquierda, en unidades de píxel. |
| height | Int32 | Representa la altura de Shape, en unidades de píxel. |
| width | Int32 | Representa el ancho de Shape, en unidades de píxel. |

### Ejemplos

```csharp

[C#]
//añadir un control ActiveX
Shape activeXControl = shapes.AddActiveXControl(Aspose.Cells.Drawing.ActiveXControls.ControlType.CheckBox, 1, 0, 1, 0, 100, 50);
```

### Ver también

* class [Shape](../../shape)
* enum [ControlType](../../../aspose.cells.drawing.activexcontrols/controltype)
* class [ShapeCollection](../../shapecollection)
* espacio de nombres [Aspose.Cells.Drawing](../../shapecollection)
* asamblea [Aspose.Cells](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.dll -->
