TextBoxCollection
Contenu
[
Cacher
]TextBoxCollection class
Encapsule une collection deTextBox objets.
public class TextBoxCollection : CollectionBase<TextBox>
Propriétés
| Nom | La description |
|---|---|
| Capacity { get; set; } | |
| Count { get; } | |
| Item { get; } | Obtient leTextBox élément à l’index spécifié. (2 indexers) |
| Item { get; set; } |
Méthodes
| Nom | La description |
|---|---|
| Add(int, int, int, int) | Ajoute une zone de texte à la collection. |
| BinarySearch(TextBox) | |
| BinarySearch(TextBox, IComparer<TextBox>) | |
| BinarySearch(int, int, TextBox, IComparer<TextBox>) | |
| Clear() | Effacer toutes les zones de texte. (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) | Supprimer une zone de texte du fichier. (2 methods) |
Exemples
[C#]
//Instanciation d'un objet Workbook
Workbook workbook = new Workbook();
// obtenir l'objet de la collection
TextBoxCollection textBoxCollection = workbook.Worksheets[0].TextBoxes;
// ajouter une zone de texte
textBoxCollection.Add(1, 1, 50, 100);
foreach(TextBox tbox in textBoxCollection)
{
//Faites ce que vous voulez
}
//faites vos affaires
Voir également
- class CollectionBase<T>
- class TextBox
- espace de noms Aspose.Cells.Drawing
- Assemblée Aspose.Cells