Export (0) Print
Expand All

IDesignerFilter.PostFilterAttributes Method

When overridden in a derived class, allows a designer to change or remove items from the set of attributes that it exposes through a TypeDescriptor.

Namespace: System.ComponentModel.Design
Assembly: System (in system.dll)

void PostFilterAttributes (
	IDictionary attributes
)
void PostFilterAttributes (
	IDictionary attributes
)
function PostFilterAttributes (
	attributes : IDictionary
)
Not applicable.

Parameters

attributes

The Attribute objects for the class of the component. The keys in the dictionary of attributes are the TypeId values of the attributes.

This method provides a way to change or remove items within the dictionary of attributes that the associated component of the designer implementing this interface exposes through a TypeDescriptor.

The keys in the dictionary of attributes are the type IDs of the attributes. The objects are of type Attribute. This method is called immediately after PreFilterAttributes.

The type ID of an attribute can be any object. By default, Attribute returns its Type as the value of its TypeId property. You can check the TypeId of an attribute in the dictionary for equivalence with a known TypeId for an attribute to identify it, or use System.Reflection to identify the attribute object itself.

When an attribute that has the same TypeId as an existing or inherited attribute is added to a component, the new attribute replaces the old attribute. For many attributes, a new attribute of the same type will replace any previous attribute of the type. However, some types of attributes return a TypeId that distinguishes the attribute selectively. For example, in order to provide different types of simultaneously active designers for a type, such as an IRootDesigner and an IDesigner, the DesignerAttribute class returns a TypeId that uniquely identifies both the attribute and the base designer type. The DesignerAttribute constructor allows you to specify the base designer type of the designer in addition to its specific type, and DesignerAttribute returns a TypeId that reflects this. Therefore when you add a new DesignerAttribute with a base designer type of the same type as the base designer type of an existing DesignerAttribute, the old attribute is replaced with the new attribute.

Notes to Implementers: You can directly filter the dictionary that is accessible through the attributes parameter, or you can leave it unchanged. If you are overriding this method, call the base implementation after you perform your own filtering.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft