Class EpubLocalContentFile
The base class for a local content file within the EPUB archive (e.g., an HTML file or an image). Unlike EpubLocalContentFileRef, the classes derived from this base class contain the whole content of the file.
Inheritance
EpubLocalContentFile
Inherited Members
Namespace: VersOne.Epub
Assembly: VersOne.Epub.dll
Syntax
public abstract class EpubLocalContentFile : EpubContentFile
Constructors
View SourceEpubLocalContentFile(string, EpubContentType, string, string)
Initializes a new instance of the EpubLocalContentFile class.
Declaration
protected EpubLocalContentFile(string key, EpubContentType contentType, string contentMimeType, string filePath)
Parameters
Type | Name | Description |
---|---|---|
string | key | The content file key as it is declared in the EPUB manifest (in the Href property). |
EpubContentType | contentType | The type of the content of the file. |
string | contentMimeType | The MIME type of the content of the file. |
string | filePath | The absolute path of the local content file in the EPUB archive. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The |
ArgumentNullException | The |
Properties
View SourceContentLocation
Gets the location of the content file which is always LOCAL for local content files.
Declaration
public override EpubContentLocation ContentLocation { get; }
Property type: EpubContentLocation
Overrides
View SourceFilePath
Gets the absolute path of the local content file in the EPUB archive.
Declaration
public string FilePath { get; }