共用方式為


BulletedListDesigner.PostFilterEvents(IDictionary) 方法

定義

可讓設計工具篩選關聯控制項將在設計階段公開的事件集。

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

參數

events
IDictionary

IDictionary,其中包含表示控制項事件的 EventDescriptor 物件。 IDictionary 中的索引鍵是事件名稱。

備註

控件設計工具會使用衍生自 ComponentDesigner.PostFilterEvents 方法的方法,篩選它所設計控件將透過 TypeDescriptor 對象公開的事件集。

BulletedList針對控件,PostFilterEvents方法會SelectedIndexChanged從設計工具公開的清單中移除 事件。

介面中的 IDictionary 索引鍵是事件的名稱。 中的 IDictionary 值是 類型的 EventDescriptor物件。

給繼承者的注意事項

覆寫 PostFilterEvents(IDictionary) 方法可讓您變更或移除這個控件之設計工具所公開之事件字典中的專案。

您可以直接篩選可透過 參數存取的 events 字典,也可以讓字典保持不變。 如果您要覆寫 PostFilterEvents(IDictionary) 方法,請在執行自己的篩選之後呼叫基底實作。

適用於

另請參閱