/// <summary>Sets the <see cref="T:System.Windows.Media.TextHintingMode" /> for the specified element.</summary>
 /// <param name="element">The element to set the <see cref="T:System.Windows.Media.TextHintingMode" /> for.</param>
 /// <param name="value">The <see cref="T:System.Windows.Media.TextHintingMode" /> to set on <paramref name="element" />.</param>
 /// <exception cref="T:System.ArgumentNullException">
 ///         <paramref name="element" /> is <see langword="null" />. </exception>
 // Token: 0x06001680 RID: 5760 RVA: 0x00070333 File Offset: 0x0006E533
 public static void SetTextHintingMode(DependencyObject element, TextHintingMode value)
 {
     if (element == null)
     {
         throw new ArgumentNullException("element");
     }
     element.SetValue(TextOptions.TextHintingModeProperty, value);
 }
Ejemplo n.º 2
0
        /// <summary>
        ///     Returns whether or not an enumeration instance a valid value.
        ///     This method is designed to be used with ValidateValueCallback, and thus
        ///     matches it's prototype.
        /// </summary>
        /// <param name="valueObject">
        ///     Enumeration value to validate.
        /// </param>
        /// <returns> 'true' if the enumeration contains a valid value, 'false' otherwise. </returns>
        public static bool IsTextHintingModeValid(object valueObject)
        {
            TextHintingMode value = (TextHintingMode)valueObject;

            return((value == TextHintingMode.Auto) ||
                   (value == TextHintingMode.Fixed) ||
                   (value == TextHintingMode.Animated));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Sets the <see cref="TextHintingMode"/> for this <see cref="FrameworkElement"/>.
        /// </summary>
        /// <exception cref="ArgumentNullException">
        /// The element is null.
        /// </exception>
        public static void SetTextHintingMode(FrameworkElement element, TextHintingMode value)
        {
            if (element == null)
            {
                throw new ArgumentNullException("element");
            }

            element.SetValue(TextHintingModeProperty, value);
        }
Ejemplo n.º 4
0
        [FriendAccessAllowed]   // used by Framework 
        public static void SetTextHintingMode(DependencyObject element, TextHintingMode value)
        {
            if (element == null)
            { 
                throw new ArgumentNullException("element");
            } 
 
            element.SetValue(TextHintingModeProperty, value);
        } 
 void UpdateViewLayoutOptionsCache(FrameworkElement view)
 {
     m_textRenderingMode  = TextOptions.GetTextRenderingMode(view);
     m_textHintingMode    = TextOptions.GetTextHintingMode(view);
     m_textFormattingMode = TextOptions.GetTextFormattingMode(view);
 }
Ejemplo n.º 6
0
		public static void SetTextHintingMode (FrameworkElement target, TextHintingMode textHintingMode)
		{
			target.SetValue (TextOptions.TextHintingModeProperty, textHintingMode);
		}
Ejemplo n.º 7
0
 public static NElement TextOptions(this NElement self, TextHintingMode value)
 {
     return(self.Set(Properties.TextOptionsTextHintingMode, value));
 }
 public static void SetTextHintingMode(System.Windows.DependencyObject element, TextHintingMode value)
 {
 }
 public static void SetTextHintingMode(System.Windows.DependencyObject element, TextHintingMode value)
 {
 }
Ejemplo n.º 10
0
 public static void SetTextHintingMode(FrameworkElement target, TextHintingMode textHintingMode)
 {
     target.SetValue(TextOptions.TextHintingModeProperty, textHintingMode);
 }