Share via


DynamicRenderer.OnDrawingAttributesReplaced メソッド

定義

DrawingAttributes プロパティが変更されたときに発生します。

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

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

注意 (継承者)

派生クラスでオーバーライドする OnDrawingAttributesReplaced() 場合は、必ず基底クラスの メソッド OnDrawingAttributesReplaced() を呼び出してください。

適用対象