コード例 #1
0
            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();
            }
コード例 #2
0
ファイル: RdlcWrapper.cs プロジェクト: jakedw7/iAM
            public virtual void WriteTo(XmlWriter xmlWriter)
            {
                if (CItem.Width.HasValue)
                {
                    xmlWriter.WriteElementString("Width", CItem.Width.ToString());
                }
                if (CItem.Top.HasValue)
                {
                    xmlWriter.WriteElementString("Top", CItem.Top.ToString());
                }
                if (CItem.Left.HasValue)
                {
                    xmlWriter.WriteElementString("Left", CItem.Left.ToString());
                }
                if (CItem.Height.HasValue)
                {
                    xmlWriter.WriteElementString("Height", CItem.Height.ToString());
                }

                if (CItem.Style != null)
                {
                    RStyle rStyle = new RStyle(this, CItem.Style);
                    rStyle.WriteTo(xmlWriter);
                }
            }
コード例 #3
0
            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();
            }