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