DrawingAttributes.OnAttributeChanged(PropertyDataChangedEventArgs) Method
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.
Raises the AttributeChanged event.
protected:
virtual void OnAttributeChanged(System::Windows::Ink::PropertyDataChangedEventArgs ^ e);
protected virtual void OnAttributeChanged (System.Windows.Ink.PropertyDataChangedEventArgs e);
abstract member OnAttributeChanged : System.Windows.Ink.PropertyDataChangedEventArgs -> unit
override this.OnAttributeChanged : System.Windows.Ink.PropertyDataChangedEventArgs -> unit
Protected Overridable Sub OnAttributeChanged (e As PropertyDataChangedEventArgs)
Parameters
A PropertyDataChangedEventArgs that contains the event data.
Exceptions
e
is null
.
Remarks
Raising an event invokes the event handler through a delegate.
The OnAttributeChanged method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Notes to Inheritors
When overriding OnAttributeChanged(PropertyDataChangedEventArgs) in a derived class, call the OnAttributeChanged(PropertyDataChangedEventArgs) method for the base class to ensure that registered delegates receive the event.