C# Class CsQuery.OutputFormatters

Factory for OuputFormatters included with CsQuery.
Show file Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
Create ( DomRenderingOptions options ) : IOutputFormatter

Creates an instance of the default OutputFormatter using the options passed and the default encoder.

Create ( DomRenderingOptions options, IHtmlEncoder encoder ) : IOutputFormatter

Creates an instance of the default OutputFormatter using the options passed.

Create ( IHtmlEncoder encoder ) : IOutputFormatter

Creates an instance of the default OutputFormatter using the default options and the encoder passed.

Private Methods

Method Description
MergeOptions ( DomRenderingOptions &options ) : void

Merge options with defaults when needed

Method Details

Create() public static method

Creates an instance of the default OutputFormatter using the options passed and the default encoder.
public static Create ( DomRenderingOptions options ) : IOutputFormatter
options DomRenderingOptions /// (optional) options for controlling the operation. ///
return IOutputFormatter

Create() public static method

Creates an instance of the default OutputFormatter using the options passed.
public static Create ( DomRenderingOptions options, IHtmlEncoder encoder ) : IOutputFormatter
options DomRenderingOptions /// (optional) options for controlling the operation. ///
encoder IHtmlEncoder /// (optional) the encoder. ///
return IOutputFormatter

Create() public static method

Creates an instance of the default OutputFormatter using the default options and the encoder passed.
public static Create ( IHtmlEncoder encoder ) : IOutputFormatter
encoder IHtmlEncoder /// (optional) the encoder. ///
return IOutputFormatter