从/到XML文件的GraphicsPath [英] GraphicsPath from/to XML file

查看:81
本文介绍了从/到XML文件的GraphicsPath的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不使用XML序列化的情况下将graphicsPath数据写入xml文件,通过读取XML文件来重建图形路径?

请在C#中提供代码.

How do I write graphicsPath data into a xml File, reconstructing graphics path by reading the XML file without using XMLserialization?

Please give the code in C#.

推荐答案

以编程方式读取或写入XML的最简单方法是 ^ ],但在C#1.0中不起作用.

查找XmlDocument类,并查看如何以这种方式读取和写入数据.这有点费力,但还算不错.
The easiest way to read or write XML programatically is LINQ to XML[^], but that won''t work in C#1.0.

Look up the XmlDocument class and see how data is read and written that way. It''s a bit laborious, but not too bad.


这篇关于从/到XML文件的GraphicsPath的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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