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; }
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_()); }
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); } }
public virtual void ToXml(XmlElement aNode) { aNode.SetAttribute("style", ((byte)FStyle).ToString()); aNode.SetAttribute("ver", FVersion.ToString()); aNode.SetAttribute("color", HC.HCColorToRGBString(FColor)); }