TextBoxCollection.Item
Contents
[
Hide
]TextBoxCollection indexer (1 of 2)
Gets the TextBox
element at the specified index.
public TextBox this[int index] { get; }
Parameter | Description |
---|---|
index | The zero based index of the element. |
Return Value
The element at the specified index.
Examples
[C#]
int index = textBoxCollection.Count - 1;
TextBox txb = textBoxCollection[index];
See Also
- class TextBox
- class TextBoxCollection
- namespace Aspose.Cells.Drawing
- assembly Aspose.Cells
TextBoxCollection indexer (2 of 2)
Gets the TextBox
element by the name.
public TextBox this[string name] { get; }
Parameter | Description |
---|---|
name | The name of the text box. |
Examples
[C#]
string txtboxName = "textbox 1";
TextBox txb2 = textBoxCollection[txtboxName];
if(txb2 != null)
{
//do what you want
}
See Also
- class TextBox
- class TextBoxCollection
- namespace Aspose.Cells.Drawing
- assembly Aspose.Cells