LoadOptions

LoadOptions class

Provides options for the document loading.

public sealed class LoadOptions : ILoadOptions, IResourceLoadingOptions

Constructors

Name Description
LoadOptions(FileType) Initializes new instance of LoadOptions class.
LoadOptions(string) Initializes new instance of LoadOptions class.
LoadOptions(FileType, FileType) Initializes new instance of LoadOptions class.
LoadOptions(FileType, string) Initializes new instance of LoadOptions class.
LoadOptions(string, Encoding) Initializes new instance of LoadOptions class.
LoadOptions(FileType, FileType, string) Initializes new instance of LoadOptions class.
LoadOptions(FileType, string, Encoding) Initializes new instance of LoadOptions class.
LoadOptions(FileType, FileType, string, Encoding) Initializes new instance of LoadOptions class.
LoadOptions(string, FileType, string, Encoding) Initializes new instance of LoadOptions class.

Properties

Name Description
Encoding { get; } The encoding used when opening text-based files such as CSV or TXT. Default value is Default.
Extension { get; } The extension of the file to init.
ExternalResourceHandler { get; set; } Handler that is called for every external resource before it is loaded and can allow, skip or replace it. Default value is null.
Password { get; } The password for opening password-protected file.
SkipExternalResources { get; set; } If true, no external resource is loaded except those matching WhitelistedResources or allowed by ExternalResourceHandler. Default value is true.
Type { get; } The type of the file to load.
WhitelistedResources { get; set; } Absolute URI prefixes of external resources that are loaded while SkipExternalResources is true.

See Also