語言

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方法來判定相等。

適用於

另請參閱