且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

微软办公室字和窗体形式的应用程序

更新时间:2023-12-06 16:19:22

试试

基于Windows窗体的文本编辑器,带有HTML输出 [ ^ ]

带标尺的高级文本编辑器 [ ^ ]


是的,您可以创建一个简单的Windows窗体应用程序,它可以让您作为Word编辑器使用。由于您不使用Office API,而您只是想创建一个可以编辑文本和其他此类任务的新应用程序,因此您可能对Windows窗体中的RichTextBox对象感兴趣,因为它会让您包含一些像Word一样格式化文本。



http://msdn.microsoft.com/en-us/library/system.windows.forms.richtextbox%28v=vs.110%29.aspx [ ^ ]



如果你转到上面附上的文件,你会发现一些示例代码也会让你熟悉这个对象。
Yes, you can create a simple Windows Forms application that would let you work as a Word editor. Since you're not to use the Office API and you are just going to create a new application that would let you edit the text and other such tasks, you might be interested in RichTextBox object in Windows Form, because it would let you include some formatting to the text like Word too.

http://msdn.microsoft.com/en-us/library/system.windows.forms.richtextbox%28v=vs.110%29.aspx[^]

If you go to above attached document, you will find some example codes that would get you familiar with this object too.