具有RichTextBox特殊字符的C#应用​​程序 [英] C# Application With RichTextBox Special Char

查看:236
本文介绍了具有RichTextBox特殊字符的C#应用​​程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在那个richbox中有一个richtextbox,显示了来自RTF文件的数学方程式

我可以在不使用RTF文件加载的情况下显示从Richtextbox到其他Richtext框的方程式

问候
Vijay.S

Hi,

i have one richtextbox in that richbox i displayed Maths Equations from RTF File

can i Show Equation from richtextbox to Other Richtext box without using RTF File Loading

Regards
Vijay.S

推荐答案

IIRC,您可以使用
IIRC you can use the RichTextBox.Text[^] property to get the text from the box. Then you can apply that to another text box.

The difficult part will be to transfer only parts of the text while maintaining all relevant formatting.


嘿,

不能完全理解您的目标,但是上述解决方案听起来很正确.

也许使用trim(或另一个字符串)方法来获取文本的一部分..

祝你好运
Hey there

Don''t completely understand your goal but the above solution sounds right.

Maybe use the trim( or another string) method to get parts of the text..

Good luck


你好,

希望以下代码对您有帮助

Hello,

Hope following code will help you

richTextBox1.LoadFile(@"C:\Users\VINOD\Downloads\sample.rtf", RichTextBoxStreamType.RichText);
richTextBox2.Rtf = richTextBox1.Rtf;



谢谢!!!!!!



Thanks!!!!!!


这篇关于具有RichTextBox特殊字符的C#应用​​程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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