Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1833
Colour from text representation
posted

I've a colorPicker control in my grid. The issue comes when I try to use the value of the column. I want to use it with document reporting to set colours on a report. Issue is that I can't find a way to create an instance of Infragistics.Documents.Graphics.Color from the saved value.
The value of the colour may either be RGB value or text! Ideally I would override to always save the RGB value not the text representation. Is there a way to do this? I don't care if it displays text representations to the user.

It seems quite ridiculous that the value of ColorPicker control cannot be used to create an instance of Infragistics.Documents.Graphics.Color directly.

All I want to do is the following : -

headerCustomBackground = New Infragistics.Documents.Report.Background(New Infragistics.Documents.Graphics.Color([my colour picker value]))