c# - Setting Excel Cell Colours using RGB Values -
i'm trying set excel cells using rgb values rather way need set cells specific colour rather set standard colour.
this how it:
chartrange.interior.color = microsoft.office.interop.excel.xlrgbcolor.rgbred;
is possible set colour in rgb values in c#?
i working excel sheets have had colours set rgb values in vba.
you can able assign system.drawing.color
using fromargb
below:
chartrange.interior.color = system.drawing.color.fromargb(255, 0, 0);
Comments
Post a Comment