ToggleButtonActiveXControl صف
ToggleButtonActiveXControl صف
يمثل عنصر التحكم ToggleButton ActiveX.
الميراث: ToggleButtonActiveXControl
يكشف النوع ToggleButtonActiveXControl عن الأعضاء التاليين:
ملكيات
| ملكية | وصف |
|---|---|
| workbook | |
| type | يحصل على نوع عنصر التحكم ActiveX. |
| width | |
| height | |
| mouse_icon | |
| mouse_pointer | |
| fore_ole_color | |
| back_ole_color | |
| is_visible | |
| shadow | |
| linked_cell | |
| list_fill_range | |
| data | |
| is_enabled | |
| is_locked | |
| is_transparent | |
| is_auto_size | |
| ime_mode | |
| font | |
| text_align | |
| caption | يحصل على النص الوصفي الذي يظهر على عنصر التحكم ويقوم بتعيينه. |
| picture_position | يحصل على موقع صورة عنصر التحكم ويحدده بالنسبة لتسميتها التوضيحية. |
| special_effect | يحصل على التأثير الخاص لعنصر التحكم ويقوم بتعيينه. |
| picture | يحصل على بيانات الصورة ويضبطها. |
| accelerator | يحصل على مفتاح التسريع للتحكم ويقوم بتعيينه. |
| value | يشير إلى ما إذا كان التحكم محددًا أم لا. |
| is_triple_state | يشير إلى كيفية عرض عنصر التحكم المحدد للقيم الفارغة. |
مثال
from aspose import pycore
from aspose.cells import Workbook
from aspose.cells.drawing.activexcontrols import ControlType, ToggleButtonActiveXControl
# Initialize a new workbook.
book = Workbook()
# Add a ToggleButtonActiveXControl.
shape = book.worksheets[0].shapes.add_active_x_control(ControlType.TOGGLE_BUTTON, 1, 0, 1, 0, 100, 50)
activeXControl = pycore.cast(ToggleButtonActiveXControl, shape.active_x_control)
# do your business
# Save the excel file.
book.save("exmaple.xlsx")