Show / Hide Table of Contents

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.

Inheritance
object
EpubContentFile
EpubRemoteContentFile
EpubRemoteTextContentFile
Inherited Members
EpubRemoteContentFile.Url
EpubRemoteContentFile.ContentLocation
EpubContentFile.Key
EpubContentFile.ContentType
EpubContentFile.ContentMimeType
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VersOne.Epub
Assembly: VersOne.Epub.dll
Syntax
public class EpubRemoteTextContentFile : EpubRemoteContentFile

Constructors

View Source

EpubRemoteTextContentFile(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 contentMimeType parameter is null.

Properties

View Source

Content

Gets the content of the file or null if the content has not been downloaded.

Declaration
public string? Content { get; }
Property type: string
View Source

ContentFileType

Gets the type of the content file which is always TEXT for remote text content files.

Declaration
public override EpubContentFileType ContentFileType { get; }
Property type: EpubContentFileType
Overrides
EpubContentFile.ContentFileType
  • View Source
In this article
Back to top Generated by DocFX