public override DependencyObject Visit(Documentation.Section section)
        {
            var result = new System.Windows.Documents.Section();
            var scale  = _headingScales[Math.Min(HeadingLevel, _headingScales.Length - 1)];

            result.Blocks.Add(new System.Windows.Documents.Paragraph(new Run(section.Header)
            {
                FontSize = scale * BaseFontSize
            }));
            try
            {
                HeadingLevel++;
                result.Blocks.AddRange(GetBlocks(section.Children.Select(e => e.Visit(this))));
                return(result);
            }
            finally
            {
                HeadingLevel--;
            }
        }
Beispiel #2
0
 public abstract DependencyObject Visit(Documentation.Section section);
 public override DependencyObject Visit(Documentation.Section section)
 {
     throw new NotImplementedException();
 }