Share via


DynamicRenderer.OnDrawingAttributesReplaced Método

Definición

Se produce cuando cambia la propiedad DrawingAttributes.

protected:
 virtual void OnDrawingAttributesReplaced();
protected virtual void OnDrawingAttributesReplaced ();
abstract member OnDrawingAttributesReplaced : unit -> unit
override this.OnDrawingAttributesReplaced : unit -> unit
Protected Overridable Sub OnDrawingAttributesReplaced ()

Ejemplos

En el siguiente ejemplo se reemplaza el método OnDrawingAttributesReplaced.

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

Notas a los desarrolladores de herederos

Al invalidar OnDrawingAttributesReplaced() en una clase derivada, asegúrese de llamar al método de OnDrawingAttributesReplaced() la clase base.

Se aplica a