Attributes of properties

J

Joey Callisay

I'm experimenting with the attributes.

I overrided the Dock property of my control and set a new
DescriptionAttribute. However I was surprised that it still has the
CategoryAttribute since it is still included in the Layout group, meaning it
still has its previous attributes?. Is this the real behavior, I don't seem
to get the big picture of attributes

[Description("Joey")]
public override DockStyle Dock
{
get
{
return base.Dock;
}
set
{
base.Dock = value;
}
}
 
J

Joey Callisay

Thanx a lot

Jakob Christensen said:
The design-time attributes are inherited. This link should answer your
question:

http://msdn.microsoft.com/library/d...de/html/cpconattributesdesign-timesupport.asp

Regards, Jakob.


Joey Callisay said:
I'm experimenting with the attributes.

I overrided the Dock property of my control and set a new
DescriptionAttribute. However I was surprised that it still has the
CategoryAttribute since it is still included in the Layout group, meaning it
still has its previous attributes?. Is this the real behavior, I don't seem
to get the big picture of attributes

[Description("Joey")]
public override DockStyle Dock
{
get
{
return base.Dock;
}
set
{
base.Dock = value;
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top