Class
RenderableText
Represents an simple renderable text.
public sealed class RenderableTextInheritance #
Inherited Members #
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors #
| Name | Description |
|---|---|
| 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 #
| Name | Description |
|---|---|
| Contents | Gets or sets the contents which this text will render. |
| Escape | Gets or sets whether this text should be XML/HTML encoded or not. |
Methods #
| Name | Description |
|---|---|
| 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. |