طريقة add_shape
add_shape(self, type, upper_left_row, top, upper_left_column, left, height, width)
إضافة شكل إلى ورقة العمل.
عائدات
كائن شكل.
def add_shape(self, type, upper_left_row, top, upper_left_column, left, height, width):
...
| معامل | يكتب | وصف |
|---|---|---|
| type | MsoDrawingType | نوع الرسم Mso. |
| upper_left_row | int | مؤشر الصف العلوي الأيسر. |
| top | int | يمثل الإزاحة الرأسية للشكل من صفه الأيسر، بوحدة البكسل. |
| upper_left_column | int | فهرس العمود العلوي الأيسر. |
| left | int | يمثل الإزاحة الأفقية للشكل من العمود الأيسر، بوحدة البكسل. |
| height | int | يمثل ارتفاع الشكل بوحدة البكسل. |
| width | int | يمثل عرض الشكل بوحدة البكسل. |
ملاحظات
لا يمكن أن يكون النوع Chart/Comment/Picture/OleObject/Polygon/DialogBox
مثال
from aspose.cells.drawing import MsoDrawingType
# Add a shape of the specified type
shapeByType = shapes.add_shape(MsoDrawingType.CELLS_DRAWING, 1, 0, 1, 0, 100, 50)
أنظر أيضا
- الوحدة
aspose.cells.drawing - فئة
ShapeCollection