Share via


GlyphCollection.IndexOf(Glyph) 方法

定義

傳回 GlyphGlyphCollection 的索引。

public:
 int IndexOf(System::Windows::Forms::Design::Behavior::Glyph ^ value);
public int IndexOf (System.Windows.Forms.Design.Behavior.Glyph value);
member this.IndexOf : System.Windows.Forms.Design.Behavior.Glyph -> int
Public Function IndexOf (value As Glyph) As Integer

參數

value
Glyph

要尋找的 Glyph

傳回

Int32

如果可以找到 GlyphvalueGlyphCollection 的索引,否則為 -1。

適用於