System.Web.UI.WebControls.WebParts.EditorPartCollection.IndexOf Method

Returns the position of a particular member of the collection.

Syntax

public int IndexOf (EditorPart editorPart)

Parameters

editorPart
An System.Web.UI.WebControls.WebParts.EditorPart that is a member of the collection.

Returns

An integer that corresponds to the index of an System.Web.UI.WebControls.WebParts.EditorPart control in the collection.

Remarks

The EditorPartCollection.IndexOf(EditorPart) method is useful if you have multiple System.Web.UI.WebControls.WebParts.EditorPart controls on a Web Parts page, and you need to locate a particular control in the collection.

Requirements

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0