C# Class Microsoft.AspNetCore.Html.HtmlContentBuilder

An IHtmlContentBuilder implementation using an in memory list.
Inheritance: IHtmlContentBuilder
显示文件 Open project: aspnet/HtmlAbstractions Class Usage Examples

Private Properties

Property Type Description
DebuggerToString string

Public Methods

Method Description
Append ( string unencoded ) : IHtmlContentBuilder
AppendHtml ( IHtmlContent htmlContent ) : IHtmlContentBuilder
AppendHtml ( string encoded ) : IHtmlContentBuilder
Clear ( ) : IHtmlContentBuilder
CopyTo ( IHtmlContentBuilder destination ) : void
HtmlContentBuilder ( ) : System

Creates a new HtmlContentBuilder.

HtmlContentBuilder ( IList entries ) : System

Creates a new HtmlContentBuilder with the given list of entries.

HtmlContentBuilder ( int capacity ) : System

Creates a new HtmlContentBuilder with the given initial capacity.

MoveTo ( IHtmlContentBuilder destination ) : void
WriteTo ( TextWriter writer, System.Text.Encodings.Web.HtmlEncoder encoder ) : void

Private Methods

Method Description
DebuggerToString ( ) : string

Method Details

Append() public method

public Append ( string unencoded ) : IHtmlContentBuilder
unencoded string
return IHtmlContentBuilder

AppendHtml() public method

public AppendHtml ( IHtmlContent htmlContent ) : IHtmlContentBuilder
htmlContent IHtmlContent
return IHtmlContentBuilder

AppendHtml() public method

public AppendHtml ( string encoded ) : IHtmlContentBuilder
encoded string
return IHtmlContentBuilder

Clear() public method

public Clear ( ) : IHtmlContentBuilder
return IHtmlContentBuilder

CopyTo() public method

public CopyTo ( IHtmlContentBuilder destination ) : void
destination IHtmlContentBuilder
return void

HtmlContentBuilder() public method

Creates a new HtmlContentBuilder.
public HtmlContentBuilder ( ) : System
return System

HtmlContentBuilder() public method

Creates a new HtmlContentBuilder with the given list of entries.
public HtmlContentBuilder ( IList entries ) : System
entries IList /// The list of entries. The will use this list without making a copy. ///
return System

HtmlContentBuilder() public method

Creates a new HtmlContentBuilder with the given initial capacity.
public HtmlContentBuilder ( int capacity ) : System
capacity int The initial capacity of the backing store.
return System

MoveTo() public method

public MoveTo ( IHtmlContentBuilder destination ) : void
destination IHtmlContentBuilder
return void

WriteTo() public method

public WriteTo ( TextWriter writer, System.Text.Encodings.Web.HtmlEncoder encoder ) : void
writer System.IO.TextWriter
encoder System.Text.Encodings.Web.HtmlEncoder
return void