Class CheckBoxCollection
Contents
[
Hide
]CheckBoxCollection class
Represents a collection of CheckBox
objects in a worksheet.
public class CheckBoxCollection : CollectionBase<CheckBox>
Properties
Name | Description |
---|---|
Capacity { get; set; } | |
Count { get; } | |
Item { get; } | Gets the CheckBox element at the specified index. |
Item { get; set; } |
Methods
Name | Description |
---|---|
Add(int, int, int, int) | Adds a checkBox to the collection. |
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) |
Examples
namespace AsposeCellsExamples
{
using Aspose.Cells;
using Aspose.Cells.Drawing;
using System;
public class CheckBoxCollectionDemo
{
public static void CheckBoxCollectionExample()
{
// Create a new Workbook.
Workbook workbook = new Workbook();
// Get the first worksheet in the workbook.
Worksheet sheet = workbook.Worksheets[0];
// Add a CheckBox to the worksheet.
int index = sheet.CheckBoxes.Add(15, 15, 20, 100);
CheckBox checkBox = sheet.CheckBoxes[index];
checkBox.Text = "Check Box 1";
// Save the workbook.
workbook.Save("CheckBoxCollectionExample.xlsx");
workbook.Save("CheckBoxCollectionExample.pdf");
return;
}
}
}
See Also
- class CollectionBase<T>
- class CheckBox
- namespace Aspose.Cells.Drawing
- assembly Aspose.Cells