ComponentDesigner.PreFilterEvents(IDictionary) 方法

定義

允許設計工具加入至它經由 TypeDescriptor 公開的事件集。

protected:
 virtual void PreFilterEvents(System::Collections::IDictionary ^ events);
protected virtual void PreFilterEvents (System.Collections.IDictionary events);
abstract member PreFilterEvents : System.Collections.IDictionary -> unit
override this.PreFilterEvents : System.Collections.IDictionary -> unit
Protected Overridable Sub PreFilterEvents (events As IDictionary)

參數

events
IDictionary

元件類別的事件。

備註

這個方法可讓您將專案加入設計工具透過 TypeDescriptor公開的事件字典中。

事件字典中的索引鍵是事件的名稱。 物件的類型為 PropertyDescriptor。 這個方法會在方法之前 PostFilterEvents 立即呼叫。

給繼承者的注意事項

您可以直接修改可透過 參數存取的 events 字典,也可以讓字典保持不變。 如果您覆寫此方法,請先呼叫基底實作,再執行自己的篩選。

適用於

另請參閱