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