Leadtools.Windows.Annotations Namespace > AnnRubberStampObject Class : OnTypeChanged Method |
protected virtual void OnTypeChanged( RoutedPropertyChangedEventArgs<AnnRubberStampType> e )
'Declaration Protected Overridable Sub OnTypeChanged( _ ByVal e As RoutedPropertyChangedEventArgs(Of AnnRubberStampType) _ )
'Usage Dim instance As AnnRubberStampObject Dim e As RoutedPropertyChangedEventArgs(Of AnnRubberStampType) instance.OnTypeChanged(e)
protected: virtual void OnTypeChanged( RoutedPropertyChangedEventArgs<AnnRubberStampType>^ e )
Raising an event invokes the event handler through a delegate.
The OnTypeChanged 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 OnTypeChanged in a derived class, be sure to call the base class's OnTypeChanged method so that registered delegates receive the event.