ContainerControl.CanEnableIme 屬性


取得值,這個值表示 ImeMode 屬性是否可以設定為使用中的值,以啟用 IME 支援。Gets a value indicating whether the ImeMode property can be set to an active value, to enable IME support.

 virtual property bool CanEnableIme { bool get(); };
protected override bool CanEnableIme { get; }
member this.CanEnableIme : bool
Protected Overrides ReadOnly Property CanEnableIme As Boolean



所有情況下都是 falsefalse in all cases.


.NET Framework 2.0.NET Framework 2.0 和更新版本中,IME 功能是由架構所處理,而個別控制項的原生 IME 支援則是停用的。In the .NET Framework 2.0.NET Framework 2.0 and later, IME functionality is handled by the framework and native IME support for individual controls is disabled.

衍生自類別的使用者控制項 ContainerControl 可以藉由覆寫這個屬性來傳回,藉以啟用原生 IME 支援 trueA user control that derives from the ContainerControl class can enable native IME support by overriding this property to return true. 不過,應用程式會負責確保原生 IME 與 Windows Forms 輸入法之間沒有衝突。However, the application is then responsible for making sure that there are no conflicts between the native IME and the Windows Forms IME. 不支援此狀況。This scenario is not supported.