public override void WriteTo(XmlWriter xmlWriter) { xmlWriter.WriteStartElement("Textbox"); { xmlWriter.WriteAttributeString("Name", Name); xmlWriter.WriteElementString("rd:DefaultName", rdDefaultName); if (TextBox.Action != null) { RAction rAction = new RAction(TextBox.Action); rAction.WriteTo(xmlWriter); } xmlWriter.WriteElementString("ZIndex", ZIndex.ToString()); //base.Write(xmlWriter); RStyle rStyle = new RStyle(this, Item.Style); rStyle.WriteTo(xmlWriter); xmlWriter.WriteElementString("CanGrow", RdlcWrapper.RdlcValueConverter.GetBoolean(TextBox.CanGrow)); //xmlWriter.WriteElementString("HideDuplicates", RdlcWrapper.RdlcValueConverter.GetBoolean(TextBox.HideDuplicates)); xmlWriter.WriteElementString("Value", TextBox.Value); } xmlWriter.WriteEndElement(); }
public override void WriteTo(XmlWriter xmlWriter) { xmlWriter.WriteStartElement("Image"); { xmlWriter.WriteAttributeString("Name", Name); if (!IsTableOrMatrixSubItem) { xmlWriter.WriteElementString("Top", Item.Top.ToString()); xmlWriter.WriteElementString("Width", Item.Width.ToString()); } if (!IsTableOrMatrixSubItem) { xmlWriter.WriteElementString("Left", Item.Left.ToString()); xmlWriter.WriteElementString("Height", Item.Height.ToString()); } if (ImageBox.Action != null) { RAction rAction = new RAction(ImageBox.Action); rAction.WriteTo(xmlWriter); } //Style //base.Write(xmlWriter); RStyle rStyle = new RStyle(this, Item.Style); rStyle.WriteTo(xmlWriter); xmlWriter.WriteElementString("ZIndex", ZIndex.ToString()); RBaseImage rBaseImage = new RBaseImage(ImageBox.Image); rBaseImage.WriteTo(xmlWriter); } xmlWriter.WriteEndElement(); }