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
XDocumentThe chapter template.
chapterDirectory
stringThe chapter directory.
logger
ILoggerThe ILogger.
Methods
GenerateXhtml()
Generates the XHTML.
public string GenerateXhtml()
Returns
GetChapterBodyElement()
Gets the chapter body element.
public XElement? GetChapterBodyElement()
Returns
GetH1Element()
Gets the h1 element.
public XElement? GetH1Element()
Returns
GetTitleElement()
Gets the title element.
public XElement? GetTitleElement()