开发者

Which is the equivalent of the StringToColor function for a TAlphaColor?

开发者 https://www.devze.com 2023-04-08 03:43 出处:网络
I\'m looking for the equivalent to the Graphics.StringToColor funct开发者_StackOverflow社区ion to convert

I'm looking for the equivalent to the Graphics.StringToColor funct开发者_StackOverflow社区ion to convert a string to an TAlphaColor (Color type used by Firemonkey). I searched in the online Rad Studio help as well as in the related firemokey units without luck :(. I can write easily a function to convert these values but I prefear use a RTL function. Anybody knows if exist any function to convert a String to a TAlphaColor in delphi-xe2?


Yes exist such function and is called StringToAlphaColor and is declarated in the System.UIConsts unit.

function StringToAlphaColor(const Value: string): TAlphaColor;
0

精彩评论

暂无评论...
验证码 换一张
取 消