PopupWindowCollection.IndexOfText(String) Method
Searches for a popup window specified by the value of its PopupWindow.Text property and returns the zero-based index of the first occurrence within the collection.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Parameters
Name | Type | Description |
---|---|---|
text | String | A String value representing the PopupWindow.Text property value of the required popup window. |
Returns
Type | Description |
---|---|
Int32 | The zero-based index of the first occurrence of the specified popup window within the collection, if found; otherwise, it returns a negative one (-1). |
Remarks
The IndexOfText method enables you to determine where a popup window specified by its PopupWindow.Text property value is located within the collection represented by the current object.
This method searches the collection for the specified popup window and, if found, returns the index value of the first occurrence. If no instance is found, a negative one (-1) is returned. The collection of popup windows is searched forward starting with the first element and ending with the last one.