Class DegradableText
A text node that can be degraded gracefully to a fallback if the original text cannot be rendered.
public sealed class DegradableText : Inline
- Inheritance
-
DegradableText
- Inherited Members
Constructors
DegradableText(string, Inline)
Creates a degradable text node from a main string and a fallback node.
public DegradableText(string text, Inline fallback)
Parameters
textstringThe main string.
fallbackInlineThe fallback node, which is rendered when the main string can't be rendered.
DegradableText(string, string)
Creates a degradable text node from a main string and a fallback string.
public DegradableText(string text, string fallback)
Parameters
textstringThe main string.
fallbackstringThe fallback string, which is rendered when the main string can't be rendered.
Properties
Contents
Gets the text this node consists of.
public string Contents { get; }
Property Value
- string
A text string.
Fallback
public Inline Fallback { get; }
Property Value
Methods
Lower()
Attempts to express this inline node in simpler semantic markup.
public override Inline Lower()