コード例 #1
0
ファイル: DocumentInfo.cs プロジェクト: themnotyou/pablodraw
        public virtual void WriteXml(XmlElement element)
        {
            if (!AutoScroll)
            {
                element.SetAttribute("autoscroll", AutoScroll);
            }
            XmlElement formatsElement = element.OwnerDocument.CreateElement("formats");

            formats.WriteXml(formatsElement);
            element.AppendChild(formatsElement);
            XmlElement zoomInfoElement = element.OwnerDocument.CreateElement("zoomInfo");

            zoomInfo.WriteXml(zoomInfoElement);
            element.AppendChild(zoomInfoElement);
        }
コード例 #2
0
ファイル: DocumentInfo.cs プロジェクト: DavStas/pablodraw
        public virtual void WriteXml(XmlElement element)
        {
            if (!AutoScroll)
            {
                element.SetAttribute("autoscroll", AutoScroll);
            }
            XmlElement formatsElement = element.OwnerDocument.CreateElement("formats");

            formats.WriteXml(formatsElement);
            element.AppendChild(formatsElement);
            XmlElement zoomInfoElement = element.OwnerDocument.CreateElement("zoomInfo");

            zoomInfo.WriteXml(zoomInfoElement);
            element.AppendChild(zoomInfoElement);
            XmlElement previewZoomInfoElement = element.OwnerDocument.CreateElement("previewZoomInfo");

            previewZoomInfo.WriteXml(previewZoomInfoElement);
            element.AppendChild(previewZoomInfoElement);

            // TODO - Add: previewVisibleRip
            // TODO - Add: previewVisibleTextModeNonEdit
        }