StylusPlugIn.OnAdded 方法

定义

在将元素 StylusPlugIn 添加到元素时发生。

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

示例

以下示例显示ElementStylusPlugIn添加到集合中的StylusPlugIns时间。

protected override void OnAdded()
{
    base.OnAdded();
     
    MessageBox.Show(this.Element.ToString());
}
Protected Overrides Sub OnAdded()

    MyBase.OnAdded()

    MessageBox.Show(Me.Element.ToString())

End Sub

适用于