ComponentDesigner.PostFilterEvents(IDictionary) 方法

定義

允許設計工具變更或移除它經由 TypeDescriptor 公開的事件集中的項目。

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

參數

events
IDictionary

元件類別的事件。

備註

這個方法可讓您變更或移除透過 TypeDescriptor公開之事件字典中的專案。

事件字典中的索引鍵是事件的名稱。 物件的類型為 PropertyDescriptor。 此方法會在方法之後 PreFilterEvents 立即呼叫。

給繼承者的注意事項

您可以直接篩選可透過 參數存取的 events 字典,也可以讓字典保持不變。 如果您覆寫此方法,請在執行自己的篩選之後呼叫基底實作。 此外,您不得移除 方法中的 PostFilterEvents(IDictionary) 專案。 請改為變更屬性來隱藏專案。 您也可以移除 方法中的 PreFilterEvents(IDictionary) 專案。

適用於

另請參閱