1using System.Threading.Tasks;
11 private readonly
int checkPosition;
12 private readonly
bool isChecked;
70 x.isChecked == this.isChecked &&
71 x.checkPosition == this.checkPosition &&
80 public override bool Equals(
object obj)
83 this.isChecked == x.isChecked &&
84 this.checkPosition == x.checkPosition &&
94 int h1 = base.GetHashCode();
95 int h2 = this.isChecked.GetHashCode();
97 h1 = ((h1 << 5) + h1) ^ h2;
98 h2 = this.checkPosition.GetHashCode();
100 h1 = ((h1 << 5) + h1) ^ h2;
Contains a markdown document. This markdown document class supports original markdown,...
Contains some basic statistical information about a Markdown document.
int NrTaskItems
Number of task items.
int NrListItems
Number of list items (total).
Abstract base class for block elements with one child.
Represents a task item in a task list.
override bool InlineSpanElement
If the element is an inline span element.
TaskItem(MarkdownDocument Document, bool IsChecked, int CheckPosition, MarkdownElement Child)
Represents a task item in a task list.
int CheckPosition
Position of the checkmark in the original markdown text document.
override void IncrementStatistics(MarkdownStatistics Statistics)
Increments the property or properties in Statistics corresponding to the element.
override Task Render(IRenderer Output)
Renders the element.
bool IsChecked
If the item is checked or not.
override bool SameMetaData(MarkdownElement E)
If the current object has same meta-data as E (but not necessarily same content).
override int GetHashCode()
Serves as the default hash function.
override bool Equals(object obj)
Determines whether the specified object is equal to the current object.
override MarkdownElementSingleChild Create(MarkdownElement Child, MarkdownDocument Document)
Creates an object of the same type, and meta-data, as the current object, but with content defined by...
Abstract base class for all markdown elements.
abstract bool InlineSpanElement
If the element is an inline span element.
MarkdownDocument Document
Markdown document.
Abstract base class for all markdown elements with one child element.
MarkdownElement Child
Child element.
Interface for Markdown renderers.