コード例 #1
0
 /// <summary>
 /// Gets the text.
 /// </summary>
 /// <param name="element">The object.</param>
 /// <returns>The value.</returns>
 public static string GetText(MediaElement element) => element?.GetValue(TextProperty) as string;
コード例 #2
0
 /// <summary>
 /// Gets the text foreground.
 /// </summary>
 /// <param name="obj">The object.</param>
 /// <returns>The value</returns>
 public static Brush GetForeground(MediaElement obj)
 {
     return(obj.GetValue(ForegroundProperty) as Brush);
 }
コード例 #3
0
 /// <summary>
 /// Gets the effect.
 /// </summary>
 /// <param name="obj">The object.</param>
 /// <returns>The value</returns>
 public static Effect GetEffect(MediaElement obj)
 {
     return(obj.GetValue(EffectProperty) as Effect);
 }
コード例 #4
0
 /// <summary>
 /// Gets the font weight.
 /// </summary>
 /// <param name="obj">The object.</param>
 /// <returns>The value</returns>
 public static FontWeight GetFontWeight(MediaElement obj)
 {
     return((FontWeight)obj.GetValue(FontWeightProperty));
 }
コード例 #5
0
 /// <summary>
 /// Gets the font family.
 /// </summary>
 /// <param name="obj">The object.</param>
 /// <returns>The value</returns>
 public static FontFamily GetFontFamily(MediaElement obj)
 {
     return(obj.GetValue(FontFamilyProperty) as FontFamily);
 }
コード例 #6
0
 /// <summary>
 /// Gets the outline brush.
 /// </summary>
 /// <param name="obj">The object.</param>
 /// <returns>The value.</returns>
 public static Brush GetOutlineBrush(MediaElement obj)
 {
     return(obj.GetValue(OutlineBrushProperty) as Brush);
 }
コード例 #7
0
 /// <summary>
 /// Gets the size of the font.
 /// </summary>
 /// <param name="obj">The object.</param>
 /// <returns>The value</returns>
 public static double GetFontSize(MediaElement obj)
 {
     return((double)obj.GetValue(FontSizeProperty));
 }
コード例 #8
0
 /// <summary>
 /// Gets the font family.
 /// </summary>
 /// <param name="element">The object.</param>
 /// <returns>The value.</returns>
 public static FontFamily GetFontFamily(MediaElement element) => element?.GetValue(FontFamilyProperty) as FontFamily;
コード例 #9
0
 /// <summary>
 /// Gets the width of the outline.
 /// </summary>
 /// <param name="obj">The object.</param>
 /// <returns>The value.</returns>
 public static Thickness GetOutlineWidth(MediaElement obj)
 {
     return((Thickness)obj.GetValue(OutlineWidthProperty));
 }
コード例 #10
0
 /// <summary>
 /// Gets the size of the font.
 /// </summary>
 /// <param name="element">The object.</param>
 /// <returns>The value.</returns>
 public static double GetFontSize(MediaElement element) => (double)(element?.GetValue(FontSizeProperty) ?? default(double));
コード例 #11
0
 /// <summary>
 /// Gets the font weight.
 /// </summary>
 /// <param name="element">The object.</param>
 /// <returns>The value.</returns>
 public static FontWeight GetFontWeight(MediaElement element) => (FontWeight)(element?.GetValue(FontWeightProperty) ?? FontWeights.Normal);
コード例 #12
0
 /// <summary>
 /// Gets the outline brush.
 /// </summary>
 /// <param name="element">The object.</param>
 /// <returns>The value.</returns>
 public static Brush GetOutlineBrush(MediaElement element) => element?.GetValue(OutlineBrushProperty) as Brush;
コード例 #13
0
 /// <summary>
 /// Gets the width of the outline.
 /// </summary>
 /// <param name="element">The object.</param>
 /// <returns>The value.</returns>
 public static Thickness GetOutlineWidth(MediaElement element) => (Thickness)(element?.GetValue(OutlineWidthProperty) ?? default(Thickness));
コード例 #14
0
 /// <summary>
 /// Gets the effect.
 /// </summary>
 /// <param name="element">The object.</param>
 /// <returns>The value.</returns>
 public static Effect GetEffect(MediaElement element) => element?.GetValue(EffectProperty) as Effect;
コード例 #15
0
 /// <summary>
 /// Gets the text foreground.
 /// </summary>
 /// <param name="element">The object.</param>
 /// <returns>The value.</returns>
 public static Brush GetForeground(MediaElement element) => element?.GetValue(ForegroundProperty) as Brush;
コード例 #16
0
 /// <summary>
 /// Gets the text.
 /// </summary>
 /// <param name="obj">The object.</param>
 /// <returns>The value</returns>
 public static string GetText(MediaElement obj)
 {
     return(obj.GetValue(TextProperty) as string);
 }