Udostępnij za pośrednictwem


TimedTextCue Class

Definition

Represents a text cue in a TimedMetadataTrack.

public ref class TimedTextCue sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TimedTextCue final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class TimedTextCue final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TimedTextCue
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class TimedTextCue
function TimedTextCue()
Public NotInheritable Class TimedTextCue
Inheritance
Object Platform::Object IInspectable TimedTextCue
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

After creating a TimeTextCue, you can add it to a TimedMetadataTrack by calling AddCue.

Constructors

TimedTextCue()

Initializes a new instance of the TimedTextCue class.

Properties

CueRegion

Gets or sets the TimedTextRegion of the cue, which defines the style of the rendering area for the cue.

CueStyle

Gets or sets the TimedTextStyle of the cue, which defines the style of the rendered text.

Duration

Gets or sets the duration of the cue.

Id

Gets or sets an identifier for the cue.

Lines

Gets the collection of TimedTextLine objects that convey the text of the cue.

StartTime

Gets the start time of the cue.

Applies to

See also