Langue

DesignerAutoFormatCollection.IndexOf(DesignerAutoFormat) Méthode

Définition

Retourne l’index de l’objet spécifié DesignerAutoFormat dans la collection.

public:
 int IndexOf(System::Web::UI::Design::DesignerAutoFormat ^ format);
public int IndexOf(System.Web.UI.Design.DesignerAutoFormat format);
member this.IndexOf : System.Web.UI.Design.DesignerAutoFormat -> int
Public Function IndexOf (format As DesignerAutoFormat) As Integer

Paramètres

format
DesignerAutoFormat

À DesignerAutoFormat localiser dans la collection.

Retours

Index de base zéro de la première occurrence de format la collection ; sinon, -1, si le format n’est pas dans la collection.

Remarques

La IndexOf méthode détermine l’égalité à l’aide de la Equals méthode sur les DesignerAutoFormat objets qui sont comparés.

S’applique à

Voir aussi