Class DegradableText

Namespace
Pixie.Markup
Assembly
Pixie.dll

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

text string

The main string.

fallback Inline

The 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

text string

The main string.

fallback string

The 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

Inline

Methods

Lower()

Attempts to express this inline node in simpler semantic markup.

public override Inline Lower()

Returns

Inline