StrokeCollection.Remove(StrokeCollection) 메서드

정의

지정된 스트로크을 컬렉션에서 제거합니다.

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)

매개 변수

strokes
StrokeCollection

컬렉션에서 제거할 StrokeCollection입니다.

예제

다음 예제에서 지정한 올가미 내 80% 이상인 모든 스트로크를 제거 하는 방법에 설명 된 StrokeCollection합니다. 사용자 지정 컨트롤을 사용 하면을 올가미를 사용 하 여 잉크를 선택 하는 경우에 유용 합니다. 사용자는 올가미를 사용 하 여 잉크를 선택할 수 있는 컨트롤을 참조 하세요 방법: 사용자 지정 컨트롤에서 잉크 선택합니다.

// 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

설명

합니다 Remove 메서드를 발생 시킵니다 합니다 StrokesChanged 각각에 대 한 이벤트 Stroke 제거 합니다.

적용 대상