DataPagerFieldCollection::IndexOf Method (DataPagerField^)

 

Gets the index of a specific DataPagerField object in the collection.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public:
int IndexOf(
	DataPagerField^ field
)

Parameters

field
Type: System.Web.UI.WebControls::DataPagerField^

The object to locate in the collection.

Return Value

Type: System::Int32

The index of the field parameter, if it is found in the collection; otherwise, -1.

.NET Framework
Available since 3.5
Return to top
Show: