InputMethod.GetPreferredImeState(DependencyObject) 方法

定义

返回指定的依赖对象的 PreferredImeState 附加属性值。

public:
 static System::Windows::Input::InputMethodState GetPreferredImeState(System::Windows::DependencyObject ^ target);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static System.Windows.Input.InputMethodState GetPreferredImeState (System.Windows.DependencyObject target);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetPreferredImeState : System.Windows.DependencyObject -> System.Windows.Input.InputMethodState
Public Shared Function GetPreferredImeState (target As DependencyObject) As InputMethodState

参数

target
DependencyObject

要为其检索 PreferredImeState 值的依赖对象。

返回

InputMethodState 枚举的成员,该枚举为依赖的对象指定当前 PreferredImeState

属性

例外

targetnull 时引发。

适用于

另请参阅