MdFeature

Ecng.Markdown

A two-column section: one visual beside the text about it.

Inherits: MdBlock

Constructors

MdFeature
public MdFeature(IReadOnlyList<MdBlock> media, IReadOnlyList<MdBlock> text, bool isMediaRight, bool isAlt)
mdFeature = MdFeature(media, text, isMediaRight, isAlt)

A two-column section: one visual beside the text about it.

media
The visual half, empty when the section had none.
text
Everything else.
isMediaRight
Whether the visual belongs on the right.
isAlt
Whether the section is the tinted variant.

Properties

IsAlt
public bool IsAlt { get; }
value = mdFeature.IsAlt

Whether the section is the tinted variant.

IsMediaRight
public bool IsMediaRight { get; }
value = mdFeature.IsMediaRight

Whether the visual belongs on the right.

Media
public IReadOnlyList<MdBlock> Media { get; }
value = mdFeature.Media

The visual half, empty when the section had none.

Text
public IReadOnlyList<MdBlock> Text { get; }
value = mdFeature.Text

Everything else.