ToolStrip.OnPaintGrip(PaintEventArgs) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
引發 PaintGrip 事件。
protected public:
virtual void OnPaintGrip(System::Windows::Forms::PaintEventArgs ^ e);
protected internal virtual void OnPaintGrip(System.Windows.Forms.PaintEventArgs e);
abstract member OnPaintGrip : System.Windows.Forms.PaintEventArgs -> unit
override this.OnPaintGrip : System.Windows.Forms.PaintEventArgs -> unit
Protected Friend Overridable Sub OnPaintGrip (e As PaintEventArgs)
參數
PaintEventArgs A 包含事件資料。
備註
當移動把手上色時,請使用這種方法。
發起事件會透過代理呼叫事件處理者。 欲了解更多資訊,請參閱 處理與提升事件。
此 OnPaintGrip 方法也允許衍生類別在不附加代理的情況下處理事件。 這是在衍生類別中處理事件的首選技術。
給繼承者的注意事項
在導出類別中覆寫 OnPaintGrip(PaintEventArgs) 時,務必呼叫基底類別的方法 OnPaintGrip(PaintEventArgs) ,讓註冊代理接收事件。