Table of Contents

Class PublicationChapter

Namespace
Songhay.Publications.Models
Assembly
Songhay.Publications.dll

Defines content for the chapter of an EPUB publication.

public class PublicationChapter
Inheritance
PublicationChapter
Inherited Members
Extension Methods

Constructors

PublicationChapter(KeyValuePair<string, string>, XDocument, string, ILogger?)

Initializes a new instance of the PublicationChapter class.

public PublicationChapter(KeyValuePair<string, string> chapterPair, XDocument chapterTemplate, string chapterDirectory, ILogger? logger)

Parameters

chapterPair KeyValuePair<string, string>

The chapter pair.

chapterTemplate XDocument

The chapter template.

chapterDirectory string

The chapter directory.

logger ILogger

The ILogger.

Methods

GenerateXhtml()

Generates the XHTML.

public string GenerateXhtml()

Returns

string

GetChapterBodyElement()

Gets the chapter body element.

public XElement? GetChapterBodyElement()

Returns

XElement

GetH1Element()

Gets the h1 element.

public XElement? GetH1Element()

Returns

XElement

GetTitleElement()

Gets the title element.

public XElement? GetTitleElement()

Returns

XElement