コード例 #1
0
 /// <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);
 }
コード例 #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));
        }
コード例 #3
0
ファイル: TextOptions.cs プロジェクト: mjunaidi/OpenSilver
        /// <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);
        }
コード例 #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);
        } 
コード例 #5
0
 void UpdateViewLayoutOptionsCache(FrameworkElement view)
 {
     m_textRenderingMode  = TextOptions.GetTextRenderingMode(view);
     m_textHintingMode    = TextOptions.GetTextHintingMode(view);
     m_textFormattingMode = TextOptions.GetTextFormattingMode(view);
 }
コード例 #6
0
ファイル: TextOptions.cs プロジェクト: dfr0/moon
		public static void SetTextHintingMode (FrameworkElement target, TextHintingMode textHintingMode)
		{
			target.SetValue (TextOptions.TextHintingModeProperty, textHintingMode);
		}
コード例 #7
0
 public static NElement TextOptions(this NElement self, TextHintingMode value)
 {
     return(self.Set(Properties.TextOptionsTextHintingMode, value));
 }
コード例 #8
0
 public static void SetTextHintingMode(System.Windows.DependencyObject element, TextHintingMode value)
 {
 }
コード例 #9
0
 public static void SetTextHintingMode(System.Windows.DependencyObject element, TextHintingMode value)
 {
 }
コード例 #10
0
ファイル: TextOptions.cs プロジェクト: ynkbt/moon
 public static void SetTextHintingMode(FrameworkElement target, TextHintingMode textHintingMode)
 {
     target.SetValue(TextOptions.TextHintingModeProperty, textHintingMode);
 }