ComponentDesigner.PostFilterEvents(IDictionary) 方法

定义

允许设计器从通过 TypeDescriptor 公开的事件集中更改或移除项。Allows a designer to change or remove items from the set of events that it exposes through a 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

组件的类的事件。The events for the class of the component.

实现

注解

此方法提供了一种方法,用于在通过 TypeDescriptor公开的事件字典中更改或移除项。This method provides a way to change or remove the items within the dictionary of events that are exposed through a TypeDescriptor.

事件字典中的键是事件的名称。The keys in the dictionary of events are the names of the events. 对象的类型为 PropertyDescriptorThe objects are of type PropertyDescriptor. PreFilterEvents 方法之后立即调用此方法。This method is called immediately after the PreFilterEvents method.

继承者说明

可以直接筛选可通过 events 参数访问的字典,也可以将其保持不变。You can directly filter the dictionary that is accessible through the events parameter, or you can leave it unchanged. 如果重写此方法,请在执行您自己的筛选后调用基实现。If you override this method, call the base implementation after you perform your own filtering. 此外,不能删除 PostFilterEvents(IDictionary) 方法中的项。In addition, you must not remove items in the PostFilterEvents(IDictionary) method. 而是更改属性以隐藏项。Instead, change attributes to hide items. 你还可以删除 PreFilterEvents(IDictionary) 方法中的项。You may also remove items in the PreFilterEvents(IDictionary) method.

适用于

另请参阅