改变字母的颜色 [英] change letter's color

查看:135
本文介绍了改变字母的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个像``Hello''这样的字符串,我需要每个字母都有不同的颜色...我尝试了change font color命令,但这将整个字符串更改为一种颜色...有人知道怎么做吗? ?

Hi
i have a string like '' Hello '' and i need that every letter has a different color...i tried the change font color command but this changes the whole string to one color...does anyone know how to do it??

推荐答案

覆盖显示字符串的控件的OnPaint事件,然后自己绘制文本.
Override the OnPaint event of the control in which you are displaying the string and then draw the text on your own.


hi
ermm,请给我一个例子..

谢谢
hi
ermm can you give me some sort of an example please..?

thanks


这篇关于改变字母的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆