DesignerAutoFormatCollection.IndexOf(DesignerAutoFormat) Metoda

Definicja

Zwraca indeks określonego DesignerAutoFormat obiektu w kolekcji.

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

Parametry

format
DesignerAutoFormat

Element DesignerAutoFormat do zlokalizowania w kolekcji.

Zwraca

Int32

Indeks oparty na zerowym pierwszym wystąpieniu format kolekcji; w przeciwnym razie -1, jeśli format nie znajduje się w kolekcji.

Uwagi

Metoda IndexOf określa równość przy użyciu Equals metody w DesignerAutoFormat obiektach, które są porównywane.

Dotyczy

Zobacz też