ComponentDesigner.PostFilterAttributes(IDictionary) 方法

定义

允许设计器从通过 TypeDescriptor 公开的特性集中更改或移除项。Allows a designer to change or remove items from the set of attributes that it exposes through a TypeDescriptor.

protected:
 virtual void PostFilterAttributes(System::Collections::IDictionary ^ attributes);
protected virtual void PostFilterAttributes (System.Collections.IDictionary attributes);
abstract member PostFilterAttributes : System.Collections.IDictionary -> unit
override this.PostFilterAttributes : System.Collections.IDictionary -> unit
Protected Overridable Sub PostFilterAttributes (attributes As IDictionary)

参数

attributes
IDictionary

组件的类的特性。The attributes for the class of the component.

实现

注解

此方法提供了一种方法,用于更改或删除通过 TypeDescriptor公开的属性字典中的项。This method provides a way to change or remove the items within the dictionary of attributes that are exposed through a TypeDescriptor.

属性字典中的关键字是属性的类型标识符,这些标识符由其 TypeId 属性的值指定。The keys in the dictionary of attributes are the type identifiers of the attributes, as specified by the value of their TypeId property. 对象的类型为 PropertyDescriptorThe objects are of type PropertyDescriptor. PreFilterAttributes 方法之后立即调用此方法。This method is called immediately after the PreFilterAttributes method.

继承者说明

可以直接筛选可通过 attributes 参数访问的字典,也可以将其保持不变。You can directly filter the dictionary that is accessible through the attributes parameter, or you can leave it unchanged. 如果重写此方法,请在执行您自己的筛选后调用基实现。If you override this method, call the base implementation after you perform your own filtering. 此外,不能删除 PostFilterAttributes(IDictionary) 方法中的项。In addition, you must not remove items in the PostFilterAttributes(IDictionary) method. 而是更改属性以隐藏项。Instead, change attributes to hide items. 你还可以删除 PreFilterAttributes(IDictionary) 方法中的项。You may also remove items in the PreFilterAttributes(IDictionary) method.

适用于

另请参阅