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