Example #1
0
        public static string Serialize(GraphicElement el)
        {
            ElementPropertyBag epb = new ElementPropertyBag();

            el.Serialize(epb);
            XmlSerializer xs = new XmlSerializer(typeof(ElementPropertyBag));
            StringBuilder sb = new StringBuilder();
            TextWriter    tw = new StringWriter(sb);

            xs.Serialize(tw, epb);

            return(sb.ToString());
        }