Viewer Constructor (Stream, LoadOptions, ViewerSettings, Boolean) |
Initializes new instance of
Viewer class.
Namespace: GroupDocs.ViewerAssembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 22.9
Syntaxpublic Viewer(
Stream stream,
LoadOptions loadOptions,
ViewerSettings settings,
bool leaveOpen
)
Public Sub New (
stream As Stream,
loadOptions As LoadOptions,
settings As ViewerSettings,
leaveOpen As Boolean
)
public:
Viewer(
Stream^ stream,
LoadOptions^ loadOptions,
ViewerSettings^ settings,
bool leaveOpen
)
new :
stream : Stream *
loadOptions : LoadOptions *
settings : ViewerSettings *
leaveOpen : bool -> Viewer
Parameters
- stream
- Type: System.IOStream
The file stream. - loadOptions
- Type: GroupDocs.Viewer.OptionsLoadOptions
The document load options. - 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
Remarks
See Also