Ejemplo n.º 1
0
 public void ToXml(XmlElement aNode)
 {
     aNode.SetAttribute("size", string.Format("{0:0.#}", FSize));
     aNode.SetAttribute("color", HC.HCColorToRGBString(FColor));
     aNode.SetAttribute("bkcolor", HC.HCColorToRGBString(FBackColor));
     aNode.SetAttribute("style", GetFontStyleXML());
     aNode.InnerText = FFamily;
 }
Ejemplo n.º 2
0
        public void ToXml(XmlElement aNode)
        {
            aNode.SetAttribute("firstindent", FFirstIndent.ToString());
            aNode.SetAttribute("leftindent", FLeftIndent.ToString());
            aNode.SetAttribute("rightindent", FRightIndent.ToString());
            aNode.SetAttribute("bkcolor", HC.HCColorToRGBString(FBackColor));
            if (FBreakRough)
            {
                aNode.SetAttribute("breakrough", "1");
            }

            aNode.SetAttribute("spacemode", GetLineSpaceModeXML_());
            aNode.SetAttribute("horz", GetHorzXML_());
            aNode.SetAttribute("vert", GetVertXML_());
        }
Ejemplo n.º 3
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);
            }
        }
Ejemplo n.º 4
0
 public virtual void ToXml(XmlElement aNode)
 {
     aNode.SetAttribute("style", ((byte)FStyle).ToString());
     aNode.SetAttribute("ver", FVersion.ToString());
     aNode.SetAttribute("color", HC.HCColorToRGBString(FColor));
 }