DrawingAttributes.AttributeChanged 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 a property in the DrawingAttributes object changes.
public:
event System::Windows::Ink::PropertyDataChangedEventHandler ^ AttributeChanged;
public event System.Windows.Ink.PropertyDataChangedEventHandler AttributeChanged;
member this.AttributeChanged : System.Windows.Ink.PropertyDataChangedEventHandler
Public Custom Event AttributeChanged As PropertyDataChangedEventHandler
Public Event AttributeChanged As PropertyDataChangedEventHandler
Event Type
Examples
The following example handles the AttributeChanged event. This example assumes that there is a DrawingAttributes object called inkDA
and that the AttributeChanged event is connected to the event handler defined in this example.
void inkDA_AttributeChanged(object sender, PropertyDataChangedEventArgs e)
{
if (e.PropertyGuid == DrawingAttributeIds.Color)
{
this.Title = "The pen color is: " + e.NewValue.ToString();
}
}
Private Sub inkDA_AttributeChanged(ByVal sender As Object, _
ByVal e As PropertyDataChangedEventArgs)
If (e.PropertyGuid = DrawingAttributeIds.Color) Then
Me.Title = "The pen color is: " + e.NewValue.ToString()
End If
End Sub
Applies to
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.