ForEmbeddedResources

ForEmbeddedResources(CreatePageStream)

Initializes an instance of the HtmlViewOptions class for rendering into HTML with embedded resources.

public static HtmlViewOptions ForEmbeddedResources(CreatePageStream createPageStream)
Parameter Type Description
createPageStream CreatePageStream The method that instantiates stream used to write output page data.

Return Value

New instance of the HtmlViewOptions class for rendering into HTML with embedded resources.

Exceptions

exception condition
ArgumentNullException Thrown when createPageStream is null.

Remarks

For the code example, see the documentation.

See Also


ForEmbeddedResources(CreatePageStream, ReleasePageStream)

Initializes an instance of the HtmlViewOptions class for rendering into HTML with embedded resources.

public static HtmlViewOptions ForEmbeddedResources(CreatePageStream createPageStream, 
    ReleasePageStream releasePageStream)
Parameter Type Description
createPageStream CreatePageStream The method that instantiates stream used to write output page data.
releasePageStream ReleasePageStream The method that releases stream created by method assigned to delegate that passed to createPageStream parameter.

Return Value

New instance of the HtmlViewOptions class for rendering into HTML with embedded resources.

Exceptions

exception condition
ArgumentNullException Thrown when createPageStream is null.
ArgumentNullException Thrown when releasePageStream is null.

Remarks

For the code example, see the documentation.

See Also


ForEmbeddedResources(IPageStreamFactory)

Initializes an instance of the HtmlViewOptions class for rendering into HTML with embedded resources.

public static HtmlViewOptions ForEmbeddedResources(IPageStreamFactory pageStreamFactory)
Parameter Type Description
pageStreamFactory IPageStreamFactory The factory which implements methods for creating and releasing output page stream.

Return Value

New instance of the HtmlViewOptions class for rendering into HTML with embedded resources.

Exceptions

exception condition
ArgumentNullException Thrown when pageStreamFactory is null.

Remarks

For the code example, see the documentation.

See Also


ForEmbeddedResources()

Initializes an instance of the HtmlViewOptions class.

public static HtmlViewOptions ForEmbeddedResources()

Remarks

For the code example, see the documentation.

See Also


ForEmbeddedResources(string)

Initializes an instance of the HtmlViewOptions class.

public static HtmlViewOptions ForEmbeddedResources(string filePathFormat)
Parameter Type Description
filePathFormat String The file path format e.g. ‘page_{0}.html’.

Exceptions

exception condition
ArgumentException Thrown when filePathFormat is null or empty.

Remarks

For the code example, see the documentation.

See Also