DynamicRenderer.OnDrawingAttributesReplaced DynamicRenderer.OnDrawingAttributesReplaced DynamicRenderer.OnDrawingAttributesReplaced DynamicRenderer.OnDrawingAttributesReplaced Method

Définition

Se produit quand la propriété DrawingAttributes change.Occurs when the DrawingAttributes property changes.

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

Exemples

L'exemple suivant substitue la méthode OnDrawingAttributesReplaced.The following example overrides the OnDrawingAttributesReplaced method.

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 'OnDrawingAttributesReplaced

Notes pour les héritiers

Lors de la substitution OnDrawingAttributesReplaced() dans une classe dérivée, veillez à appeler la classe de base OnDrawingAttributesReplaced() (méthode).When overriding OnDrawingAttributesReplaced() in a derived class, be sure to call the base class' OnDrawingAttributesReplaced() method.

S’applique à