Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DefaultValue for Color property
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01023484
Message ID:
01023497
Views:
8
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform