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
Divers
Thread ID:
01023484
Message ID:
01023497
Vues:
9
This message has been marked as the solution to the initial question of the thread.
Einar,

You need to provide a string as the second parameter for the DefaultValue attribute.
[Category("Appearance")]
[Description("Specifies the colour of the controls border.")]
[DefaultValue(typeof(System.Drawing.Color), "255, 0, 0")]
public Color BorderColor
{
   get { return _borderColor; }
   set
   {
      if (value != _borderColor)
      {
         _borderColor = value;
         base.Invalidate();
      }
   }
}
The example above specifies a default colour of Red.

Regards
Neil
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform