IBlock Interface

Base interface for a block structure. Either a LeafBlock or a ContainerBlock.

public interface IBlock : IMarkdownObject
Implements

Properties

NameDescription
ColumnGets or sets the text column this instance was declared (zero-based).
IsBreakableGets or sets a value indicating whether this block is breakable. Default is true.
IsOpenGets or sets a value indicating whether this instance is still open.
LineGets or sets the text line this instance was declared (zero-based).
ParentGets the parent of this container. May be null.
ParserGets the parser associated to this instance.
RemoveAfterProcessInlinesGets or sets a value indicating whether this block must be removed from its container after inlines have been processed.
TriviaAfterTrivia occurring after this block
TriviaBeforeTrivia occurring before this block

Column

Gets or sets the text column this instance was declared (zero-based).

int Column { get; set; }

Property value

int

IsBreakable

Gets or sets a value indicating whether this block is breakable. Default is true.

bool IsBreakable { get; set; }

Property value

bool

IsOpen

Gets or sets a value indicating whether this instance is still open.

bool IsOpen { get; set; }

Property value

bool

Line

Gets or sets the text line this instance was declared (zero-based).

int Line { get; set; }

Property value

int

Parent

Gets the parent of this container. May be null.

ContainerBlock? Parent { get; }

Property value

ContainerBlock?

Parser

Gets the parser associated to this instance.

BlockParser? Parser { get; }

Property value

BlockParser?

RemoveAfterProcessInlines

Gets or sets a value indicating whether this block must be removed from its container after inlines have been processed.

bool RemoveAfterProcessInlines { get; set; }

Property value

bool

TriviaAfter

Trivia occurring after this block

StringSlice TriviaAfter { get; set; }

Property value

StringSlice

TriviaBefore

Trivia occurring before this block

StringSlice TriviaBefore { get; set; }

Property value

StringSlice

Events

NameDescription
ProcessInlinesBeginOccurs when the process of inlines begin.
ProcessInlinesEndOccurs when the process of inlines ends for this instance.

ProcessInlinesBegin

Occurs when the process of inlines begin.

event ProcessInlineDelegate? ProcessInlinesBegin

ProcessInlinesEnd

Occurs when the process of inlines ends for this instance.

event ProcessInlineDelegate? ProcessInlinesEnd