Sisk

Class

RenderableText

Namespace
TinyComponents
Assembly
TinyComponents.dll

Represents an simple renderable text.

C#
public sealed class RenderableText

Inheritance #

object ← RenderableText

Inherited Members #

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors #

NameDescription
RenderableText(object?)Creates an new instance of RenderableText with the specified text contents from the object, encoding it as an HTML entity.
RenderableText(object?, bool)Creates an new instance of RenderableText with the specified text contents from the object.

Properties #

NameDescription
ContentsGets or sets the contents which this text will render.
EscapeGets or sets whether this text should be XML/HTML encoded or not.

Methods #

NameDescription
Raw(object?)Creates an new instance of RenderableText with the provided raw, unencoded text.
SafeRenderSubject(object?)Renders the specified object into an safe HTML content.
ToString()Renders this RenderableText into an string.

Type to search the documentation and the API reference.