TextBoxCollection
محتويات
[
يخفي
]TextBoxCollection class
لتغليف مجموعة منTextBox الكائنات .
public class TextBoxCollection : CollectionBase<TextBox>
الخصائص
| اسم | وصف |
|---|---|
| Capacity { get; set; } | |
| Count { get; } | |
| Item { get; } | يحصل على ملفTextBox عنصر في الفهرس المحدد. (2 indexers) |
| Item { get; set; } |
طُرق
| اسم | وصف |
|---|---|
| Add(int, int, int, int) | يضيف مربع نص إلى المجموعة. |
| BinarySearch(TextBox) | |
| BinarySearch(TextBox, IComparer<TextBox>) | |
| BinarySearch(int, int, TextBox, IComparer<TextBox>) | |
| Clear() | مسح كافة مربعات النص. (2 methods) |
| Contains(TextBox) | |
| CopyTo(TextBox[]) | |
| CopyTo(TextBox[], int) | |
| CopyTo(int, TextBox[], int, int) | |
| Exists(Predicate<TextBox>) | |
| Find(Predicate<TextBox>) | |
| FindAll(Predicate<TextBox>) | |
| FindIndex(Predicate<TextBox>) | |
| FindIndex(int, Predicate<TextBox>) | |
| FindIndex(int, int, Predicate<TextBox>) | |
| FindLast(Predicate<TextBox>) | |
| FindLastIndex(Predicate<TextBox>) | |
| FindLastIndex(int, Predicate<TextBox>) | |
| FindLastIndex(int, int, Predicate<TextBox>) | |
| GetEnumerator() | |
| IndexOf(TextBox) | |
| IndexOf(TextBox, int) | |
| IndexOf(TextBox, int, int) | |
| LastIndexOf(TextBox) | |
| LastIndexOf(TextBox, int) | |
| LastIndexOf(TextBox, int, int) | |
| RemoveAt(int) | قم بإزالة مربع نص من الملف. (2 methods) |
أمثلة
[C#]
// إنشاء كائن مصنف
Workbook workbook = new Workbook();
// الحصول على كائن المجموعة
TextBoxCollection textBoxCollection = workbook.Worksheets[0].TextBoxes;
// إضافة نص
textBoxCollection.Add(1, 1, 50, 100);
foreach(TextBox tbox in textBoxCollection)
{
//افعل ما تريد
}
// قم بعملك
أنظر أيضا
- class CollectionBase<T>
- class TextBox
- مساحة الاسم Aspose.Cells.Drawing
- المجسم Aspose.Cells