Show / Hide Table of Contents

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.

Inheritance
object
EpubContentFile
EpubLocalContentFile
EpubLocalTextContentFile
Inherited Members
EpubLocalContentFile.FilePath
EpubLocalContentFile.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 EpubLocalTextContentFile : EpubLocalContentFile

Constructors

View Source

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

ArgumentNullException

The filePath parameter is null.

ArgumentNullException

The content parameter is null.

Properties

View Source

Content

Gets the content of the file.

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

ContentFileType

Gets the type of the content file which is always TEXT for local 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