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
Tehke meiega GitHubis koostööd
Selle sisu allika leiate GitHubist, kus saate ka probleeme luua ja läbi vaadata ning päringuid teha. Lisateavet leiate meie kaasautorite juhendist.