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.Off ImeMode 控制項,屬性通常TextBox會設定為。The ImeMode property is typically set to ImeMode.Off for a TextBox control that is intended to only enter numeric values. Form類別的ImeMode.NoControl屬性值會設定為。 ImeModeThe ImeMode property value is set to ImeMode.NoControl for the Form class.

大部分不直接支援輸入法的類別,或允許來自輸入法的直接輸入,都會將這個屬性的值設定為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.Disable設定為。The 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.

當全域輸入模式生效時,Windows 8 上會忽略屬性。ImeModeThe 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.

適用於

另請參閱