Tab
A newer version of this page is available. Switch to the current version.

TabCollectionBase.IndexOfText(String) Method

Searches for an item specified by the value of its TabBase.Text property and returns the zero-based index of the first occurrence within the collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public int IndexOfText(
    string text
)
Public Function IndexOfText(
    text As String
) As Integer

Parameters

Name Type Description
text String

A String value representing the TabBase.Text property value of the required item.

Returns

Type Description
Int32

The zero-based index of the first occurrence of the specified item within the collection, if found; otherwise, the negative one (-1).

Remarks

The IndexOfText method enables you to determine where an item specified by the TabBase.Text property value is located within the collection represented by the current object.

This method searches the collection for the specified item and, if found, returns the index value of the first occurrence. If no instance is found, the negative one (-1) is returned. The collection of items is searched forward starting with the first element and ending with the last one.

See Also