HtmlContentBuilder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An IHtmlContentBuilder implementation using an in memory list.
public ref class HtmlContentBuilder : Microsoft::AspNetCore::Html::IHtmlContentBuilder
public class HtmlContentBuilder : Microsoft.AspNetCore.Html.IHtmlContentBuilder
type HtmlContentBuilder = class
interface IHtmlContentBuilder
interface IHtmlContentContainer
interface IHtmlContent
type HtmlContentBuilder = class
interface IHtmlContent
interface IHtmlContentBuilder
interface IHtmlContentContainer
Public Class HtmlContentBuilder
Implements IHtmlContentBuilder
- Inheritance
-
HtmlContentBuilder
- Implements
Constructors
HtmlContentBuilder() |
Creates a new HtmlContentBuilder. |
HtmlContentBuilder(IList<Object>) |
Creates a new HtmlContentBuilder with the given list of entries. |
HtmlContentBuilder(Int32) |
Creates a new HtmlContentBuilder with the given initial capacity. |
Properties
Count |
Gets the number of elements in the HtmlContentBuilder. |
Methods
Append(String) |
Appends a String value. The value is treated as unencoded as-provided, and will be HTML encoded before writing to output. |
AppendHtml(IHtmlContent) |
Appends an IHtmlContent instance. |
AppendHtml(String) |
Appends an HTML encoded String value. The value is treated as HTML encoded as-provided, and no further encoding will be performed. |
Clear() |
Clears the content. |
CopyTo(IHtmlContentBuilder) |
Copies the contained content of this IHtmlContentContainer into |
MoveTo(IHtmlContentBuilder) |
Moves the contained content of this IHtmlContentContainer into After MoveTo(IHtmlContentBuilder) is called, this IHtmlContentContainer instance should be left in an empty state. |
WriteTo(TextWriter, HtmlEncoder) |
Writes the content by encoding it with the specified |
Extension Methods
AppendFormat(IHtmlContentBuilder, IFormatProvider, String, Object[]) |
Appends the specified |
AppendFormat(IHtmlContentBuilder, String, Object[]) |
Appends the specified |
AppendHtmlLine(IHtmlContentBuilder, String) |
Appends an NewLine after appending the String value. The value is treated as HTML encoded as-provided, and no further encoding will be performed. |
AppendLine(IHtmlContentBuilder, IHtmlContent) |
Appends an NewLine after appending the IHtmlContent value. |
AppendLine(IHtmlContentBuilder, String) |
Appends an NewLine after appending the String value. The value is treated as unencoded as-provided, and will be HTML encoded before writing to output. |
AppendLine(IHtmlContentBuilder) |
Appends an NewLine. |
SetContent(IHtmlContentBuilder, String) |
Sets the content to the String value. The value is treated as unencoded as-provided, and will be HTML encoded before writing to output. |
SetHtmlContent(IHtmlContentBuilder, IHtmlContent) |
Sets the content to the IHtmlContent value. |
SetHtmlContent(IHtmlContentBuilder, String) |
Sets the content to the String value. The value is treated as HTML encoded as-provided, and no further encoding will be performed. |