## ShapeCollection.AddOleObject method

```csharp
public OleObject AddOleObject(int upperLeftRow, int top, int upperLeftColumn, int left, int height, 
    int width, byte[] imageData)
```

| معامل | يكتب | وصف |
| --- | --- | --- |
| upperLeftRow | Int32 |  |
| top | Int32 |  |
| upperLeftColumn | Int32 |  |
| left | Int32 |  |
| height | Int32 |  |
| width | Int32 |  |
| imageData | Byte[] |  |

### أمثلة

```csharp

[C#]
using (FileStream fs = new FileStream("image.jpg", FileMode.Open))
{
    int len = (int)fs.Length;
    byte[] imageData = new byte[len];
    fs.Read(imageData, 0, len);
    OleObject oleObject = shapes.AddOleObject(4, 0, 5, 0, 300, 500, imageData);
}
```

### أنظر أيضا

* class [OleObject](../../oleobject)
* class [ShapeCollection](../../shapecollection)
* مساحة الاسم [Aspose.Cells.Drawing](../../shapecollection)
* المجسم [Aspose.Cells](../../../)

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