DynamicRenderer.OnDrawingAttributesReplaced Metod

Definition

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.

Gäller för