Show / Hide Table of Contents

Class EpubMetadataRights

Represents the rights held in and over the EPUB book.

See https://www.w3.org/publishing/epub32/epub-packages.html#sec-opf-dcmes-optional-def, https://idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.2.15, and http://purl.org/dc/elements/1.1/rights for more information.

Inheritance
object
EpubMetadataRights
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VersOne.Epub.Schema
Assembly: VersOne.Epub.dll
Syntax
public class EpubMetadataRights

Constructors

View Source

EpubMetadataRights(string, string?, EpubTextDirection?, string?)

Initializes a new instance of the EpubMetadataRights class.

Declaration
public EpubMetadataRights(string rights, string? id = null, EpubTextDirection? textDirection = null, string? language = null)
Parameters
Type Name Description
string rights

The text content of the rights.

string id

The unique ID of the rights or null if the rights don't have an ID.

EpubTextDirection? textDirection

The text direction of the rights or null if the rights don't specify a text direction.

string language

The language of the rights or null if the rights don't specify the language.

Exceptions
Type Condition
ArgumentNullException

The rights parameter is null.

Properties

View Source

Id

Gets the unique ID of the rights or null if the rights don'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 Source

Language

Gets the language of the rights or null if the rights don'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 Source

Rights

Gets the text content of the rights.

See https://www.w3.org/publishing/epub32/epub-packages.html#sec-opf-dcmes-optional-def, https://idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.2.15, and http://purl.org/dc/elements/1.1/rights for more information.

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

TextDirection

Gets the text direction of the rights or null if the rights don'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; }
Property type: EpubTextDirection?
  • View Source
In this article
Back to top Generated by DocFX