Control.ImeMode Control.ImeMode Control.ImeMode Control.ImeMode Property

定义

获取或设置控件的输入法编辑器 (IME) 模式。Gets or sets the Input Method Editor (IME) mode of the control.

public:
 property System::Windows::Forms::ImeMode ImeMode { System::Windows::Forms::ImeMode get(); void set(System::Windows::Forms::ImeMode value); };
public System.Windows.Forms.ImeMode ImeMode { get; set; }
member this.ImeMode : System.Windows.Forms.ImeMode with get, set
Public Property ImeMode As ImeMode

属性值

ImeMode 值之一。One of the ImeMode values. 默认值为 InheritThe default is Inherit.

异常

所赋的值不是之一ImeMode枚举值。The assigned value is not one of the ImeMode enumeration values.

注解

IME 是一个程序,使用户能够输入复杂字符和符号,如日本汉字字符,使用标准键盘。An IME is a program that enables users to enter complex characters and symbols, such as Japanese Kanji characters, using a standard keyboard. ImeMode属性通常设置为ImeMode.OffTextBox旨在只输入数字值的控件。The ImeMode property is typically set to ImeMode.Off for a TextBox control that is intended to only enter numeric values. ImeMode属性值设置为ImeMode.NoControlForm类。The ImeMode property value is set to ImeMode.NoControl for the Form class.

大多数类不能直接支持输入法编辑器,或允许直接从 IME,输入将设置此属性设置为值NoControlMost classes that do not directly support Input Method Editors, or allow direct input from an IME, will set the value of this property to NoControl.

重要

用户可以以交互方式更改ImeMode除非已以编程方式设置ImeMode.DisableThe user can interactively change the ImeMode unless it has been programmatically set to ImeMode.Disable. 在这种情况下,用户将无法再使用 IME。In this case, the user will not be able to use the IME.

ImeMode全局输入的模式,则将忽略在 Windows 8 上属性。The ImeMode property is ignored on Windows 8 when the global input mode is in effect. 有关详细信息,请参阅交换机文本输入从更改每个线程为每个用户For more info, see Switch Text Input Changed from Per-Thread to Per-User.

适用于

另请参阅