Skip to main content

MVCxPopupWindowCollection.IndexOf(MVCxPopupWindow) Method

Searches for the specified popup window object and returns the zero-based index of the first occurrence within the collection.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public int IndexOf(
    MVCxPopupWindow window
)

Parameters

Name Type Description
window MVCxPopupWindow

A MVCxPopupWindow object representing the popup window to locate in the collection.

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 negative one (-1).

Remarks

The IndexOf method enables you to determine where a popup window specified by the window parameter is located within the popup window collection represented by the current object. The collection of popup window objects can be accessed via the ASPxPopupControl.Windows property of a PopupControl.

This method searches the popup window 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.

See Also