using System; namespace VersOne.Epub.Schema { /// /// Navigation header associated with a (represented by the <span> HTML tag in the navigation document). /// See for more information. /// public class Epub3NavSpan { /// /// Initializes a new instance of the class. /// /// The textual content of the navigation header (represented by the inner content of the <span> HTML tag in the navigation document). /// /// The alternative title of the navigation header (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 header (represented by the 'title' HTML attribute in the navigation document) /// or null if the alternative text is not specified. /// /// The parameter is null. public Epub3NavSpan(string text, string? title, string? alt = null) { Text = text ?? throw new ArgumentNullException(nameof(text)); Title = title; Alt = alt; } /// /// Gets the textual content of the navigation header (represented by the inner content of the <span> HTML tag in the navigation document). /// See for more information. /// public string Text { get; } /// /// /// Gets the alternative title of the navigation header (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 header (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; } } }