html编辑contentbuilder,HtmlContentBuilder

HtmlContentBuilder Class

Definition

Assembly:Microsoft.AspNetCore.Html.Abstractions.dll

Package:Microsoft.AspNetCore.Html.Abstractions v1.0.0

Package:Microsoft.AspNetCore.Html.Abstractions v1.1.0

Package:Microsoft.AspNetCore.Html.Abstractions v2.0.0

Package:Microsoft.AspNetCore.Html.Abstractions v2.1.0

Package:Microsoft.AspNetCore.Html.Abstractions v2.2.0

Package:Microsoft.AspNetCore.App.Ref v3.0.1

Package:Microsoft.AspNetCore.App.Ref v3.1.10

Package:Microsoft.AspNetCore.App.Ref v5.0.0

An IHtmlContentBuilder implementation using an in memory list.

In this article

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

Constructors

Properties

Gets the number of elements in the HtmlContentBuilder.

Methods

Appends a String value. The value is treated as unencoded as-provided, and will be HTML

encoded before writing to output.

Appends an HTML encoded String value. The value is treated as HTML encoded as-provided, and

no further encoding will be performed.

Clears the content.

Copies the contained content of this IHtmlContentContainer into builder.

Moves the contained content of this IHtmlContentContainer into builder.

After MoveTo(IHtmlContentBuilder) is called, this IHtmlContentContainer instance should be left

in an empty state.

Writes the content by encoding it with the specified encoder

to the specified writer.

Extension Methods

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.

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.

Appends an NewLine after appending the String value.

The value is treated as HTML encoded as-provided, and no further encoding will be performed.

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.

Sets the content to the String value. The value is treated as unencoded as-provided,

and will be HTML encoded before writing to output.

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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值