Enum InputMethodEditorMode

InputMethodEditorMode enumeration

Represents the default run-time mode of the Input Method Editor.

public enum InputMethodEditorMode

Values

NameValueDescription
NoControl0Does not control IME.
On1IME on.
Off2IME off. English mode.
Disable3IME off.User can’t turn on IME by keyboard.
Hiragana4IME on with Full-width hiragana mode.
Katakana5IME on with Full-width katakana mode.
KatakanaHalf6IME on with Half-width katakana mode.
AlphaFull7IME on with Full-width Alphanumeric mode.
Alpha8IME on with Half-width Alphanumeric mode.
HangulFull9IME on with Full-width hangul mode.
Hangul10IME on with Half-width hangul mode.
HanziFull11IME on with Full-width hanzi mode.
Hanzi12IME on with Half-width hanzi mode.

Examples

[C#]

namespace Demos
{
    using Aspose.Cells;
    using Aspose.Cells.Drawing;
    using Aspose.Cells.Drawing.ActiveXControls;
    using System;

    public class InputMethodEditorModeDemo
    {
        public static void InputMethodEditorModeExample()
        {
            // Initialize a new workbook
            Workbook workbook = new Workbook();
            Worksheet worksheet = workbook.Worksheets[0];

            // Add a TextBox ActiveX control to the worksheet
            Shape shape = worksheet.Shapes.AddActiveXControl(ControlType.TextBox, 1, 0, 1, 0, 100, 50);
            TextBoxActiveXControl textBoxControl = (TextBoxActiveXControl)shape.ActiveXControl;

            // Set the IME mode to Full-width Hiragana
            textBoxControl.IMEMode = InputMethodEditorMode.Hiragana;

            // Set other properties for demonstration
            textBoxControl.Text = "This is a test.";
            textBoxControl.IsEnabled = true;
            textBoxControl.IsLocked = false;
            textBoxControl.IsTransparent = false;
            textBoxControl.IsAutoSize = true;
            textBoxControl.Width = 200;
            textBoxControl.Height = 50;
            textBoxControl.ForeOleColor = System.Drawing.ColorTranslator.ToOle(System.Drawing.Color.Black);
            textBoxControl.BackOleColor = System.Drawing.ColorTranslator.ToOle(System.Drawing.Color.White);
            textBoxControl.IsVisible = true;
            textBoxControl.Shadow = false;

            // Save the workbook
            workbook.Save("InputMethodEditorModeExample.xlsx");
            workbook.Save("InputMethodEditorModeExample.pdf");
            return;
        }
    }
}

See Also