LoadOptions

LoadOptions class

Provides the options which are used to open a file.

public sealed class LoadOptions

Constructors

Name Description
LoadOptions() Initializes a new instance of the LoadOptions class with empty Password, FileFormat equal to Unknown and default encodings.
LoadOptions(FileFormat) Initializes a new instance of the LoadOptions class with empty Password and default encodings.
LoadOptions(string) Initializes a new instance of the LoadOptions class with FileFormat equal to Unknown and default encodings.
LoadOptions(TimeSpan) Initializes a new instance of the LoadOptions class with timeout.
LoadOptions(FileFormat, string) Initializes a new instance of the LoadOptions class with the password and default encodings.
LoadOptions(FileFormat, string, Encoding, Encoding) Initializes a new instance of the LoadOptions class with custom encodings.
LoadOptions(FileFormat, string, Encoding, Encoding, TimeSpan) Initializes a new instance of the LoadOptions fully customized class.

Properties

Name Description
DefaultAnsiEncoding { get; } Gets the default ANSI encoding which is used for encoding detection.
Encoding { get; } Gets the encoding of the document.
FileFormat { get; } Gets the file format.
Password { get; } Gets the password.
Timeout { get; } Gets the value that represents the number of milliseconds to wait.

Remarks

An instance of this class is used as parameter in Parser class constructors:

See the usage examples there.

Learn more:

See Also