BulletedListDesigner.PostFilterEvents(IDictionary) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
可讓設計工具篩選關聯控制項將在設計階段公開的事件集。
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) 方法,請在執行自己的篩選之後呼叫基底實作。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應