DynamicRenderer.OnDrawingAttributesReplaced Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Inträffar när egenskapen DrawingAttributes ändras.
protected:
virtual void OnDrawingAttributesReplaced();
protected virtual void OnDrawingAttributesReplaced();
abstract member OnDrawingAttributesReplaced : unit -> unit
override this.OnDrawingAttributesReplaced : unit -> unit
Protected Overridable Sub OnDrawingAttributesReplaced ()
Exempel
I följande exempel åsidosätts OnDrawingAttributesReplaced metoden.
protected override void OnDrawingAttributesReplaced()
{
base.OnDrawingAttributesReplaced();
MessageBox.Show(this.DrawingAttributes.Color.ToString());
}
Protected Overrides Sub OnDrawingAttributesReplaced()
MyBase.OnDrawingAttributesReplaced()
MessageBox.Show(Me.DrawingAttributes.Color.ToString())
End Sub
Anteckningar till arvingar
När du åsidosättar OnDrawingAttributesReplaced() i en härledd klass måste du anropa basklassens OnDrawingAttributesReplaced() metod.