DesignerAutoFormatCollection.IndexOf(DesignerAutoFormat) 方法

定義

傳回指定的 DesignerAutoFormat 物件在集合中的索引。

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

參數

format
DesignerAutoFormat

要在集合中尋找的 DesignerAutoFormat

傳回

集合內第一個 format 相符項目之以零起始的索引,如果格式不在集合中,則為 -1。

備註

方法會 IndexOf 藉由在 Equals 比較的物件上使用 DesignerAutoFormat 方法來判斷相等。

適用於

另請參閱