Share via


IHtmlContentBuilder Interface

Definition

A builder for HTML content.

public interface class IHtmlContentBuilder : Microsoft::AspNetCore::Html::IHtmlContentContainer
public interface IHtmlContentBuilder : Microsoft.AspNetCore.Html.IHtmlContentContainer
type IHtmlContentBuilder = interface
    interface IHtmlContentContainer
    interface IHtmlContent
type IHtmlContentBuilder = interface
    interface IHtmlContent
    interface IHtmlContentContainer
Public Interface IHtmlContentBuilder
Implements IHtmlContentContainer
Derived
Implements

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 builder.

(Inherited from IHtmlContentContainer)
MoveTo(IHtmlContentBuilder)

Moves the contained content of this IHtmlContentContainer into builder.

After MoveTo(IHtmlContentBuilder) is called, this IHtmlContentContainer instance should be left in an empty state.

(Inherited from IHtmlContentContainer)
WriteTo(TextWriter, HtmlEncoder)

Writes the content by encoding it with the specified encoder to the specified writer.

(Inherited from IHtmlContent)

Extension Methods

AppendFormat(IHtmlContentBuilder, IFormatProvider, String, Object[])

Appends the specified format to the existing content with information from the formatProvider after replacing each format item with the HTML encoded String representation of the corresponding item in the args array.

AppendFormat(IHtmlContentBuilder, String, Object[])

Appends the specified format to the existing content after replacing each format item with the HTML encoded String representation of the corresponding item in the args array.

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.

Applies to