Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Insert.cs
1using System.Collections.Generic;
2using System.Threading.Tasks;
4
6{
11 {
17 public Insert(MarkdownDocument Document, IEnumerable<MarkdownElement> ChildElements)
18 : base(Document, ChildElements)
19 {
20 }
21
26 public override Task Render(IRenderer Output) => Output.Render(this);
27
31 public override bool InlineSpanElement => true;
32
40 public override MarkdownElementChildren Create(IEnumerable<MarkdownElement> Children, MarkdownDocument Document)
41 {
42 return new Insert(Document, Children);
43 }
44
49 public override void IncrementStatistics(MarkdownStatistics Statistics)
50 {
51 Statistics.NrInsert++;
52 }
53
54 }
55}
Contains a markdown document. This markdown document class supports original markdown,...
Contains some basic statistical information about a Markdown document.
int NrInsert
Number of insert (span+block).
Abstract base class for all markdown elements with a variable number of child elements.
override IEnumerable< MarkdownElement > Children
Any children of the element.
MarkdownDocument Document
Markdown document.
override MarkdownElementChildren Create(IEnumerable< MarkdownElement > Children, MarkdownDocument Document)
Creates an object of the same type, and meta-data, as the current object, but with content defined by...
Definition: Insert.cs:40
override Task Render(IRenderer Output)
Renders the element.
Insert(MarkdownDocument Document, IEnumerable< MarkdownElement > ChildElements)
Inserted text
Definition: Insert.cs:17
override void IncrementStatistics(MarkdownStatistics Statistics)
Increments the property or properties in Statistics corresponding to the element.
Definition: Insert.cs:49
override bool InlineSpanElement
If the element is an inline span element.
Definition: Insert.cs:31
Interface for Markdown renderers.
Definition: IRenderer.cs:12