RgbColor from String value

RgbColor from String value

Forum member · Aug 2, 2009
I want to generate a RgbColor object from a String like "Red" which signifies a Red Color. Is there any way to Convert this string to a RgbColor object.

Re: RgbColor from String value

Support · Aug 3, 2009
Hello, It is not possible to convert a string into a color object. However you can do this by checking the string you have and create the color according to it. Ex: If the string equals to "Red" then use the Red color form RdgColor class (RgbColor.Red). Thanks, ceTe Software Support Team.