DynamicRenderer.OnDrawingAttributesReplaced 方法     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当 DrawingAttributes 属性更改时发生。
protected:
 virtual void OnDrawingAttributesReplaced();protected virtual void OnDrawingAttributesReplaced ();abstract member OnDrawingAttributesReplaced : unit -> unit
override this.OnDrawingAttributesReplaced : unit -> unitProtected 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() 的方法。