在多行文本框中可以有不同颜色的线吗? [英] Is it possible to have differently colored lines in multiline text box?

查看:110
本文介绍了在多行文本框中可以有不同颜色的线吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在多行文本框不同颜色的线?

Is it possible to have differently colored lines in multiline text box?

我将数据添加到文本框,我想澄清的用户不同类型的通过彩色文本。

I'm adding data to the text box and I want to clarify for the user different types of text by color.

如何做到这一点,如果它是可能的吗?

How to do this if it's possible?

推荐答案

如果您使用的是的RichTextBox 控件可以做到这一点。这里查看文档的(尤其是看说明和示例部分) 。该标准的文本框不提供此功能。

You can do this if you use a RichTextBox control. See the documentation here (particularly look at the Remarks and Examples sections). The standard TextBox does not offer this capability.

这篇关于在多行文本框中可以有不同颜色的线吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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