コード例 #1
0
        public override void WriteXml(System.Xml.XmlWriter writer)
        {
            // write the header
            writeHeaderAndCommonProperties(writer);
            // write the grid properties
            XmlReadWrite.writeColor(writer, "GridColor", GridColor);
            writer.WriteElementString("GridThickness", GridThickness.ToString(System.Globalization.CultureInfo.InvariantCulture));
            XmlReadWrite.writeColor(writer, "SubGridColor", SubGridColor);
            writer.WriteElementString("SubGridThickness", SubGridThickness.ToString(System.Globalization.CultureInfo.InvariantCulture));
            writer.WriteElementString("GridSizeInStud", mGridSizeInStud.ToString());
            writer.WriteElementString("SubDivisionNumber", mSubDivisionNumber.ToString());
            writer.WriteElementString("DisplayGrid", mDisplayGrid.ToString().ToLower());
            writer.WriteElementString("DisplaySubGrid", mDisplaySubGrid.ToString().ToLower());
            writer.WriteElementString("DisplayCellIndex", mDisplayCellIndex.ToString().ToLower());
            XmlReadWrite.writeFont(writer, "CellIndexFont", mCellIndexFont);
            XmlReadWrite.writeColor(writer, "CellIndexColor", CellIndexColor);
            writer.WriteElementString("CellIndexColumnType", ((int)mCellIndexColumnType).ToString());
            writer.WriteElementString("CellIndexRowType", ((int)mCellIndexRowType).ToString());
            XmlReadWrite.writePoint(writer, "CellIndexCorner", mCellIndexCorner);
            // write the footer
            writeFooter(writer);             // end of layer

            // step the progress bar for the grid
            MainForm.Instance.stepProgressBar();
        }
コード例 #2
0
 public override void WriteXml(System.Xml.XmlWriter writer)
 {
     writer.WriteStartElement("TextCell");
     base.WriteXml(writer);
     writer.WriteElementString("Text", mText);
     writer.WriteElementString("Orientation", mOrientation.ToString(System.Globalization.CultureInfo.InvariantCulture));
     XmlReadWrite.writeColor(writer, "FontColor", FontColor);
     XmlReadWrite.writeFont(writer, "Font", mTextFont);
     writer.WriteElementString("TextAlignment", TextAlignment.ToString());
     writer.WriteEndElement();                 // end of TextCell
 }