using System; namespace VersOne.Epub.Schema { /// /// Navigation link associated with a (represented by the <a> HTML tag in the navigation document). /// See for more information. /// public class Epub3NavAnchor { /// /// Initializes a new instance of the class. /// /// /// An IRI that resolves to a content document or a fragment within the EPUB book (represented by the 'href' HTML attribute in the navigation document) /// or null if the anchor doesn't contain an IRI. /// /// The textual content of the navigation link (represented by the inner content of the <a> HTML tag in the navigation document). /// /// The alternative title of the navigation link (represented by the 'title' HTML attribute in the navigation document) /// or null if the alternative title is not specified. /// /// /// The alternative text of the navigation link (represented by the 'title' HTML attribute in the navigation document) /// or null if the alternative text is not specified. /// /// /// The type of the structural semantics of the navigation link (represented by the 'epub:type' HTML attribute in the navigation document) /// or null if the anchor doesn't specify a type. /// /// The parameter is null. public Epub3NavAnchor(string? href, string text, string? title = null, string? alt = null, Epub3StructuralSemanticsProperty? type = null) { Href = href; Text = text ?? throw new ArgumentNullException(nameof(text)); Title = title; Alt = alt; Type = type; } /// /// /// Gets an IRI that resolves to a content document or a fragment within the EPUB book (represented by the 'href' HTML attribute in the navigation document) /// or null if the anchor doesn't contain an IRI. /// /// See for more information. /// public string? Href { get; } /// /// Gets the textual content of the navigation link (represented by the inner content of the <a> HTML tag in the navigation document). /// See for more information. /// public string Text { get; } /// /// /// Gets the alternative title of the navigation link (represented by the 'title' HTML attribute in the navigation document) /// or null if the alternative title is not specified. /// /// See for more information. /// public string? Title { get; } /// /// /// Gets the alternative text of the navigation link (represented by the 'title' HTML attribute in the navigation document) /// or null if the alternative text is not specified. /// /// See for more information. /// public string? Alt { get; } /// /// /// Gets the type of the structural semantics of the navigation link (represented by the 'epub:type' HTML attribute in the navigation document) /// or null if the anchor doesn't specify a type. /// /// See for more information. /// public Epub3StructuralSemanticsProperty? Type { get; } } }