Class EpubLocalTextContentFile
A file within the EPUB archive with its content represented as a string. It is used mainly for HTML and CSS files. Unlike EpubLocalTextContentFileRef, this class contains the whole content of the file.
Inherited Members
Namespace: VersOne.Epub
Assembly: VersOne.Epub.dll
Syntax
public class EpubLocalTextContentFile : EpubLocalContentFile
Constructors
View SourceEpubLocalTextContentFile(string, EpubContentType, string, string, string)
Initializes a new instance of the EpubLocalTextContentFile class.
Declaration
public EpubLocalTextContentFile(string key, EpubContentType contentType, string contentMimeType, string filePath, string content)
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. |
string | content | The content of the file. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The |
ArgumentNullException | The |
ArgumentNullException | The |
Properties
View SourceContent
Gets the content of the file.
Declaration
public string Content { get; }
Property type: string
View SourceContentFileType
Gets the type of the content file which is always TEXT for local text content files.
Declaration
public override EpubContentFileType ContentFileType { get; }