Ejemplo n.º 1
0
 public override void ToXml(System.Xml.XmlElement aNode)
 {
     base.ToXml(aNode);
     aNode.SetAttribute("readonly", FReadOnly.ToString());
     aNode.SetAttribute("border", HC.GetBorderSidePro(FBorderSides));
     aNode.SetAttribute("borderwidth", FBorderWidth.ToString());
     aNode.InnerText = FText;
 }
Ejemplo n.º 2
0
 public override void ToXml(System.Xml.XmlElement aNode)
 {
     base.ToXml(aNode);
     aNode.Attributes["readonly"].Value    = FReadOnly.ToString();
     aNode.Attributes["border"].Value      = HC.GetBorderSidePro(FBorderSides);
     aNode.Attributes["borderwidth"].Value = FBorderWidth.ToString();
     aNode.InnerText = FText;
 }
Ejemplo n.º 3
0
        public override void ToXml(System.Xml.XmlElement aNode)
        {
            base.ToXml(aNode);
            if (FReadOnly)
            {
                aNode.SetAttribute("readonly", "1");
            }

            if (FPrintOnlyText)
            {
                aNode.SetAttribute("printonlytext", "1");
            }

            aNode.SetAttribute("border", HC.GetBorderSidePro(FBorderSides));
            aNode.SetAttribute("borderwidth", FBorderWidth.ToString());
            aNode.InnerText = FText;
        }
Ejemplo n.º 4
0
        public void ToXml(XmlElement aNode)
        {
            aNode.Attributes["width"].Value   = FWidth.ToString();
            aNode.Attributes["height"].Value  = FHeight.ToString();
            aNode.Attributes["rowspan"].Value = FRowSpan.ToString();
            aNode.Attributes["colspan"].Value = FColSpan.ToString();
            aNode.Attributes["vert"].Value    = ((byte)FAlignVert).ToString();
            aNode.Attributes["bkcolor"].Value = HC.GetColorXmlRGB(FBackgroundColor);
            aNode.Attributes["border"].Value  = HC.GetBorderSidePro(FBorderSides);

            if (FCellData != null)  // 存数据
            {
                XmlElement vNode = aNode.OwnerDocument.CreateElement("items");
                FCellData.ToXml(vNode);
                aNode.AppendChild(vNode);
            }
        }
Ejemplo n.º 5
0
        public virtual void ToXml(XmlElement aNode)
        {
            aNode.SetAttribute("width", FWidth.ToString());
            aNode.SetAttribute("height", FHeight.ToString());
            aNode.SetAttribute("rowspan", FRowSpan.ToString());
            aNode.SetAttribute("colspan", FColSpan.ToString());
            aNode.SetAttribute("vert", ((byte)FAlignVert).ToString());
            aNode.SetAttribute("bkcolor", HC.HCColorToRGBString(FBackgroundColor));
            aNode.SetAttribute("border", HC.GetBorderSidePro(FBorderSides));

            if (FCellData != null)  // 存数据
            {
                XmlElement vNode = aNode.OwnerDocument.CreateElement("items");
                FCellData.ToXml(vNode);
                aNode.AppendChild(vNode);
            }
        }