Control.DefaultImeMode 屬性

定義

取得控制項支援的預設輸入法 (IME) 模式。Gets the default Input Method Editor (IME) mode supported by the control.

protected:
 virtual property System::Windows::Forms::ImeMode DefaultImeMode { System::Windows::Forms::ImeMode get(); };
protected virtual System.Windows.Forms.ImeMode DefaultImeMode { get; }
member this.DefaultImeMode : System.Windows.Forms.ImeMode
Protected Overridable ReadOnly Property DefaultImeMode As ImeMode

屬性值

其中一個 ImeMode 值。One of the ImeMode values.

範例

下列程式碼範例會覆寫 DefaultImeMode 屬性來關閉輸入法方法編輯器。The following code example overrides the DefaultImeMode property to turn off the Input Method Editor.

protected:
   property System::Windows::Forms::ImeMode DefaultImeMode 
   {
      virtual System::Windows::Forms::ImeMode get() override
      {
         // Disable the IME mode for the control.
         return ::ImeMode::Off;
      }

   }
protected override ImeMode DefaultImeMode
{
   get
   {
      // Disable the IME mode for the control.
      return ImeMode.Off;
   }
}
Protected Overrides ReadOnly Property DefaultImeMode() As ImeMode
   Get
      ' Disable the IME mode for the control.
      Return ImeMode.Off
   End Get
End Property

備註

輸入法(IME)是一種程式,可讓使用者使用標準鍵盤輸入複雜的字元和符號,例如日文中文字元。An Input Method Editor (IME) is a program that enables users to enter complex characters and symbols, such as Japanese Kanji characters, by using a standard keyboard.

Control 類別中執行時,這個屬性一律會傳回 ImeMode.Inherit 值。As implemented in the Control class, this property always returns the ImeMode.Inherit value. Inherit 值指定要從父控制項繼承 IME 模式。The Inherit value specifies that the IME mode is inherited from the parent control.

給繼承者的注意事項

覆寫衍生類別中的 DefaultImeMode 屬性時,請使用基類的 DefaultImeMode 屬性來擴充基底的執行。When overriding the DefaultImeMode property in a derived class, use the base class's DefaultImeMode property to extend the base implementation. 否則,您必須提供所有的實作為。Otherwise, you must provide all the implementation.

適用於

另請參閱