Viewer Constructor (Stream, ViewerSettings, Boolean)
Initializes new instance of Viewer class.

Namespace: GroupDocs.Viewer
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 21.5
Syntax
public Viewer(
	Stream stream,
	ViewerSettings settings,
	bool leaveOpen
)

Parameters

stream
Type: System.IOStream
The file stream.
settings
Type: GroupDocs.ViewerViewerSettings
The Viewer settings.
leaveOpen
Type: SystemBoolean

Field Value

Type: 
true to leave the stream open after the Viewer object is disposed; otherwise,

Field Value

Type: 
false.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when stream is null.
ArgumentNullExceptionThrown when settings is null.
Remarks
Learn more
See Also