The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

Document.LoadDocument Method

Name Parameters Description
LoadDocument(Stream) stream

Loads a document from the stream.

LoadDocument(Stream, DocumentFormat) stream, format

Loads a document from a stream, specifying the document format.

LoadDocument(Stream, DocumentFormat, String) stream, format, sourceUri

Loads a document from the stream in the specified format. External content for HTML format is retrieved using the specified source (base) URI.

LoadDocument(String) fileName

Loads a document from the specified file. The file format is determined by its content.

LoadDocument(String, DocumentFormat) fileName, format

Loads a document from a file, specifying the document format.

LoadDocument(String, DocumentFormat, String) fileName, format, sourceUri

Loads a document from the file in the specified format. External content for HTML format is retrieved using the specified source (base) URI.