| 
Document Constructor (Stream, FileFormat, String, Boolean)
  | 
 Initializes a new instance of the Document class with the specified stream, file format, password, and new engine option.
 Namespace:
 Spire.Doc
 Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
 Syntax
Syntax
 
 
public Document(
	Stream stream,
	FileFormat type,
	string password,
	bool useNewEngine
)
 
Public Sub New ( 
	stream As Stream,
	type As FileFormat,
	password As String,
	useNewEngine As Boolean
)
 
public:
Document(
	Stream^ stream, 
	FileFormat type, 
	String^ password, 
	bool useNewEngine
)
 
new : 
stream : Stream * 
type : FileFormat * 
password : string * 
useNewEngine : bool -> Document
 
 
 
Parameters
 
- 
stream
 
- 
 Type:
 
System.IO
Stream
 
 The stream to load the document from.
- 
type
 
- 
 Type:
 
Spire.Doc
FileFormat
 
 The file format of the document.
- 
password
 
- 
 Type:
 
System
String
 
 The password to open the document, if encrypted.
- 
useNewEngine
 
- 
 Type:
 
System
Boolean
 
 Indicates whether to use the new rendering engine for the document.
 
 See Also
See Also