StrokeCollection.StrokesChanged 이벤트

정의

컬렉션의 Stroke가 변경될 때 발생합니다.

public:
 event System::Windows::Ink::StrokeCollectionChangedEventHandler ^ StrokesChanged;
public event System.Windows.Ink.StrokeCollectionChangedEventHandler StrokesChanged;
member this.StrokesChanged : System.Windows.Ink.StrokeCollectionChangedEventHandler 
Public Custom Event StrokesChanged As StrokeCollectionChangedEventHandler 
Public Event StrokesChanged As StrokeCollectionChangedEventHandler 

이벤트 유형

예제

다음 예제에서는 현재 시간으로 추가 사용자 지정 속성에 각각의 새 스트로크를 StrokesChanged 이벤트 처리기입니다. 가정는 StrokesChanged 이벤트가이 예제에서 정의 된 이벤트 처리기에 연결 합니다.

Guid currentTimeGuid = new Guid("12345678-1234-1234-1234-123456789012");

void Strokes_StrokesChanged(object sender, StrokeCollectionChangedEventArgs args)
{
    foreach (Stroke s in args.Added)
    {
        s.AddPropertyData(currentTimeGuid, DateTime.Now);
    }
}
Dim currentTimeGuid As Guid = New Guid("12345678-1234-1234-1234-123456789012")

Private Sub Strokes_StrokesChanged(ByVal sender As Object, _
            ByVal args As StrokeCollectionChangedEventArgs)

    Dim s As Stroke

    For Each s In args.Added
        s.AddPropertyData(currentTimeGuid, DateTime.Now)
    Next

End Sub

적용 대상