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; }
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; }
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; }
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 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); } }