public PQm(int x, int y, int width, int height, string name, Document document) : base(x, y, width, height, name, document) { for (int i = 0; i < this.Document.WCount; i++) { PRectangleTxy prt = new PRectangleQm(this.X + i * document.celWidht, this.Y, document.celWidht, this.Height, "", this.Document); this.ChildElements.Add(prt); } }
public override void FromXml(XmlElement element) { for (int i = 0; i < element.ChildNodes.Count; i++) { XmlElement child = (XmlElement)element.ChildNodes[i]; PRectangleQm qm = ((PRectangleQm)this.ChildElements[i]); qm.Content = child["content"].InnerText; qm.UserId = child["userid"].InnerText; } }