AlertBlockRenderer Class
A HTML renderer for a AlertBlock.
public class AlertBlockRenderer : HtmlObjectRenderer<AlertBlock>See also
- Inheritance
HtmlObjectRenderer<AlertBlock>AlertBlockRenderer
Constructors
| Name | Description |
|---|---|
| AlertBlockRenderer() | Creates a new instance of this renderer. |
AlertBlockRenderer()
AlertBlockRenderer.csCreates a new instance of this renderer.
public AlertBlockRenderer()Properties
| Name | Description |
|---|---|
| RenderKind | Gets of sets a delegate to render the kind of the alert. |
RenderKind
AlertBlockRenderer.csGets of sets a delegate to render the kind of the alert.
public Action<HtmlRenderer, StringSlice> RenderKind { get; set; }Property value
Methods
| Name | Description |
|---|---|
| DefaultRenderKind(HtmlRenderer, StringSlice) | Renders the kind of the alert. |
| Write(HtmlRenderer, AlertBlock) | Writes the alert block to the specified renderer. |
DefaultRenderKind(HtmlRenderer, StringSlice)
AlertBlockRenderer.csRenders the kind of the alert.
public static void DefaultRenderKind(HtmlRenderer renderer, StringSlice kind)Parameters
rendererHtmlRenderer- The HTML renderer.
kindStringSlice- The kind of the alert to render
Write(HtmlRenderer, AlertBlock)
AlertBlockRenderer.csWrites the alert block to the specified renderer.
protected override void Write(HtmlRenderer renderer, AlertBlock obj)Parameters
rendererHtmlRenderer- The renderer.
objAlertBlock- The alert block.