DrawingAttributes.OnAttributeChanged(PropertyDataChangedEventArgs) Yöntem
Tanım
Olayını oluşturur AttributeChanged .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)
Parametreler
PropertyDataChangedEventArgsOlay verilerini içeren bir.A PropertyDataChangedEventArgs that contains the event data.
Özel durumlar
e
, null
değeridir.e
is null
.
Açıklamalar
Olay bildirmek, bir temsilci yoluyla olay işleyicisini çağırır.Raising an event invokes the event handler through a delegate.
OnAttributeChangedYöntemi, türetilmiş sınıfların bir temsilciyi iliştirmeden olayı işlemesini de sağlar.The OnAttributeChanged method also allows derived classes to handle the event without attaching a delegate. Bu, türetilmiş bir sınıftaki olayı işlemek için tercih edilen tekniktir.This is the preferred technique for handling the event in a derived class.
Devralanlara Notlar
OnAttributeChanged(PropertyDataChangedEventArgs)Türetilmiş bir sınıfta geçersiz kılma yaparken, OnAttributeChanged(PropertyDataChangedEventArgs) kayıtlı temsilcilerin olayı aldığından emin olmak için temel sınıfa yönelik yöntemi çağırın.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.