Markup

Class

For examples and usage details, see the component documentation.

View Markup Component
Namespace: RazorConsole.Components
Assembly: RazorConsole.Core

Definition

public class Markup : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Constructors

1
NameTypeDescription
Markup()Constructor

Properties

5
NameTypeDescription
Appearance
BackgroundColorBackground color. Default is Plain background.
ForegroundColorForeground (text) color. Default is Plain foreground.
Common
ContentStringText content to render. Content is automatically escaped to prevent markup interpretation.
Other
DecorationDecorationText decoration (bold, italic, underline, etc.). Default is None. Combine decorations with bitwise OR.
linkStringOptional hyperlink URL. When specified, text renders as a clickable link in supported terminals.

Methods

1
NameTypeDescription
BuildRenderTree(RenderTreeBuilder)()Method