当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - changing format of RichTextBox without selecting any text

问题描述:

I would like to create a Richtextbox which load a huge file (several pages of text in some format) and based on format it formats the text (let's say it display html).

I found how to change format of text using selection, but that is very slow and resource expensive. Is there a way to append a preformatted text to Rich Text Box? So that I can format each element and then append it.

网友答案:

This might help you if not the answer you are looking for

But RichTextBox.CanPaste Method determines whether you can paste information from the Clipboard in the specified data format. Please see link the for the System.Windows.Forms.DataFormats it will support

分享给朋友:
您可能感兴趣的文章:
随机阅读: