Esempio n. 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()
     });
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }