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() 的方法。

适用于