创建像MS WORD这样的编辑器 [英] create editor like MS WORD

查看:118
本文介绍了创建像MS WORD这样的编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想创建像Microsoft Word这样的编辑器!
我不是说高效而复杂!只是一个简单的!
那么我该如何模拟PAGES!?对于前.第1页,第2页,...以ms字为单位!我的意思是空白页!我们可以在页面中写文本,然后导入图片,并保存文件!例如
我应该使用至少包含这三个条件的控件? richtextbox(与页面一样多)! ..?
谢谢,抱歉我的英语不好.


i wanna create an editor like microsoft word!
i dont mean that efficient and complex! just a simple one!
so how can i simulate the PAGES !? for ex. page 1, page 2, ... in ms word! the blank pages i mean! that we can WRITE TEXT in the pages, and IMPORT PICTURES, and SAVE the file for example!
what control should i use that contains at least these three conditions? richtextbox (as many as the pages)!? ..?
thank you and sorry for my bad english.

推荐答案

由于您可能要同时显示一个页面,因此每个字段都不需要richtextbox页.您可以只将所有需要的页面信息存储在(您自己定义的)类Page的对象中(您的Document将是Page对象的集合,至少是数组),然后将当前页面内容加载到richtextbox.
Since you probably are going to show a page at time, you don''t need a richtextbox for each page. You may just store all the needed page info in a object of (your own defined) class Page (your Document would be a collection, at least an array, of Page objects) and load the current page content into the richtextbox.


这篇关于创建像MS WORD这样的编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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