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 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈