We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How to know range color

Hi there,

if i use a format string to apply color onto cell, and somehow in run time i want to know its color (i want to convert the color to web color e.g #ff0000).

how can i get the color value from range?

e.g

IRange r = worksheet.Range[1,1];
r.Number = 98765.432;
r.NumberFormat = "[Color 23] #,##0.00"; // Color 23 will be assign randomly

is there a way after this code. i can get the color from the range?

i tried

r.CellStyle.Color;

it doesn`t return the right color value.





1 Reply

JJ Jawahar Jeevanandan J Syncfusion Team June 30, 2011 02:17 PM UTC

Hi shrimpy,

Thank you very much for using the syncfusion products.

Currently we are not providing support for accessing range colors which have been set using number format. We will get back to you once the feature has been implemented in any of our upcoming releases.

Please let us know if you have any clarifications.

Thanks,
Jawahar.


Loader.
Live Chat Icon For mobile
Up arrow icon