MVCxPopupWindowCollection.Insert(Int32, MVCxPopupWindow) Method
Inserts the specified popup window object into the collection at the specified index.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public void Insert(
int index,
MVCxPopupWindow window
)
#Parameters
Name | Type | Description |
---|---|---|
index | Int32 | The zero-based index location where a specific popup window object should be inserted. |
window | MVCx |
A MVCx |
#Remarks
This method allows an existing popup window object to be inserted into the current collection.
If the index parameter value is negative or exceeds the number of elements within the collection, a ArgumentOutOfRangeException exception is raised. When inserting a new popup window, the elements that follow the insertion point move down to accommodate the new element. The indexes of the moved elements are updated as well.
To append a popup window object to the collection, use an appropriate PopupWindowCollection.Add method. To remove the previously added popup window, use the Collection<T>.Remove method. You can also use the Clear() method to remove all popup windows from the collection.