DrawingAttributes.OnAttributeChanged(PropertyDataChangedEventArgs) 方法

定義

引發 AttributeChanged 事件。

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)

參數

例外狀況

enull

備註

引發事件會透過委派叫用此事件處理常式。

OnAttributeChanged 方法也允許衍生類別處理事件,而不用附加委派。 這是在衍生類別中處理事件的慣用技巧。

給繼承者的注意事項

在衍生類別中覆 OnAttributeChanged(PropertyDataChangedEventArgs) 寫時,請呼叫 OnAttributeChanged(PropertyDataChangedEventArgs) 基類的 方法,以確保已註冊的委派會收到事件。

適用於