Viewer

Viewer(Func<Stream>)

Initializes new instance of Viewer class.

public Viewer(Func<Stream> getFileStream)
Parameter Type Description
getFileStream Func`1 The method that returns readable stream.

Exceptions

exception condition
ArgumentNullException Thrown when getFileStream is null.

Remarks

Learn more

See Also


Viewer(Func<Stream>, Func<LoadOptions>)

Initializes new instance of Viewer class.

public Viewer(Func<Stream> getFileStream, Func<LoadOptions> getLoadOptions)
Parameter Type Description
getFileStream Func`1 The method that returns readable stream.
getLoadOptions Func`1 The methods that returns document load options.

Exceptions

exception condition
ArgumentNullException Thrown when getFileStream is null.
ArgumentNullException Thrown when getLoadOptions is null.

Remarks

Learn more

See Also


Viewer(Func<Stream>, ViewerSettings)

Initializes new instance of Viewer class.

public Viewer(Func<Stream> getFileStream, ViewerSettings settings)
Parameter Type Description
getFileStream Func`1 The method that returns readable stream.
settings ViewerSettings The Viewer settings.

Exceptions

exception condition
ArgumentNullException Thrown when getFileStream is null.
ArgumentNullException Thrown when settings is null.

Remarks

Learn more

See Also


Viewer(Func<Stream>, Func<LoadOptions>, ViewerSettings)

Initializes new instance of Viewer class.

public Viewer(Func<Stream> getFileStream, Func<LoadOptions> getLoadOptions, ViewerSettings settings)
Parameter Type Description
getFileStream Func`1 The method that returns readable stream.
getLoadOptions Func`1 The methods that returns document load options.
settings ViewerSettings The Viewer settings.

Exceptions

exception condition
ArgumentNullException Thrown when getFileStream is null.
ArgumentNullException Thrown when getLoadOptions is null.
ArgumentNullException Thrown when settings is null.

Remarks

Learn more

See Also


Viewer(Stream)

Initializes new instance of Viewer class.

public Viewer(Stream stream)
Parameter Type Description
stream Stream The file stream.

Exceptions

exception condition
ArgumentNullException Thrown when stream is null.

Remarks

Learn more

See Also


Viewer(Stream, bool)

Initializes new instance of Viewer class.

public Viewer(Stream stream, bool leaveOpen)
Parameter Type Description
stream Stream The file stream.
leaveOpen Boolean true to leave the stream open after the Viewer object is disposed; otherwise, false.

Exceptions

exception condition
ArgumentNullException Thrown when stream is null.

Remarks

Learn more

See Also


Viewer(Stream, LoadOptions)

Initializes new instance of Viewer class.

public Viewer(Stream stream, LoadOptions loadOptions)
Parameter Type Description
stream Stream The file stream.
loadOptions LoadOptions The document load options.

Exceptions

exception condition
ArgumentNullException Thrown when stream is null.
ArgumentNullException Thrown when loadOptions is null.

Remarks

Learn more

See Also


Viewer(Stream, LoadOptions, bool)

Initializes new instance of Viewer class.

public Viewer(Stream stream, LoadOptions loadOptions, bool leaveOpen)
Parameter Type Description
stream Stream The file stream.
loadOptions LoadOptions The document load options.
leaveOpen Boolean true to leave the stream open after the Viewer object is disposed; otherwise, false.

Exceptions

exception condition
ArgumentNullException Thrown when stream is null.
ArgumentNullException Thrown when loadOptions is null.

Remarks

Learn more

See Also


Viewer(Stream, ViewerSettings)

Initializes new instance of Viewer class.

public Viewer(Stream stream, ViewerSettings settings)
Parameter Type Description
stream Stream The file stream.
settings ViewerSettings The Viewer settings.

Exceptions

exception condition
ArgumentNullException Thrown when stream is null.
ArgumentNullException Thrown when settings is null.

Remarks

Learn more

See Also


Viewer(Stream, ViewerSettings, bool)

Initializes new instance of Viewer class.

public Viewer(Stream stream, ViewerSettings settings, bool leaveOpen)
Parameter Type Description
stream Stream The file stream.
settings ViewerSettings The Viewer settings.
leaveOpen Boolean true to leave the stream open after the Viewer object is disposed; otherwise, false.

Exceptions

exception condition
ArgumentNullException Thrown when stream is null.
ArgumentNullException Thrown when settings is null.

Remarks

Learn more

See Also


Viewer(Stream, LoadOptions, ViewerSettings)

Initializes new instance of Viewer class.

public Viewer(Stream stream, LoadOptions loadOptions, ViewerSettings settings)
Parameter Type Description
stream Stream The file stream.
loadOptions LoadOptions The document load options.
settings ViewerSettings The Viewer settings.

Exceptions

exception condition
ArgumentNullException Thrown when stream is null.
ArgumentNullException Thrown when loadOptions is null.
ArgumentNullException Thrown when settings is null.

Remarks

Learn more

See Also


Viewer(Stream, LoadOptions, ViewerSettings, bool)

Initializes new instance of Viewer class.

public Viewer(Stream stream, LoadOptions loadOptions, ViewerSettings settings, bool leaveOpen)
Parameter Type Description
stream Stream The file stream.
loadOptions LoadOptions The document load options.
settings ViewerSettings The Viewer settings.
leaveOpen Boolean true to leave the stream open after the Viewer object is disposed; otherwise, false.

Exceptions

exception condition
ArgumentNullException Thrown when stream is null.
ArgumentNullException Thrown when loadOptions is null.
ArgumentNullException Thrown when settings is null.

Remarks

Learn more

See Also


Viewer(string)

Initializes new instance of Viewer class.

public Viewer(string filePath)
Parameter Type Description
filePath String The path to the file to render.

Exceptions

exception condition
ArgumentException Thrown when filePath is null or empty.

Remarks

Learn more

See Also


Viewer(string, ViewerSettings)

Initializes new instance of Viewer class.

public Viewer(string filePath, ViewerSettings settings)
Parameter Type Description
filePath String The path to the file to render.
settings ViewerSettings The Viewer settings.

Exceptions

exception condition
ArgumentException Thrown when filePath is null or empty.
ArgumentNullException Thrown when settings is null.

Remarks

Learn more

See Also


Viewer(string, LoadOptions)

Initializes new instance of Viewer class.

public Viewer(string filePath, LoadOptions loadOptions)
Parameter Type Description
filePath String The path to the file to render.
loadOptions LoadOptions The options that used to open the file.

Exceptions

exception condition
ArgumentException Thrown when filePath is null or empty.
ArgumentNullException Thrown when loadOptions is null.

Remarks

Learn more

See Also


Viewer(string, LoadOptions, ViewerSettings)

Initializes new instance of Viewer class.

public Viewer(string filePath, LoadOptions loadOptions, ViewerSettings settings)
Parameter Type Description
filePath String The path to the file to render.
loadOptions LoadOptions The options that used to open the file.
settings ViewerSettings The Viewer settings.

Exceptions

exception condition
ArgumentException Thrown when filePath is null or empty.
ArgumentNullException Thrown when loadOptions is null.
ArgumentNullException Thrown when settings is null.

Remarks

Learn more

See Also