Class EpubCollection
Represents a unified collection of EPUB metadata items. A collection allows resources to be assembled into logical groups for a variety of potential uses: enabling content that has been split across multiple EPUB Content Documents to be reassembled back into a meaningful unit (e.g., an index split across multiple documents), identifying resources for specialized purposes (e.g., preview content), or collecting together resources that present additional information about this EPUB book.
See https://www.w3.org/publishing/epub32/epub-packages.html#elemdef-collection for more information.
Inherited Members
Namespace: VersOne.Epub.Schema
Assembly: VersOne.Epub.dll
Syntax
public class EpubCollection
Constructors
View SourceEpubCollection(string, EpubMetadata?, List<EpubCollection>?, List<EpubMetadataLink>?, string?, EpubTextDirection?, string?)
Initializes a new instance of the EpubCollection class.
Declaration
public EpubCollection(string role, EpubMetadata? metadata = null, List<EpubCollection>? nestedCollections = null, List<EpubMetadataLink>? links = null, string? id = null, EpubTextDirection? textDirection = null, string? language = null)
Parameters
Type | Name | Description |
---|---|---|
string | role | The role of this collection. |
EpubMetadata | metadata | The EPUB meta information included into this collection or |
List<EpubCollection> | nestedCollections | A list of sub-collections included in this collection. |
List<EpubMetadataLink> | links | A list of metadata links. |
string | id | The unique ID of this collection or |
EpubTextDirection? | textDirection | The text direction of this collection or |
string | language | The language of this collection or |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The |
Properties
View SourceId
Gets the unique ID of this collection or null
if the collection doesn't have an ID.
See https://www.w3.org/publishing/epub32/epub-packages.html#attrdef-id for more information.
Declaration
public string? Id { get; }
Property type: string
View SourceLanguage
Gets the language of this collection or null
if the collection doesn't specify the language.
See https://www.w3.org/publishing/epub32/epub-packages.html#attrdef-xml-lang for more information.
Declaration
public string? Language { get; }
Property type: string
View SourceLinks
Gets a list of metadata links. Links are used to associate resources with this collection, such as metadata records.
See https://www.w3.org/publishing/epub32/epub-packages.html#elemdef-collection-link for more information.
Declaration
public List<EpubMetadataLink> Links { get; }
Property type: List<EpubMetadataLink>
View SourceMetadata
Gets the EPUB meta information included into this collection or null
if the collection doesn't have any meta information.
See https://www.w3.org/publishing/epub32/epub-packages.html#elemdef-collection-metadata for more information.
Declaration
public EpubMetadata? Metadata { get; }
Property type: EpubMetadata
View SourceNestedCollections
Gets a list of sub-collections included in this collection.
See https://www.w3.org/publishing/epub32/epub-packages.html#elemdef-collection for more information.
Declaration
public List<EpubCollection> NestedCollections { get; }
Property type: List<EpubCollection>
View SourceRole
Gets the role of this collection.
See https://www.w3.org/publishing/epub32/epub-packages.html#attrdef-collection-role for more information.
Declaration
public string Role { get; }
Property type: string
View SourceTextDirection
Gets the text direction of this collection or null
if the collection doesn't specify a text direction.
See https://www.w3.org/publishing/epub32/epub-packages.html#attrdef-dir for more information.
Declaration
public EpubTextDirection? TextDirection { get; }