CheckBoxCollection
محتويات
[
يخفي
]CheckBoxCollection class
يمثل مجموعة منCheckBox كائنات في ورقة عمل.
public class CheckBoxCollection : CollectionBase<CheckBox>
الخصائص
| اسم | وصف |
|---|---|
| Capacity { get; set; } | |
| Count { get; } | |
| Item { get; } | يحصل على ملفCheckBox عنصر في الفهرس المحدد. |
| Item { get; set; } |
طُرق
| اسم | وصف |
|---|---|
| Add(int, int, int, int) | يضيف خانة اختيار إلى المجموعة. |
| BinarySearch(CheckBox) | |
| BinarySearch(CheckBox, IComparer<CheckBox>) | |
| BinarySearch(int, int, CheckBox, IComparer<CheckBox>) | |
| Clear() | |
| Contains(CheckBox) | |
| CopyTo(CheckBox[]) | |
| CopyTo(CheckBox[], int) | |
| CopyTo(int, CheckBox[], int, int) | |
| Exists(Predicate<CheckBox>) | |
| Find(Predicate<CheckBox>) | |
| FindAll(Predicate<CheckBox>) | |
| FindIndex(Predicate<CheckBox>) | |
| FindIndex(int, Predicate<CheckBox>) | |
| FindIndex(int, int, Predicate<CheckBox>) | |
| FindLast(Predicate<CheckBox>) | |
| FindLastIndex(Predicate<CheckBox>) | |
| FindLastIndex(int, Predicate<CheckBox>) | |
| FindLastIndex(int, int, Predicate<CheckBox>) | |
| GetEnumerator() | |
| IndexOf(CheckBox) | |
| IndexOf(CheckBox, int) | |
| IndexOf(CheckBox, int, int) | |
| LastIndexOf(CheckBox) | |
| LastIndexOf(CheckBox, int) | |
| LastIndexOf(CheckBox, int, int) | |
| RemoveAt(int) |
أمثلة
[C#]
// إنشاء مصنف جديد.
Workbook workbook = new Workbook();
// احصل على ورقة العمل الأولى في المصنف.
Worksheet sheet = workbook.Worksheets[0];
int index = sheet.CheckBoxes.Add(15, 15, 20, 100);
CheckBox checkBox = sheet.CheckBoxes[index];
checkBox.Text = "Check Box 1";
[Visual Basic]
'قم بإنشاء مصنف جديد.
Dim workbook As Workbook = new Workbook()
'احصل على ورقة العمل الأولى في المصنف.
Dim sheet As Worksheet = workbook.Worksheets(0)
Dim index as integer = sheet.CheckBoxes.Add(15, 15, 20, 100)
Dim checkBox as CheckBox = sheet.CheckBoxes[index];
checkBox.Text = "Check Box 1"
أنظر أيضا
- class CollectionBase<T>
- class CheckBox
- مساحة الاسم Aspose.Cells.Drawing
- المجسم Aspose.Cells