Aspose::Cells::Drawing::TextBoxCollection::Get method
Contents
[
Hide
]TextBoxCollection::Get(int32_t) method
Gets the TextBox element at the specified index.
TextBox Aspose::Cells::Drawing::TextBoxCollection::Get(int32_t index)
Parameter | Type | Description |
---|---|---|
index | int32_t | The zero based index of the element. |
ReturnValue
The element at the specified index.
Examples
int tbxTndex = textBoxCollection.GetCount() - 1;
TextBox txb = textBoxCollection.Get(tbxTndex);
See Also
- Class TextBox
- Class Vector
- Class TextBoxCollection
- Namespace Aspose::Cells::Drawing
- Library Aspose.Cells for C++
TextBoxCollection::Get(const U16String&) method
Gets the TextBox element by the name.
TextBox Aspose::Cells::Drawing::TextBoxCollection::Get(const U16String &name)
Parameter | Type | Description |
---|---|---|
name | const U16String& | The name of the text box. |
ReturnValue
Examples
U16String txtboxName = u"textbox 1";
TextBox txb2 = textBoxCollection.Get(txtboxName);
if (!txb2.IsNull())
{
//do what you want
}
See Also
- Class TextBox
- Class Vector
- Class U16String
- Class TextBoxCollection
- Namespace Aspose::Cells::Drawing
- Library Aspose.Cells for C++
TextBoxCollection::Get(const char16_t*) method
Gets the TextBox element by the name.
TextBox Aspose::Cells::Drawing::TextBoxCollection::Get(const char16_t *name)
Parameter | Type | Description |
---|---|---|
name | const char16_t* | The name of the text box. |
ReturnValue
Examples
TextBox txb2 = textBoxCollection.Get(u"textbox 1");
if (!txb2.IsNull())
{
//do what you want
}
See Also
- Class TextBox
- Class Vector
- Class TextBoxCollection
- Namespace Aspose::Cells::Drawing
- Library Aspose.Cells for C++