DataPagerFieldCollection.IndexOf Method (DataPagerField)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: