MdStyledText

Ecng.Markdown

Text carrying the author's own styling, from the :[text]{color=...} directive.

继承自: MdInline

构造函数

MdStyledText
public MdStyledText(string text, string color, string fontSize, string fontFamily)
mdStyledText = MdStyledText(text, color, fontSize, fontFamily)

Text carrying the author's own styling, from the :[text]{color=...} directive.

text
Text content.
color
Colour as the author wrote it, empty when not set.
fontSize
Font size as the author wrote it, empty when not set.
fontFamily
Font family as the author wrote it, empty when not set.

属性

Color
public string Color { get; }
value = mdStyledText.Color

Colour as the author wrote it.

FontFamily
public string FontFamily { get; }
value = mdStyledText.FontFamily

Font family as the author wrote it.

FontSize
public string FontSize { get; }
value = mdStyledText.FontSize

Font size as the author wrote it.

Text
public string Text { get; }
value = mdStyledText.Text

Text content.