File size: 1,587 Bytes
fab29d7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | using System;
namespace VersOne.Epub.Schema
{
/// <summary>
/// <para>
/// Parsed content of the reference to an element (typically, a textual element) in the EPUB content document.
/// This class corresponds to the <text> element in a media overlay document.
/// </para>
/// <para>See <see href="https://www.w3.org/TR/epub-33/#sec-smil-text-elem" /> for more information.</para>
/// </summary>
public class SmilText
{
/// <summary>
/// Initializes a new instance of the <see cref="SmilText" /> class.
/// </summary>
/// <param name="id">An optional identifier of this element.</param>
/// <param name="src">The relative IRI reference of the corresponding EPUB content document, including a fragment identifier that references the specific element.</param>
/// <exception cref="ArgumentNullException">The <paramref name="src" /> parameter is <c>null</c>.</exception>
public SmilText(string? id, string src)
{
Id = id;
Src = src ?? throw new ArgumentNullException(nameof(src));
}
/// <summary>
/// Gets an optional identifier of this element. If present, this value is unique within the scope of the media overlay document.
/// </summary>
public string? Id { get; }
/// <summary>
/// Gets the relative IRI reference of the corresponding EPUB content document, including a fragment identifier that references the specific element.
/// </summary>
public string Src { get; }
}
}
|