public static void SetPreferredImeSentenceMode(System.Windows.DependencyObject target, ImeSentenceModeValues value)
 {
 }
Exemple #2
0
        // This validates the ImeSentenceMode value.
        private bool IsValidSentenceMode(ImeSentenceModeValues mode) 
        {
            int mask = (int)(ImeSentenceModeValues.None              | 
                             ImeSentenceModeValues.PluralClause      | 
                             ImeSentenceModeValues.SingleConversion  |
                             ImeSentenceModeValues.Automatic         | 
                             ImeSentenceModeValues.PhrasePrediction  |
                             ImeSentenceModeValues.Conversation      |
                             ImeSentenceModeValues.DoNotCare);
 
           if (((int)mode & ~mask) != 0)
               return false; 
 
           return true;
        } 
Exemple #3
0
        /// <summary>
        /// Setter for PreferredImeSentenceMode DependencyProperty
        /// </summary>
        public static void SetPreferredImeSentenceMode(DependencyObject target, ImeSentenceModeValues value) 
        {
            if (target == null) 
            { 
                throw new ArgumentNullException("target");
            } 

            target.SetValue(PreferredImeSentenceModeProperty, value);
        }
 public static void SetPreferredImeSentenceMode(System.Windows.DependencyObject target, ImeSentenceModeValues value)
 {
 }