DesignerAutoFormatCollection.IndexOf(DesignerAutoFormat) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳集合中指定 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方法來判定相等。