StrokeCollection.PropertyDataChanged 이벤트

정의

사용자 지정 속성이 StrokeCollection에서 추가되거나 제거될 때 발생합니다.

public:
 event System::Windows::Ink::PropertyDataChangedEventHandler ^ PropertyDataChanged;
public event System.Windows.Ink.PropertyDataChangedEventHandler PropertyDataChanged;
member this.PropertyDataChanged : System.Windows.Ink.PropertyDataChangedEventHandler 
Public Custom Event PropertyDataChanged As PropertyDataChangedEventHandler 
Public Event PropertyDataChanged As PropertyDataChangedEventHandler 

이벤트 유형

예제

다음 예제에서는 처리 하는 방법에 설명 합니다 PropertyDataChanged 이벤트입니다. 이 예제에서는 있다고 가정를 Guid 호출 dateTimeGuidPropertyDataChanged 이벤트가이 예제에서 정의 된 이벤트 처리기에 연결 합니다.

void Strokes_PropertyDataChanged(object sender, PropertyDataChangedEventArgs e)
{
    if ((e.PropertyGuid == dateTimeGuid) && (e.NewValue is DateTime))
    {
        MessageBox.Show("The timestamp for the strokes is " +
            ((DateTime)e.NewValue).ToString());
    }
}
Private Sub Strokes_PropertyDataChanged(ByVal sender As Object, _
    ByVal e As PropertyDataChangedEventArgs)

    If (e.PropertyGuid = dateTimeGuid) And (TypeOf e.NewValue Is DateTime) Then
        MessageBox.Show("The timestamp for the strokes is " & _
            (CType(e.NewValue, DateTime)).ToString())
    End If

End Sub

적용 대상