Aspose::Cells::Drawing::TextBoxCollection::Get method

TextBoxCollection::Get(int32_t) method

Gets the TextBox element at the specified index.

TextBox Aspose::Cells::Drawing::TextBoxCollection::Get(int32_t index)
ParameterTypeDescription
indexint32_tThe 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

TextBoxCollection::Get(const U16String&) method

Gets the TextBox element by the name.

TextBox Aspose::Cells::Drawing::TextBoxCollection::Get(const U16String &name)
ParameterTypeDescription
nameconst 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

TextBoxCollection::Get(const char16_t*) method

Gets the TextBox element by the name.

TextBox Aspose::Cells::Drawing::TextBoxCollection::Get(const char16_t *name)
ParameterTypeDescription
nameconst 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