## ShapeCollection.AddActiveXControl method

ينشئ عنصر تحكم Activex .

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

| معامل | يكتب | وصف |
| --- | --- | --- |
| type | ControlType | نوع عنصر التحكم. |
| topRow | Int32 | فهرس الصف العلوي الأيسر. |
| top | Int32 | يمثل الإزاحة الرأسية للشكل من صفه الأيسر ، بوحدة البكسل. |
| leftColumn | Int32 | فهرس العمود الأيسر العلوي. |
| left | Int32 | يمثل الإزاحة الأفقية للشكل من عمودها الأيسر ، بوحدة البكسل. |
| height | Int32 | يمثل ارتفاع الشكل بوحدة البكسل. |
| width | Int32 | يمثل عرض الشكل بوحدة البكسل. |

### أمثلة

```csharp

[C#]
// إضافة عنصر تحكم ActiveX
Shape activeXControl = shapes.AddActiveXControl(Aspose.Cells.Drawing.ActiveXControls.ControlType.CheckBox, 1, 0, 1, 0, 100, 50);
```

### أنظر أيضا

* class [Shape](../../shape)
* enum [ControlType](../../../aspose.cells.drawing.activexcontrols/controltype)
* class [ShapeCollection](../../shapecollection)
* مساحة الاسم [Aspose.Cells.Drawing](../../shapecollection)
* المجسم [Aspose.Cells](../../../)

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