Пример #1
0
 /// <summary>
 /// Initializes a new instance of HtmlRenderer.
 /// </summary>
 public HtmlRenderer()
 {
     _contentRendererCollection = new ContentRendererCollection();
     _contentRendererCollection.AddRenderers(new List <IContentRenderer> {
         new ParagraphRenderer(_contentRendererCollection),
         new HyperlinkContentRenderer(_contentRendererCollection),
         new TextRenderer(),
         new HorizontalRulerContentRenderer(),
         new HeadingRenderer(_contentRendererCollection),
         new ListContentRenderer(_contentRendererCollection),
         new ListItemContentRenderer(_contentRendererCollection),
         new QuoteContentRenderer(_contentRendererCollection),
         new AssetRenderer(_contentRendererCollection),
         new NullContentRenderer()
     });
 }
Пример #2
0
 /// <summary>
 /// Initializes a new QuoteContentRenderer.
 /// </summary>
 /// <param name="rendererCollection">The collection of renderer to use for sub-content.</param>
 public QuoteContentRenderer(ContentRendererCollection rendererCollection)
 {
     _rendererCollection = rendererCollection;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new ListItemContentRenderer.
 /// </summary>
 /// <param name="rendererCollection">The collection of renderer to use for sub-content.</param>
 public ListItemContentRenderer(ContentRendererCollection rendererCollection)
 {
     _rendererCollection = rendererCollection;
 }
Пример #4
0
 /// <summary>
 /// Initializes a new HyperlinkContentRenderer.
 /// </summary>
 /// <param name="rendererCollection">The collection of renderer to use for sub-content.</param>
 public HyperlinkContentRenderer(ContentRendererCollection rendererCollection)
 {
     _rendererCollection = rendererCollection;
 }
Пример #5
0
 /// <summary>
 /// Initializes a new AssetRenderer.
 /// </summary>
 /// <param name="rendererCollection">The collection of renderer to use for sub-content.</param>
 public AssetRenderer(ContentRendererCollection rendererCollection)
 {
     _rendererCollection = rendererCollection;
 }
Пример #6
0
 /// <summary>
 /// Initializes a new HeadingRenderer.
 /// </summary>
 /// <param name="rendererCollection">The collection of renderer to use for sub-content.</param>
 public HeadingRenderer(ContentRendererCollection rendererCollection)
 {
     _rendererCollection = rendererCollection;
 }
Пример #7
0
 /// <summary>
 /// Initializes a new PragraphRenderer
 /// </summary>
 /// <param name="rendererCollection">The collection of renderer to use for sub-content.</param>
 public ParagraphRenderer(ContentRendererCollection rendererCollection)
 {
     _rendererCollection = rendererCollection;
 }