private static void WriteChildrenRows(this MamlWriter writer, Context context, IEnumerable <ChildEntry> childEntries, int level) { foreach (var childEntry in childEntries) { writer.StartTableRow(); writer.StartTableRowEntry(); writer.StartParagraph(); //writer.WriteHtmlIndent(level); writer.WriteName(childEntry, context.TopicManager, level); writer.EndParagraph(); writer.EndTableRowEntry(); writer.StartTableRowEntry(); writer.StartParagraph(); writer.WriteOccurrence(childEntry); writer.EndParagraph(); writer.EndTableRowEntry(); writer.StartTableRowEntry(); writer.StartParagraph(); writer.WriteDescription(childEntry, context); writer.EndParagraph(); writer.EndTableRowEntry(); writer.EndTableRow(); writer.WriteChildrenRows(context, childEntry.Children, level + 1); } }
public static void WriteChildrenTable(this MamlWriter writer, Context context, List <ChildEntry> childEntries) { if (childEntries == null || childEntries.Count == 0) { return; } SortAllAndChoiceChildren(childEntries); writer.StartTable(); writer.StartTableHeader(); writer.StartTableRow(); writer.WriteRowEntry("Name"); writer.WriteRowEntry("Occurrences"); writer.WriteRowEntry("Description"); writer.EndTableRow(); writer.EndTableHeader(); writer.WriteChildrenRows(context, childEntries, 0); writer.EndTable(); }