Table of Contents

Interface ITextTrackCue

Namespace
AngleSharp.Media.Dom
Assembly
AngleSharp.dll

Represents a text track cue.

[DomName("TextTrackCue")]
public interface ITextTrackCue : IEventTarget
Inherited Members
Extension Methods

Properties

Alignment

Gets or sets a string representing the text track cue alignment, as follows. If it is start alignment: the string "start". If it is middle alignment: the string "middle". If it is end alignment: the string "end". If it is left alignment: the string "left". If it is right alignment: the string "right".

[DomName("align")]
string Alignment { get; set; }

Property Value

string

EndTime

Gets or sets the text track cue end time, in seconds.

[DomName("endTime")]
double EndTime { get; set; }

Property Value

double

Entered

Event triggered after entering.

[DomName("onenter")]
DomEventHandler Entered { get; set; }

Property Value

DomEventHandler

Exited

Event triggered after exiting.

[DomName("onexit")]
DomEventHandler Exited { get; set; }

Property Value

DomEventHandler

Id

Gets the text track cue identifier.

[DomName("id")]
string Id { get; set; }

Property Value

string

IsPausedOnExit

Gets or sets the text track cue pause-on-exit flag.

[DomName("pauseOnExit")]
bool IsPausedOnExit { get; set; }

Property Value

bool

IsSnappedToLines

Gets or sets the text track cue snap-to-lines flag.

[DomName("snapToLines")]
bool IsSnappedToLines { get; set; }

Property Value

bool

Line

Gets or sets the text track cue line position. In the case of the value being auto, the string "auto" is returned.

[DomName("line")]
int Line { get; set; }

Property Value

int

Position

Gets or sets the text track cue text position.

[DomName("position")]
int Position { get; set; }

Property Value

int

Size

Gets or sets the text track cue size.

[DomName("size")]
int Size { get; set; }

Property Value

int

StartTime

Gets or sets the text track cue start time, in seconds.

[DomName("startTime")]
double StartTime { get; set; }

Property Value

double

Text

Gets or sets the text track cue text in raw unparsed form.

[DomName("text")]
string Text { get; set; }

Property Value

string

Track

Gets the assigned track for this cue.

[DomName("track")]
ITextTrack Track { get; }

Property Value

ITextTrack

Vertical

Gets or sets a string representing the text track cue writing direction, as follows. If it is horizontal: The empty string. If it is vertical growing left: The string "rl". If it is vertical growing right: The string "lr".

[DomName("vertical")]
string Vertical { get; set; }

Property Value

string

Methods

AsHtml()

Returns the text track cue text as a DocumentFragment of HTML elements and other DOM nodes.

[DomName("getCueAsHTML")]
IDocumentFragment AsHtml()

Returns

IDocumentFragment

The document fragment.