简体   繁体   English

同一条语句中的一些粗体和一些简单的词

[英]Some bold and some simple word within the same statement

我想在同一句子中显示一些粗体和一些简单的单词,如果我使用文本框,那么每个单词都将是简单的,而不是一些粗体和一些简单的,所以我想要一个控件的text属性,因为我可以编写一些粗体和一些简单的单词同一陈述中的词

听起来像RichTextBox是您要找的东西。

您应该使用RTF文本框,阅读本文

I had need like in one control I want to show the content with some bold and some simple font and some colorful so for that I have used webbrowser on that window form and I could satisfy my every requirement with the webbrowser control .Because we can set***html*** content to the webbrowser's DocumentText property.And in html content we can make font bold,simple as well as colorful with same sentense. 我需要像在一个控件中一样想要用一些粗体,一些简单的字体和一些彩色来显示内容,因此我已经在该窗口窗体上使用了webbrowser ,并且我可以用webbrowser控件满足我的所有要求。因为我们可以设置*** html ***内容到webbrowser的DocumentText属性。在html内容中,我们可以使字体粗体,简单而又具有相同感官的彩色。

We can use richtextbox also. 我们也可以使用richtextbox。

Is this for Web or Desktop? 这是用于Web还是台式机? With desktop you want to use the RichTextControl on the web I am not sure you can do it in a textbox, but you can use HTML and the label control to produce the same effect. 对于台式机,您不确定是否可以在文本框中使用RichTextControl ,但可以使用HTML和标签控件来产生相同的效果。 Not sure about WPF I have never used that. 不确定WPF我从未使用过。

Hai harikrishna, Hai harikrishna,
you can use javascript text editors or jquery.. A list of jquery and non-jquery editors can be found in this link http://www.queness.com/post/212/10-jquery-and-non-jquery-javascript-rich-text-editors 您可以使用javascript文本编辑器或jquery。。可以在此链接中找到jquery和非jquery编辑器的列表http://www.queness.com/post/212/10-jquery-and-non-jquery-javascript丰富的文本编辑器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM