简体   繁体   English

可编辑的Rich文本框

[英]Editable Rich text box

Please Do any one know a free rich text box in C# like the one used in Microsoft Encarta, such that when i write x^2 it makes the 2 up the x with smaller font (like sup in HTML). 请让任何人都知道C#中的免费富文本框(如Microsoft Encarta中使用的文本框),以便当我编写x ^ 2时,它将用较小的字体(如HTML中的sup)将2组成x。 Thanks very much 非常感谢

The possibility to make text superscript or subscript is built-in in the richtextbox: see this msdn article . Richtextbox中内置了使文本成为上标或下标的可能性:请参阅此msdn文章

Of course the base richtextbox does not do it "automatically", but you might try replacing text as the user types... 当然,基本的richtextbox不会“自动”执行此操作,但是您可以尝试在用户键入内容时替换文本...

EDIT : If I understand correctly, you don't need just subscript and superscript capabilities, but a full equation editor . 编辑 :如果我正确理解,您不仅需要下标和上标功能,还需要完整的方程式编辑器 I don't have any direct experience with something like that, but just googling for ".net equation editor" yields some interesting results, like this equation editor in C# . 我没有任何类似的直接经验,但是使用谷歌搜索“ .net公式编辑器”会产生一些有趣的结果,例如C#中的公式编辑器 Give it a try... I'm afraid that it won't be easy to find something that 1) does exactly what you need 2) is easy to use and 3) is free, but I wish you all the best luck :) 试试看...恐怕很难找到1)完全满足您的需求2)易于使用且3)免费的东西,但我祝您一切顺利: )

I don't know encarta do. 我不知道encarta。 But if you want some components for edit html try find: 但是,如果您想要编辑html的某些组件,请尝试查找:

http://www.fckeditor.net/ http://www.fckeditor.net/

http://devexpress.com/Products/NET/Controls/WinForms/Editors/ (serach for a new editor control, can edit html) http://devexpress.com/Products/NET/Controls/WinForms/Editors/ (搜索新的编辑器控件,可以编辑html)

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

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