TimedTextStyle Class

Definition

Defines the style of the rendered text in a TimedTextCue. You can set the style of a substring within a TimedTextLine by using the Subformats property.

public ref class TimedTextStyle 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 TimedTextStyle 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 TimedTextStyle 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 TimedTextStyle
[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 TimedTextStyle
function TimedTextStyle()
Public NotInheritable Class TimedTextStyle
Inheritance
Object Platform::Object IInspectable TimedTextStyle
Attributes

Windows requirements

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

Remarks

Version history

Windows version SDK version Value added
1703 15063 FontStyle
1703 15063 IsLineThroughEnabled
1703 15063 IsOverlineEnabled
1703 15063 IsUnderlineEnabled

Constructors

TimedTextStyle()

Initializes a new instance of the TimedTextStyle class.

Properties

Background

Gets or sets the background color of timed text.

Bouten

Gets the bouten mark associated with the timed text.

FlowDirection

Gets or sets a value indicating the direction that timed text is flowed.

FontAngleInDegrees

Gets or sets the font angle of slanted text, in degrees.

FontFamily

Gets or sets the font family of timed text.

FontSize

Gets or sets the font size of timed text.

FontStyle

Gets or sets a value that specifies the font style of timed text.

FontWeight

Gets or sets the weight of timed text.

Foreground

Gets or sets the color of the timed text glyphs.

IsBackgroundAlwaysShown

Gets or sets a value indicating if the background color stays visible when no text is being displayed.

IsLineThroughEnabled

Gets or sets a value indicating whether strikethrough text is enabled for the timed text.

IsOverlineEnabled

Gets or sets a value indicating whether overline text is enabled for the timed text.

IsTextCombined

Gets or sets a boolean value specifying whether the timed text is combined on a single line.

IsUnderlineEnabled

Gets or sets a value indicating whether underline text is enabled for the timed text.

LineAlignment

Gets or sets the alignment of timed text lines.

Name

Gets or sets the name of the timed text style.

OutlineColor

Gets or sets the outline color of timed text.

OutlineRadius

Gets or sets the radius of the blur applied to outline of the timed text.

OutlineThickness

Gets or sets the thickness of the outline of the timed text.

Ruby

Gets the ruby text associated with the timed text.

Applies to

See also