Пример #1
0
 // Token: 0x06006513 RID: 25875 RVA: 0x001C5EAC File Offset: 0x001C40AC
 private static void DumpParagraphResults(XmlTextWriter writer, string tagName, ReadOnlyCollection <ParagraphResult> paragraphs, Visual visualParent)
 {
     if (paragraphs != null)
     {
         writer.WriteStartElement(tagName);
         writer.WriteAttributeString("Count", paragraphs.Count.ToString(CultureInfo.InvariantCulture));
         for (int i = 0; i < paragraphs.Count; i++)
         {
             ParagraphResult paragraphResult = paragraphs[i];
             if (paragraphResult is TextParagraphResult)
             {
                 LayoutDump.DumpTextParagraphResult(writer, (TextParagraphResult)paragraphResult, visualParent);
             }
             else if (paragraphResult is ContainerParagraphResult)
             {
                 LayoutDump.DumpContainerParagraphResult(writer, (ContainerParagraphResult)paragraphResult, visualParent);
             }
             else if (paragraphResult is TableParagraphResult)
             {
                 LayoutDump.DumpTableParagraphResult(writer, (TableParagraphResult)paragraphResult, visualParent);
             }
             else if (paragraphResult is FloaterParagraphResult)
             {
                 LayoutDump.DumpFloaterParagraphResult(writer, (FloaterParagraphResult)paragraphResult, visualParent);
             }
             else if (paragraphResult is UIElementParagraphResult)
             {
                 LayoutDump.DumpUIElementParagraphResult(writer, (UIElementParagraphResult)paragraphResult, visualParent);
             }
             else if (paragraphResult is FigureParagraphResult)
             {
                 LayoutDump.DumpFigureParagraphResult(writer, (FigureParagraphResult)paragraphResult, visualParent);
             }
             else if (paragraphResult is SubpageParagraphResult)
             {
                 LayoutDump.DumpSubpageParagraphResult(writer, (SubpageParagraphResult)paragraphResult, visualParent);
             }
         }
         writer.WriteEndElement();
     }
 }