如何在字符串上设置颜色 [英] How to set color on string

查看:76
本文介绍了如何在字符串上设置颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能在字符串上设置颜色?



How could i set color on a string?

string text = " " + "==" + " " + "Mytext:" + " " + sub + " " + "My text" + " " + siteColName + " ";

推荐答案

这已在您的其他帖子中得到解答不能在列表框中设置标签的颜色为什么? [ ^ ]



请不要重新发布相同的问题 - 如果需要,您可以使用改善问题链接为帖子添加详细信息。如果看不到该链接,只需将鼠标悬停在帖子的右下角
This has been answered on your other post cant set color of label in listbox why?[^]

Please don't repost the same question - you can use the "Improve Question" link to add details to your post if required. If that link is not visible just hover your mouse over the bottom right corner of your post


这篇关于如何在字符串上设置颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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