TextBoxCollection
Innehåll
[
Dölj
]TextBoxCollection class
Kapslar in en samling avTextBox objekt.
public class TextBoxCollection : CollectionBase<TextBox>
Egenskaper
| namn | Beskrivning |
|---|---|
| Capacity { get; set; } | |
| Count { get; } | |
| Item { get; } | FårTextBox element vid angivet index. (2 indexers) |
| Item { get; set; } |
Metoder
| namn | Beskrivning |
|---|---|
| Add(int, int, int, int) | Lägger till en textruta i samlingen. |
| BinarySearch(TextBox) | |
| BinarySearch(TextBox, IComparer<TextBox>) | |
| BinarySearch(int, int, TextBox, IComparer<TextBox>) | |
| Clear() | Rensa alla textrutor. (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) | Ta bort en textruta från filen. (2 methods) |
Exempel
[C#]
//Instantiering av ett arbetsboksobjekt
Workbook workbook = new Workbook();
//få samlingsobjekt
TextBoxCollection textBoxCollection = workbook.Worksheets[0].TextBoxes;
//lägg till en textruta
textBoxCollection.Add(1, 1, 50, 100);
foreach(TextBox tbox in textBoxCollection)
{
//gör vad du vill
}
//gör dina affärer
Se även
- class CollectionBase<T>
- class TextBox
- namnutrymme Aspose.Cells.Drawing
- hopsättning Aspose.Cells