Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DefaultValue for Color property
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
DefaultValue for Color property
Divers
Thread ID:
01023484
Message ID:
01023484
Vues:
64
I am having some problems assigning a DefaultValue to my Color property. This code compiles, but I get an error when I try to reset the LightBrush property in the property sheet.
private System.Drawing.Color _LightBrush;
[
Category("Appearance"),
Description("basically the color of the LED segments"),
DefaultValue(typeof(System.Drawing.Color))
]
public System.Drawing.Color LightBrush
{
	get{return _LightBrush;}
	set{_LightBrush = value;}
}
I noticed that DefaultValue() has an overload that takes two arguments, but I am having trouble with the syntax.
Any help would be appreciated.

Thanks,
Einar
Semper ubi sub ubi.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform