C# Class Microsoft.AspNetCore.Html.HtmlContentBuilderExtensions

Extension methods for IHtmlContentBuilder.
Afficher le fichier Open project: aspnet/HtmlAbstractions

Méthodes publiques

Méthode 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 méthode

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. ///
Résultat IHtmlContentBuilder

AppendFormat() public static méthode

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. ///
Résultat IHtmlContentBuilder

AppendHtmlLine() public static méthode

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.
Résultat IHtmlContentBuilder

AppendLine() public static méthode

Appends an Environment.NewLine.
public static AppendLine ( this builder ) : IHtmlContentBuilder
builder this The .
Résultat IHtmlContentBuilder

AppendLine() public static méthode

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.
Résultat IHtmlContentBuilder

AppendLine() public static méthode

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.
Résultat IHtmlContentBuilder

SetContent() public static méthode

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.
Résultat IHtmlContentBuilder

SetHtmlContent() public static méthode

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.
Résultat IHtmlContentBuilder

SetHtmlContent() public static méthode

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.
Résultat IHtmlContentBuilder