CheckBoxCollection
Contenu
[
Cacher
]CheckBoxCollection class
Représente une collection deCheckBox objets dans une feuille de calcul.
public class CheckBoxCollection : CollectionBase<CheckBox>
Propriétés
| Nom | La description |
|---|---|
| Capacity { get; set; } | |
| Count { get; } | |
| Item { get; } | Obtient leCheckBox élément à l’index spécifié. |
| Item { get; set; } |
Méthodes
| Nom | La description |
|---|---|
| Add(int, int, int, int) | Ajoute une case à cocher à la 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) |
Exemples
[C#]
//Créer un nouveau classeur.
Workbook workbook = new Workbook();
// Récupère la première feuille de calcul du classeur.
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]
'Créez un nouveau classeur.
Dim workbook As Workbook = new Workbook()
'Obtenez la première feuille de calcul du classeur.
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"
Voir également
- class CollectionBase<T>
- class CheckBox
- espace de noms Aspose.Cells.Drawing
- Assemblée Aspose.Cells