C#如何构建一个使用XML文件的文件编辑器? [英] C# how build a document\graphic editor that uses XML files?

查看:102
本文介绍了C#如何构建一个使用XML文件的文件编辑器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C#如何构建一个使用XML文件的文档编辑器。



我需要构建一个像富文本框一样的编辑器,我可以移动图像帧在网格周围和文本周围。它需要最终用户可以选择放置在网格上的预定义对象(文本框,图像框),并且能够重新调整它们的大小并使用自动捕捉到网格功能移动它们。该文件需要以英寸为单位。保存文档的文件类型必须是XML。



我不希望任何人为我创建代码。请指出我的方向。我知道如何创建富文本框以及保存和读取XML文件。我不知道如何获得一个带有网格和对齐的对象窗口,并且能够在其上放置可以移动和重新调整大小的对象。一旦我完成,我将使任何人想要它免费提供。也许有一些代码非常接近这个或已经可以做到这一点的应用程序。我没有找到足够接近的东西。如果有人需要更多细节或屏幕截图,请告诉我。



感谢您的帮助,

Donald

C# how build a document\graphic editor that uses XML files.

I need to build an editor like the rich text box that I can move image frames around and text around on a grid. It needs predefined objects (text box, image box) that an end user could select to place on a grid and be able to re-size them and move them with an auto snap to grid function. The document needs to be definable in inches. The file type on saving the document needs to be XML.

I am not expecting anyone to create the code for me. Just point me in a starting direction. I know how to create rich text boxes and also saving and reading XML files. I don't know how to get an object window with a grid plus snapping and being able to place objects on it that can be moved and re-sized. Once I am done I will make the source freely available to whoever wants it. Maybe there is some code out there very close to this or an app that can do this already. I have failed to find anything close enough. If anyone needs more details or screen shots let me know.

Thanks for your help,
Donald

推荐答案

我在这个网站上找到了一个SVG编辑器。

我认为它可以进行一些修改。

它在背景上创建矢量对象使用网格

并保存到SVG,我不知道是XML格式。

我可以读取对象名称X和Y位置值以及X和Y来自SVG文件的尺寸。

感谢关于图形编程的提示。

下一站我得到一本关于图形编程的书。
I found an SVG editor on this website.
I think it will work with some modifications.
It creates vector objects on a background with a Grid
and saves to SVG which I didn't know is in an XML format.
I can read the object names X and Y location values and X and Y dimensions from the SVG files.
Thanks for the tip about graphics programming.
Next stop I am getting a book on programming with graphics.


这篇关于C#如何构建一个使用XML文件的文件编辑器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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