InputMethod.GetIsInputMethodEnabled Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the value for the InputMethod..::.IsInputMethodEnabled attached property on the specified object.
Namespace: System.Windows.Input
Assembly: System.Windows (in System.Windows.dll)
Syntax
Public Shared Function GetIsInputMethodEnabled ( _
target As DependencyObject _
) As Boolean
public static bool GetIsInputMethodEnabled(
DependencyObject target
)
Parameters
- target
Type: System.Windows..::.DependencyObject
The object to get the InputMethod..::.IsInputMethodEnabled attached property value from.
Return Value
Type: System..::.Boolean
The InputMethod..::.IsInputMethodEnabled attached property value.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | target is not a TextBox. |
| ArgumentNullException | target is nullNothingnullptra null reference (Nothing in Visual Basic). |
Remarks
target should be a TextBox (or related type such as PasswordBox).
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone