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) 方法,请在执行自己的筛选后调用基实现。

适用于

另请参阅