C# Class Microsoft.AspNetCore.Html.HtmlContentBuilderExtensions

Extension methods for IHtmlContentBuilder.
Mostrar archivo Open project: aspnet/HtmlAbstractions

Public Methods

Method Description
AppendFormat ( this builder, IFormatProvider formatProvider, string format ) : IHtmlContentBuilder

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 ( this builder, string format ) : IHtmlContentBuilder

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 ( this builder, string encoded ) : IHtmlContentBuilder

Appends an Environment.NewLine after appending the string value. The value is treated as HTML encoded as-provided, and no further encoding will be performed.

AppendLine ( this builder ) : IHtmlContentBuilder

Appends an Environment.NewLine.

AppendLine ( this builder, IHtmlContent content ) : IHtmlContentBuilder

Appends an Environment.NewLine after appending the IHtmlContent value.

AppendLine ( this builder, string unencoded ) : IHtmlContentBuilder

Appends an Environment.NewLine after appending the string value. The value is treated as unencoded as-provided, and will be HTML encoded before writing to output.

SetContent ( this builder, string unencoded ) : IHtmlContentBuilder

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 ( this builder, IHtmlContent content ) : IHtmlContentBuilder

Sets the content to the IHtmlContent value.

SetHtmlContent ( this builder, string encoded ) : IHtmlContentBuilder

Sets the content to the string value. The value is treated as HTML encoded as-provided, and no further encoding will be performed.

Method Details

AppendFormat() public static method

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.
public static AppendFormat ( this builder, IFormatProvider formatProvider, string format ) : IHtmlContentBuilder
builder this The .
formatProvider IFormatProvider An object that supplies culture-specific formatting information.
format string /// The composite format (see http://msdn.microsoft.com/en-us/library/txafckwd.aspx). /// The format string is assumed to be HTML encoded as-provided, and no further encoding will be performed. ///
return IHtmlContentBuilder

AppendFormat() public static method

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.
public static AppendFormat ( this builder, string format ) : IHtmlContentBuilder
builder this The .
format string /// The composite format (see http://msdn.microsoft.com/en-us/library/txafckwd.aspx). /// The format string is assumed to be HTML encoded as-provided, and no further encoding will be performed. ///
return IHtmlContentBuilder

AppendHtmlLine() public static method

Appends an Environment.NewLine after appending the string value. The value is treated as HTML encoded as-provided, and no further encoding will be performed.
public static AppendHtmlLine ( this builder, string encoded ) : IHtmlContentBuilder
builder this The .
encoded string The HTML encoded to append.
return IHtmlContentBuilder

AppendLine() public static method

Appends an Environment.NewLine.
public static AppendLine ( this builder ) : IHtmlContentBuilder
builder this The .
return IHtmlContentBuilder

AppendLine() public static method

Appends an Environment.NewLine after appending the IHtmlContent value.
public static AppendLine ( this builder, IHtmlContent content ) : IHtmlContentBuilder
builder this The .
content IHtmlContent The to append.
return IHtmlContentBuilder

AppendLine() public static method

Appends an Environment.NewLine after appending the string value. The value is treated as unencoded as-provided, and will be HTML encoded before writing to output.
public static AppendLine ( this builder, string unencoded ) : IHtmlContentBuilder
builder this The .
unencoded string The to append.
return IHtmlContentBuilder

SetContent() public static method

Sets the content to the string value. The value is treated as unencoded as-provided, and will be HTML encoded before writing to output.
public static SetContent ( this builder, string unencoded ) : IHtmlContentBuilder
builder this The .
unencoded string The value that replaces the content.
return IHtmlContentBuilder

SetHtmlContent() public static method

Sets the content to the IHtmlContent value.
public static SetHtmlContent ( this builder, IHtmlContent content ) : IHtmlContentBuilder
builder this The .
content IHtmlContent The value that replaces the content.
return IHtmlContentBuilder

SetHtmlContent() public static method

Sets the content to the string value. The value is treated as HTML encoded as-provided, and no further encoding will be performed.
public static SetHtmlContent ( this builder, string encoded ) : IHtmlContentBuilder
builder this The .
encoded string The HTML encoded that replaces the content.
return IHtmlContentBuilder