HtmlControlDesigner.PreFilterProperties(IDictionary) 方法
定义
允许设计器通过 TypeDescriptor 对象在设计时公开一组特定的属性。Allows the designer to expose a specific set of properties through a TypeDescriptor object at design time.
protected:
override void PreFilterProperties(System::Collections::IDictionary ^ properties);
protected override void PreFilterProperties (System.Collections.IDictionary properties);
override this.PreFilterProperties : System.Collections.IDictionary -> unit
Protected Overrides Sub PreFilterProperties (properties As IDictionary)
参数
- properties
- IDictionary
要为组件筛选的属性集。The set of properties to filter for the component.
注解
PreFilterProperties方法提供了一种方法,用于向设计器通过对象公开的属性字典中添加项或从中移除项 TypeDescriptor 。The PreFilterProperties method provides a way to add items to or remove items from the dictionary of properties that a designer exposes through a TypeDescriptor object.
属性字典中的键是属性的名称。The keys in the dictionary of properties are the names of the properties. 对象的类型为 PropertyDescriptor 。The objects are of type PropertyDescriptor.
继承者说明
可以直接修改可通过访问的字典,也可以 properties 使字典保持不变。You can directly modify the dictionary that is accessible through properties or you can leave the dictionary unchanged. 如果要重写 PreFilterProperties(IDictionary) 方法,请在执行您自己的筛选之前调用基实现。If you are overriding the PreFilterProperties(IDictionary) method, call the base implementation before you perform your own filtering.