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