HeaderPane
Main
Hide
Share Link
Print

InputModeEnum Enumeration

Defines whether typed characters are inserted or replace the existing characters.

Namespace: Softelvdm.SftMaskNET
Assembly: Softelvdm.SftMaskNET

Syntax

public enum InputModeEnum;
Public Enum InputModeEnum

Values

NameDescription
InsertOnlyCharacters are always inserted; the Insert key has no effect.
InsertCharacters are inserted; the Insert key switches between insert and overtype mode.
OvertypeCharacters replace the existing characters; the Insert key switches between insert and overtype mode.
InsertOnEntryInsert mode is used each time the control receives the input focus; the Insert key switches modes.
OvertypeOnEntryOvertype mode is used each time the control receives the input focus; the Insert key switches modes.
SharedAll controls using this mode share one insert/overtype setting, which the Insert key switches.

Comments

Defines whether typed characters are inserted or replace the existing characters.

Examples

C# View entire sample code

                field.TextChanged += Field_TextChanged;
            }

            foreach (string name in new string[] { "en-US", "de-DE", "fr-FR", "hi-IN", "ja-JP" })
                comboCulture.Items.Add(CultureInfo.GetCultureInfo(name));
            comboCulture.SelectedItem = CultureInfo.GetCultureInfo("en-US");
            FillCombo(comboDarkMode, typeof(DarkModeEnum), sftMaskPhone.DarkMode);
            FillCombo(comboHighContrast, typeof(HighContrastModeEnum), sftMaskPhone.HighContrastMode);
            FillCombo(comboInputMode, typeof(InputModeEnum), sftMaskPhone.InputMode);
            FillCombo(comboEntrySelect, typeof(EntrySelectEnum), sftMaskPhone.EntrySelect);
            comboPrompt.Items.AddRange(new object[] { "(space)", "_", "#", "*" });
            comboPrompt.SelectedIndex = 1;
            checkUnderline.Checked = sftMaskPhone.PromptUnderline;
            ShowColor();
            DpiChanged += Form1_DpiChanged;
        }

VB.NET View entire sample code

        Next

        For Each name As String In New String() {"en-US", "de-DE", "fr-FR", "hi-IN", "ja-JP"}
            ComboCulture.Items.Add(CultureInfo.GetCultureInfo(name))
        Next
        ComboCulture.SelectedItem = CultureInfo.GetCultureInfo("en-US")
        FillCombo(ComboDarkMode, GetType(DarkModeEnum), SftMaskPhone.DarkMode)
        FillCombo(ComboHighContrast, GetType(HighContrastModeEnum), SftMaskPhone.HighContrastMode)
        FillCombo(ComboInputMode, GetType(InputModeEnum), SftMaskPhone.InputMode)
        FillCombo(ComboEntrySelect, GetType(EntrySelectEnum), SftMaskPhone.EntrySelect)
        ComboPrompt.Items.AddRange(New Object() {"(space)", "_", "#", "*"})
        ComboPrompt.SelectedIndex = 1
        CheckUnderline.Checked = SftMaskPhone.PromptUnderline
        ShowColor()
    End Sub

See Also Classes | SftMask/NET 3.0