ComponentDesigner.PreFilterEvents(IDictionary) 方法

定義

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

C#
protected virtual void PreFilterEvents (System.Collections.IDictionary events);

參數

events
IDictionary

元件類別的事件。

備註

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

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

給繼承者的注意事項

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

適用於

產品 版本
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

另請參閱