Control.DefaultImeMode Control.DefaultImeMode Control.DefaultImeMode Control.DefaultImeMode Property

定义

获取控件支持的默认输入法编辑器 (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.

适用于

另请参阅