C# 클래스 CsQuery.Output.FormatDefault

Default output formatter.
상속: IOutputFormatter
파일 보기 프로젝트 열기: prepare/HTML-Renderer 1 사용 예제들

공개 메소드들

메소드 설명
FormatDefault ( ) : System

Creates the default OutputFormatter using default DomRenderingOption values and default HtmlEncoder

FormatDefault ( DomRenderingOptions options, IHtmlEncoder encoder ) : System

Abstract base class constructor.

Render ( IDomObject node ) : string

Renders the object to a string.

Render ( IDomObject node, TextWriter writer ) : void

Renders the object to the textwriter.

RenderChildren ( IDomObject element, TextWriter writer ) : void

Renders the children of this element.

RenderElement ( IDomObject element, TextWriter writer, bool includeChildren ) : void

Gets the HTML representation of this element and its children.

보호된 메소드들

메소드 설명
EndElement ( IDomObject element ) : void

Adds the element close tag to the output stack.

MergeDefaultOptions ( ) : void

Merge options with defaults when needed.

ParseChildren ( IDomObject element ) : void

Renders all the children of the passed node.

RenderAttribute ( TextWriter writer, string name, string value, bool quoteAll ) : void

Render an attribute.

RenderCdataNode ( IDomObject element, TextWriter writer ) : void

Renders a CDATA node.

RenderCommentNode ( IDomObject element, TextWriter writer ) : void

Renders the comment node.

RenderDocTypeNode ( IDomObject element, TextWriter writer ) : void

Renders the document type node.

RenderElementCloseTag ( IDomObject element, TextWriter writer ) : void

Renders the element close tag.

RenderElementInternal ( IDomObject element, TextWriter writer, bool includeChildren ) : void

Gets the HTML representation of this element and its children. (This is the implementation - it will not flush the stack)

RenderElements ( IEnumerable elements, TextWriter writer ) : void

Renders a sequence of elements.

RenderStack ( TextWriter writer ) : void

Process the output stack.

RenderTextNode ( IDomObject textNode, TextWriter writer, bool raw ) : void

Renders the text node.

SetDocType ( IDomObject element ) : void

Sets document type.

비공개 메소드들

메소드 설명
RenderChildrenInternal ( IDomObject element, TextWriter writer ) : void
RenderInternal ( IDomObject node, TextWriter writer ) : void

메소드 상세

EndElement() 보호된 메소드

Adds the element close tag to the output stack.
protected EndElement ( IDomObject element ) : void
element IDomObject /// The element. ///
리턴 void

FormatDefault() 공개 메소드

Creates the default OutputFormatter using default DomRenderingOption values and default HtmlEncoder
public FormatDefault ( ) : System
리턴 System

FormatDefault() 공개 메소드

Abstract base class constructor.
public FormatDefault ( DomRenderingOptions options, IHtmlEncoder encoder ) : System
options DomRenderingOptions /// Options for controlling the operation. ///
encoder IHtmlEncoder /// The encoder. ///
리턴 System

MergeDefaultOptions() 보호된 메소드

Merge options with defaults when needed.
protected MergeDefaultOptions ( ) : void
리턴 void

ParseChildren() 보호된 메소드

Renders all the children of the passed node.
protected ParseChildren ( IDomObject element ) : void
element IDomObject /// The element. ///
리턴 void

Render() 공개 메소드

Renders the object to a string.
public Render ( IDomObject node ) : string
node IDomObject /// The node. ///
리턴 string

Render() 공개 메소드

Renders the object to the textwriter.
/// Thrown when the requested operation is unimplemented. ///
public Render ( IDomObject node, TextWriter writer ) : void
node IDomObject /// The node. ///
writer System.IO.TextWriter /// The writer to which output is written. ///
리턴 void

RenderAttribute() 보호된 메소드

Render an attribute.
protected RenderAttribute ( TextWriter writer, string name, string value, bool quoteAll ) : void
writer System.IO.TextWriter /// The writer to which output is written. ///
name string /// The name of the attribute. ///
value string /// The attribute value. ///
quoteAll bool /// true to require quotes around the attribute value, false to use quotes only if needed. ///
리턴 void

RenderCdataNode() 보호된 메소드

Renders a CDATA node.
protected RenderCdataNode ( IDomObject element, TextWriter writer ) : void
element IDomObject /// The element to render ///
writer System.IO.TextWriter /// The writer to which output is written. ///
리턴 void

RenderChildren() 공개 메소드

Renders the children of this element.
public RenderChildren ( IDomObject element, TextWriter writer ) : void
element IDomObject /// The element to render. ///
writer System.IO.TextWriter /// The writer to which output is written. ///
리턴 void

RenderCommentNode() 보호된 메소드

Renders the comment node.
protected RenderCommentNode ( IDomObject element, TextWriter writer ) : void
element IDomObject /// The element to render ///
writer System.IO.TextWriter /// The writer to which output is written. ///
리턴 void

RenderDocTypeNode() 보호된 메소드

Renders the document type node.
protected RenderDocTypeNode ( IDomObject element, TextWriter writer ) : void
element IDomObject /// The element to render ///
writer System.IO.TextWriter /// The writer to which output is written. ///
리턴 void

RenderElement() 공개 메소드

Gets the HTML representation of this element and its children.
public RenderElement ( IDomObject element, TextWriter writer, bool includeChildren ) : void
element IDomObject /// The element to render. ///
writer System.IO.TextWriter /// The writer to which output is written. ///
includeChildren bool /// true to include, false to exclude the children. ///
리턴 void

RenderElementCloseTag() 보호된 메소드

Renders the element close tag.
protected RenderElementCloseTag ( IDomObject element, TextWriter writer ) : void
element IDomObject /// The element. ///
writer System.IO.TextWriter /// The writer to which output is written. ///
리턴 void

RenderElementInternal() 보호된 메소드

Gets the HTML representation of this element and its children. (This is the implementation - it will not flush the stack)
protected RenderElementInternal ( IDomObject element, TextWriter writer, bool includeChildren ) : void
element IDomObject /// The element to render. ///
writer System.IO.TextWriter /// The writer to which output is written. ///
includeChildren bool /// true to include, false to exclude the children. ///
리턴 void

RenderElements() 보호된 메소드

Renders a sequence of elements.
protected RenderElements ( IEnumerable elements, TextWriter writer ) : void
elements IEnumerable /// The elements. ///
writer System.IO.TextWriter /// The writer to which output is written. ///
리턴 void

RenderStack() 보호된 메소드

Process the output stack.
/// Thrown when the requested operation is unimplemented. ///
protected RenderStack ( TextWriter writer ) : void
writer System.IO.TextWriter
리턴 void

RenderTextNode() 보호된 메소드

Renders the text node.
protected RenderTextNode ( IDomObject textNode, TextWriter writer, bool raw ) : void
textNode IDomObject /// The text node. ///
writer System.IO.TextWriter /// The writer to which output is written. ///
raw bool /// true to raw. ///
리턴 void

SetDocType() 보호된 메소드

Sets document type.
protected SetDocType ( IDomObject element ) : void
element IDomObject /// The element to render. ///
리턴 void