FamilyTypefaceCollection.IndexOf(FamilyTypeface) 方法

定義

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

public:
 virtual int IndexOf(System::Windows::Media::FamilyTypeface ^ item);
public int IndexOf (System.Windows.Media.FamilyTypeface item);
abstract member IndexOf : System.Windows.Media.FamilyTypeface -> int
override this.IndexOf : System.Windows.Media.FamilyTypeface -> int
Public Function IndexOf (item As FamilyTypeface) As Integer

參數

item
FamilyTypeface

要尋找的 FamilyTypeface 物件。

傳回

Int32

如果找到,則為 以零起始的 item 索引,否則為 -1。

實作

適用於