CheckBoxCollection
Inhalt
[
Ausblenden
]CheckBoxCollection class
Repräsentiert eine Sammlung vonCheckBox Objekte in einem Arbeitsblatt.
public class CheckBoxCollection : CollectionBase<CheckBox>
Eigenschaften
| Name | Beschreibung |
|---|---|
| Capacity { get; set; } | |
| Count { get; } | |
| Item { get; } | Ruft die abCheckBox Element am angegebenen Index. |
| Item { get; set; } |
Methoden
| Name | Beschreibung |
|---|---|
| Add(int, int, int, int) | Fügt der Sammlung ein Kontrollkästchen hinzu. |
| 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) |
Beispiele
[C#]
//Eine neue Arbeitsmappe erstellen.
Workbook workbook = new Workbook();
//Erstes Arbeitsblatt in der Arbeitsmappe abrufen.
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]
'Erstellen Sie eine neue Arbeitsmappe.
Dim workbook As Workbook = new Workbook()
'Holen Sie sich das erste Arbeitsblatt in der Arbeitsmappe.
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"
Siehe auch
- class CollectionBase<T>
- class CheckBox
- namensraum Aspose.Cells.Drawing
- Montage Aspose.Cells