StrokeCollection.Remove(StrokeCollection) Yöntem

Tanım

Belirtilen vuruşları koleksiyondan kaldırır.

public:
 void Remove(System::Windows::Ink::StrokeCollection ^ strokes);
public void Remove (System.Windows.Ink.StrokeCollection strokes);
override this.Remove : System.Windows.Ink.StrokeCollection -> unit
Public Sub Remove (strokes As StrokeCollection)

Parametreler

strokes
StrokeCollection

StrokeCollection koleksiyondan kaldırılacak.

Örnekler

Aşağıdaki örnekte, belirtilen kement içinde en az yüzde 80 olan tüm vuruşların bir StrokeCollectioniçinden nasıl kaldırılacağı gösterilmektedir. Bu, özel denetim kullanıcının kementli mürekkep seçmesine olanak sağladığında kullanışlıdır. Kullanıcının kementli mürekkep seçmesini sağlayan bir denetim oluşturmak için bkz . Nasıl yapılır: Özel Denetimden Mürekkep Seçme.

// Remove the strokes within the lasso from the InkPresenter
public void RemoveStrokes(Point[] lasso)
{
    StrokeCollection strokes = presenter.Strokes.HitTest(lasso, 80);

    presenter.Strokes.Remove(strokes);
}
' Remove the strokes within the lasso from the InkPresenter
Public Sub RemoveStrokes(ByVal lasso As Point())

    If lasso Is Nothing Then
        Return
    End If

    Dim strokes As StrokeCollection = _
        presenter.Strokes.HitTest(lasso, 80)

    presenter.Strokes.Remove(strokes)

End Sub

Açıklamalar

yöntemi, Remove kaldırmış olduğu her Stroke bir olay için olayı tetiklerStrokesChanged.

Şunlara uygulanır