Class EpubRemoteTextContentFile
A file located outside of the EPUB archive with its content represented as a string. It is used mainly for HTML and CSS files. Unlike EpubRemoteTextContentFileRef, this class contains the whole content of the file.
Inherited Members
Namespace: VersOne.Epub
Assembly: VersOne.Epub.dll
Syntax
public class EpubRemoteTextContentFile : EpubRemoteContentFile
Constructors
View SourceEpubRemoteTextContentFile(string, EpubContentType, string, string?)
Initializes a new instance of the EpubRemoteTextContentFile class.
Declaration
public EpubRemoteTextContentFile(string key, EpubContentType contentType, string contentMimeType, 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 | content | The content of the file. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The |
Properties
View SourceContent
Gets the content of the file or null
if the content has not been downloaded.
Declaration
public string? Content { get; }
Property type: string
View SourceContentFileType
Gets the type of the content file which is always TEXT for remote text content files.
Declaration
public override EpubContentFileType ContentFileType { get; }