Class Subtitles
Defines attached properties for subtitle rendering.
Inherited Members
Namespace: Unosquare.FFME
Syntax
public sealed class Subtitles
Fields
EffectProperty
The text foreground effect dependency property.
Declaration
public static readonly DependencyProperty EffectProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
FontFamilyProperty
The font family property.
Declaration
public static readonly DependencyProperty FontFamilyProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
FontSizeProperty
The font size property.
Declaration
public static readonly DependencyProperty FontSizeProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
FontWeightProperty
The font weight property.
Declaration
public static readonly DependencyProperty FontWeightProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ForegroundProperty
The foreground text property.
Declaration
public static readonly DependencyProperty ForegroundProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
OutlineBrushProperty
The text outline brush dependency property.
Declaration
public static readonly DependencyProperty OutlineBrushProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
OutlineWidthProperty
The text outline width dependency property.
Declaration
public static readonly DependencyProperty OutlineWidthProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
TextProperty
The foreground text property.
Declaration
public static readonly DependencyProperty TextProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Methods
GetEffect(MediaElement)
Gets the effect.
Declaration
public static Effect GetEffect(MediaElement element)
Parameters
Type | Name | Description |
---|---|---|
MediaElement | element | The object. |
Returns
Type | Description |
---|---|
Effect | The value. |
GetFontFamily(MediaElement)
Gets the font family.
Declaration
public static FontFamily GetFontFamily(MediaElement element)
Parameters
Type | Name | Description |
---|---|---|
MediaElement | element | The object. |
Returns
Type | Description |
---|---|
FontFamily | The value. |
GetFontSize(MediaElement)
Gets the size of the font.
Declaration
public static double GetFontSize(MediaElement element)
Parameters
Type | Name | Description |
---|---|---|
MediaElement | element | The object. |
Returns
Type | Description |
---|---|
Double | The value. |
GetFontWeight(MediaElement)
Gets the font weight.
Declaration
public static FontWeight GetFontWeight(MediaElement element)
Parameters
Type | Name | Description |
---|---|---|
MediaElement | element | The object. |
Returns
Type | Description |
---|---|
FontWeight | The value. |
GetForeground(MediaElement)
Gets the text foreground.
Declaration
public static Brush GetForeground(MediaElement element)
Parameters
Type | Name | Description |
---|---|---|
MediaElement | element | The object. |
Returns
Type | Description |
---|---|
Brush | The value. |
GetOutlineBrush(MediaElement)
Gets the outline brush.
Declaration
public static Brush GetOutlineBrush(MediaElement element)
Parameters
Type | Name | Description |
---|---|---|
MediaElement | element | The object. |
Returns
Type | Description |
---|---|
Brush | The value. |
GetOutlineWidth(MediaElement)
Gets the width of the outline.
Declaration
public static Thickness GetOutlineWidth(MediaElement element)
Parameters
Type | Name | Description |
---|---|---|
MediaElement | element | The object. |
Returns
Type | Description |
---|---|
Thickness | The value. |
GetText(MediaElement)
Gets the text.
Declaration
public static string GetText(MediaElement element)
Parameters
Type | Name | Description |
---|---|---|
MediaElement | element | The object. |
Returns
Type | Description |
---|---|
String | The value. |
SetEffect(MediaElement, Effect)
Sets the effect.
Declaration
public static void SetEffect(MediaElement element, Effect value)
Parameters
Type | Name | Description |
---|---|---|
MediaElement | element | The object. |
Effect | value | The value. |
SetFontFamily(MediaElement, FontFamily)
Sets the font family.
Declaration
public static void SetFontFamily(MediaElement element, FontFamily value)
Parameters
Type | Name | Description |
---|---|---|
MediaElement | element | The object. |
FontFamily | value | The value. |
SetFontSize(MediaElement, Double)
Sets the size of the font.
Declaration
public static void SetFontSize(MediaElement element, double value)
Parameters
Type | Name | Description |
---|---|---|
MediaElement | element | The object. |
Double | value | The value. |
SetFontWeight(MediaElement, FontWeight)
Sets the font weight.
Declaration
public static void SetFontWeight(MediaElement element, FontWeight value)
Parameters
Type | Name | Description |
---|---|---|
MediaElement | element | The object. |
FontWeight | value | The value. |
SetForeground(MediaElement, Brush)
Sets the text foreground.
Declaration
public static void SetForeground(MediaElement element, Brush value)
Parameters
Type | Name | Description |
---|---|---|
MediaElement | element | The object. |
Brush | value | The value. |
SetOutlineBrush(MediaElement, Brush)
Sets the outline brush.
Declaration
public static void SetOutlineBrush(MediaElement element, Brush value)
Parameters
Type | Name | Description |
---|---|---|
MediaElement | element | The object. |
Brush | value | The value. |
SetOutlineWidth(MediaElement, Thickness)
Sets the width of the outline.
Declaration
public static void SetOutlineWidth(MediaElement element, Thickness value)
Parameters
Type | Name | Description |
---|---|---|
MediaElement | element | The object. |
Thickness | value | The value. |
SetText(MediaElement, String)
Sets the text.
Declaration
public static void SetText(MediaElement element, string value)
Parameters
Type | Name | Description |
---|---|---|
MediaElement | element | The object. |
String | value | The value. |