RptToXml.RptDefinitionWriter.GetSections C# (CSharp) Method

GetSections() private method

private GetSections ( Area area, ReportDocument report, XmlWriter writer ) : void
area Area
report ReportDocument
writer System.Xml.XmlWriter
return void
        private void GetSections(Area area, ReportDocument report, XmlWriter writer)
        {
            writer.WriteStartElement("Sections");

            foreach (Section section in area.Sections)
            {
                writer.WriteStartElement("Section");

                writer.WriteAttributeString("Height", section.Height.ToString(CultureInfo.InvariantCulture));
                writer.WriteAttributeString("Kind", section.Kind.ToString());
                writer.WriteAttributeString("Name", section.Name);

                if ((ShowFormatTypes & FormatTypes.SectionFormat) == FormatTypes.SectionFormat)
                    GetSectionFormat(section, report, writer);

                GetReportObjects(section, report, writer);

                writer.WriteEndElement();
            }

            writer.WriteEndElement();
        }