如何在多行文本框中加粗特定的文本行? [英] How to Bold a particular line of Text in multiline Textbox ?
本文介绍了如何在多行文本框中加粗特定的文本行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我喜欢使用VS2010。我在rdlc中有多行textBox。虽然我希望在rdlc报告中加粗特定行,但我不知道这样做。
假设我有一个包含以下值的多行文本框
Hi Iam using VS2010 .I have multiline textBox in rdlc. While I wish to Bold a particular line in rdlc report I have no idea to do that.
Suppose I have a single multiline textBox containing the below values
=First(Fields!sub_total.Value, "DataSet1") & vbcrlf &
First(Fields!cess.Value, "DataSet1") & vbcrlf &
First(Fields!round_off.Value, "DataSet1") & vbcrlf &
First(Fields!net_total.Value, "DataSet1")
从以上数值来看,我只想在下面的字段加粗。
From the above values, I wish to bold the below field only.
First(Fields!cess.Value, "DataSet1")
是否可以在多行文本框中加粗特定字段?
谢谢
Is it possible to bold a particular field in multiline textbox?
Thanks
推荐答案
检查以下答案
如何制作文本框字体使用rdlc中的表达式进行动态扩展 [ ^ ]
No。 文本框包含不动产。它统治整个文本框。
如果您还需要更多内容,请选择 RichTextBox 或 web浏览器。它们分别接受富文本或html格式的输入。
No. Textbox sports a Font property. It rules the whole text box.
If you want anything more, go for either RichTextBox or WebBrowser. They accept formatted inputs in rich text or html, respectively.
这篇关于如何在多行文本框中加粗特定的文本行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文