WebPartCollection.IndexOf(WebPart) Método
Definição
Retorna a posição de um membro específico da coleção.Returns the position of a particular member of the collection.
public:
int IndexOf(System::Web::UI::WebControls::WebParts::WebPart ^ value);
public int IndexOf (System.Web.UI.WebControls.WebParts.WebPart value);
member this.IndexOf : System.Web.UI.WebControls.WebParts.WebPart -> int
Public Function IndexOf (value As WebPart) As Integer
Parâmetros
Retornos
Um inteiro que indica a posição de um objeto específico na coleção.An integer that indicates the position of a particular object in the collection.
Comentários
O IndexOf método será útil se você tiver vários WebPart controles em uma Web Parts página e precisar saber a posição ordinal de um controle em relação aos outros.The IndexOf method is useful if you have multiple WebPart controls on a Web Parts page, and you need to know the ordinal position of one control relative to the others.