StrokeCollection.PropertyDataChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when custom property is added or removed from the 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
Event Type
Examples
The following example demonstrates how to handle the PropertyDataChanged event. This example assumes that there is a Guid called dateTimeGuid
and the PropertyDataChanged event is connected to the event handler defined in this example.
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
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.
الملاحظات
https://aka.ms/ContentUserFeedback.
قريبًا: خلال عام 2024، سنتخلص تدريجيًا من GitHub Issues بوصفها آلية إرسال ملاحظات للمحتوى ونستبدلها بنظام ملاحظات جديد. لمزيد من المعلومات، راجعإرسال الملاحظات وعرضها المتعلقة بـ