IDesignerFilter.PreFilterProperties(IDictionary) 方法

定义

当在派生类中被重写时,允许设计器将项添加到它通过 TypeDescriptor 公开的属性集中。When overridden in a derived class, allows a designer to add items to the set of properties that it exposes through a TypeDescriptor.

public:
 void PreFilterProperties(System::Collections::IDictionary ^ properties);
public void PreFilterProperties (System.Collections.IDictionary properties);
abstract member PreFilterProperties : System.Collections.IDictionary -> unit
Public Sub PreFilterProperties (properties As IDictionary)

参数

properties
IDictionary

PropertyDescriptor 对象,它表示组件的类的属性。The PropertyDescriptor objects that represent the properties of the class of the component. 属性字典中的关键字是属性名。The keys in the dictionary of properties are property names.

注解

此方法提供了一种方法,用于向设计器通过 TypeDescriptor公开的属性字典中添加项。This method provides a way to add items to the dictionary of properties that a designer exposes through a TypeDescriptor.

属性字典中的键是属性的名称。The keys in the dictionary of properties are the names of the properties. 对象的类型为 PropertyDescriptorThe objects are of type PropertyDescriptor. PostFilterProperties之前立即调用此方法。This method is called immediately before PostFilterProperties.

实施者说明

可以直接修改可通过 properties 参数访问的字典,也可以将其保持不变。You can directly modify the dictionary that is accessible through the properties parameter, or you can leave it unchanged. 如果要重写此方法,请在执行您自己的筛选之前调用基实现。If you are overriding this method, call the base implementation before you perform your own filtering.

适用于

另请参阅