コード例 #1
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 IsClearTypeHintValid(object valueObject)
        {
            ClearTypeHint value = (ClearTypeHint)valueObject;

            return((value == ClearTypeHint.Auto) ||
                   (value == ClearTypeHint.Enabled));
        }
コード例 #2
0
 /// <summary>
 /// Writes the attached property ClearTypeHint to the given object.
 /// </summary>
 public static void SetClearTypeHint(DependencyObject target, ClearTypeHint clearTypeHint)
 {
     if (target == null)
     {
         throw new ArgumentNullException("target");
     }
     target.SetValue(ClearTypeHintProperty, clearTypeHint);
 }
コード例 #3
0
 public static void SetClearTypeHint(System.Windows.DependencyObject target, ClearTypeHint clearTypeHint)
 {
 }
コード例 #4
0
ファイル: RenderOptions.cs プロジェクト: JianwenSun/cc
 /// <summary>
 /// Writes the attached property ClearTypeHint to the given object.
 /// </summary>
 public static void SetClearTypeHint(DependencyObject target, ClearTypeHint clearTypeHint)
 {
     if (target == null) { throw new ArgumentNullException("target"); }
     target.SetValue(ClearTypeHintProperty, clearTypeHint);
 } 
コード例 #5
0
 public static void SetClearTypeHint(System.Windows.DependencyObject target, ClearTypeHint clearTypeHint)
 {
 }