all groups > dotnet windows forms designtime > may 2005 >
You're in the

dotnet windows forms designtime

group:

How to "remove" properties via an IExtenderProvider.


How to "remove" properties via an IExtenderProvider. Martin Gustavsson
5/13/2005 12:00:00 AM
dotnet windows forms designtime:
Hi all.

I have a component implementing IExtenderProvider. It provides
two new properties for controls, BackColor and ForeColor. These
properties are of my enum type AppColor. The problem is i want to hide
the default BackColor and ForeColor properties from the controls
as well, leaving me with only the properties provided by my extender.
Can this be done? I've come across something called IFilterProperties,
but havn't been able to make it to work.

The result should be something like...

StyleProvider : IExtenderProvider
provides
AppColor BackColor
AppColor ForeColor
hides/removes/prevents serialization of
Color BackColor
Color ForeColor

Re: How to "remove" properties via an IExtenderProvider. joeycalisay
5/14/2005 3:04:09 AM
better change the added property names...
AddThis Social Bookmark Button