Class TextBoxCollection

TextBoxCollection class

Encapsulates a collection of TextBox objects.

public class TextBoxCollection : CollectionBase<TextBox>

Properties

NameDescription
Capacity { get; set; }
Count { get; }
Item { get; }Gets the TextBox element at the specified index. (2 indexers)
Item { get; set; }

Methods

NameDescription
Add(int, int, int, int)Adds a textbox to the collection.
BinarySearch(TextBox)
BinarySearch(TextBox, IComparer<TextBox>)
BinarySearch(int, int, TextBox, IComparer<TextBox>)
Clear()Clear all text boxes. (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)Remove a text box from the file. (2 methods)

Examples


[C#]
//Instantiating a Workbook object
Workbook workbook = new Workbook();
//get collection object
TextBoxCollection textBoxCollection = workbook.Worksheets[0].TextBoxes;
//add a textbox
textBoxCollection.Add(1, 1, 50, 100);
foreach(TextBox tbox in textBoxCollection)
{
    //do what you want
}

//do your business

See Also