Home Unanswered Active Tags New Question

DurationBarColor

Hi,

I would like to know if it could be possible to have other colors than "red","green","yellow", etc for the DurationBarColor property.

I would like, for example, to have "#FFD294" as a color, or Color.Coral from .net library.

Is it possible ? How ?

Thanks,
Max
Asked by Anonymous 4 years ago.
Replies
Hi,

sorry, e.DurationBarColor = Color.Coral.Name or e.DurationBarColor = "#FFD294" work fine.

...small bug in the code...

Max
Comment posted by Anonymous 4 years ago.
Rather than:
e.DurationBarColor = Color.Coral.Name;
I recommend:
e.DurationBarColor = System.Drawing.ColorTranslator.ToHtml(Color.Colar);

Comment posted by Dan Letecky 4 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java