StrokeCollection.IndexOf(Stroke) 方法

定義

傳回 Stroke 中指定 StrokeCollection 的索引。

public:
 int IndexOf(System::Windows::Ink::Stroke ^ stroke);
public int IndexOf (System.Windows.Ink.Stroke stroke);
override this.IndexOf : System.Windows.Ink.Stroke -> int
Public Function IndexOf (stroke As Stroke) As Integer

參數

stroke
Stroke

需要其位置的筆劃。

傳回

Int32

筆劃的索引。

備註

如果 stroke 不是 的成員 StrokeCollection ,方法 IndexOf 會傳回 -1。

適用於