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 对象(表示控件事件)的 EventDescriptorIDictionary 中的键为事件名。

注解

控件设计器使用派生自 ComponentDesigner.PostFilterEvents 方法的方法来筛选它正在设计的控件将通过 对象公开 TypeDescriptor 的事件集。

BulletedList对于 控件,PostFilterEvents方法从设计器公开的列表中删除 SelectedIndexChanged 事件。

接口中的 IDictionary 键是事件的名称。 中的 IDictionary 值是 类型的 EventDescriptor对象。

继承者说明

通过 PostFilterEvents(IDictionary) 重写 方法,可以更改或删除设计器为此控件公开的事件字典中的项。

可以直接筛选可通过 events 参数访问的字典,也可以使其保持不变。 如果要重写 PostFilterEvents(IDictionary) 方法,请在执行自己的筛选后调用基本实现。

适用于

另请参阅