Class Smil
Parsed content of a EPUB 3 media overlay document. This class corresponds to the <smil> element which is the root element for a media overlay document.
See https://www.w3.org/publishing/epub32/epub-mediaoverlays.html#sec-smil-smil-elem for more information.
Inherited Members
Namespace: VersOne.Epub.Schema
Assembly: VersOne.Epub.dll
Syntax
public class Smil
Constructors
View SourceSmil(string?, SmilVersion, string?, SmilHead?, SmilBody)
Initializes a new instance of the Smil class.
Declaration
public Smil(string? id, SmilVersion version, string? epubPrefix, SmilHead? head, SmilBody body)
Parameters
Type | Name | Description |
---|---|---|
string | id | An optional identifier of this element. |
SmilVersion | version | The version number of the SMIL specification to which this media overlay adheres. Currently, it must always be SMIL_3. |
string | epubPrefix | Additional metadata vocabulary prefixes or |
SmilHead | head | An optional media overlay head which acts as a container for metadata elements or |
SmilBody | body | The media overlay body which is the starting point for the presentation contained in the media overlay document. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The |
Properties
View SourceBody
Gets the media overlay body which is the starting point for the presentation contained in the media overlay document.
Declaration
public SmilBody Body { get; }
Property type: SmilBody
View SourceEpubPrefix
Gets additional metadata vocabulary prefixes or null
if there are no prefixes specified.
Declaration
public string? EpubPrefix { get; }
Property type: string
View SourceHead
Gets an optional media overlay head which acts as a container for metadata elements or null
if the document doesn't specify any metadata.
Declaration
public SmilHead? Head { get; }
Property type: SmilHead
View SourceId
Gets an optional identifier of this element. If present, this value is unique within the scope of the media overlay document.
Declaration
public string? Id { get; }
Property type: string
View SourceVersion
Gets the version number of the SMIL specification to which this media overlay adheres. Currently, it is always SMIL_3.
Declaration
public SmilVersion Version { get; }