public void ToXml(XmlElement aNode) { aNode.SetAttribute("size", string.Format("{0:0.#}", FSize)); aNode.SetAttribute("color", HC.GetColorXmlRGB(FColor)); aNode.SetAttribute("bkcolor", HC.GetColorXmlRGB(FBackColor)); aNode.SetAttribute("style", GetFontStyleXML()); aNode.InnerText = FFamily; }
public void ToXml(XmlElement aNode) { aNode.Attributes["size"].Value = string.Format("{0:0.#}", FSize); aNode.Attributes["color"].Value = HC.GetColorXmlRGB(FColor); aNode.Attributes["bkcolor"].Value = HC.GetColorXmlRGB(FBackColor); aNode.Attributes["style"].Value = GetFontStyleXML(); aNode.InnerText = FFamily; }
public void ToXml(XmlElement aNode) { aNode.Attributes["firstindent"].Value = FFirstIndent.ToString(); aNode.Attributes["leftindent"].Value = FLeftIndent.ToString(); aNode.Attributes["rightindent"].Value = FRightIndent.ToString(); aNode.Attributes["bkcolor"].Value = HC.GetColorXmlRGB(FBackColor); aNode.Attributes["spacemode"].Value = GetLineSpaceModeXML_(); aNode.Attributes["horz"].Value = GetHorzXML_(); aNode.Attributes["vert"].Value = GetVertXML_(); }
public void ToXml(XmlElement aNode) { aNode.SetAttribute("firstindent", FFirstIndent.ToString()); aNode.SetAttribute("leftindent", FLeftIndent.ToString()); aNode.SetAttribute("rightindent", FRightIndent.ToString()); aNode.SetAttribute("bkcolor", HC.GetColorXmlRGB(FBackColor)); aNode.SetAttribute("spacemode", GetLineSpaceModeXML_()); aNode.SetAttribute("horz", GetHorzXML_()); aNode.SetAttribute("vert", GetVertXML_()); }
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); } }
public 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.GetColorXmlRGB(FBackgroundColor)); aNode.SetAttribute("border", HC.GetBorderSidePro(FBorderSides)); if (FCellData != null) // 存数据 { XmlElement vNode = aNode.OwnerDocument.CreateElement("items"); FCellData.ToXml(vNode); aNode.AppendChild(vNode); } }
public virtual void ToXml(XmlElement aNode) { aNode.SetAttribute("style", ((byte)FStyle).ToString()); aNode.SetAttribute("ver", FVersion.ToString()); aNode.SetAttribute("color", HC.GetColorXmlRGB(FColor)); }