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 呼び出 dateTimeGuid され、 PropertyDataChanged この例で定義されているイベント ハンドラーにイベントが接続されていることを前提としています。

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

適用対象