ToolStripTextBox.ShortcutsEnabled ToolStripTextBox.ShortcutsEnabled ToolStripTextBox.ShortcutsEnabled ToolStripTextBox.ShortcutsEnabled Property

Definición

Obtiene o establece un valor que indica si están habilitados los accesos directos definidos.Gets or sets a value indicating whether the defined shortcuts are enabled.

public:
 property bool ShortcutsEnabled { bool get(); void set(bool value); };
public bool ShortcutsEnabled { get; set; }
member this.ShortcutsEnabled : bool with get, set
Public Property ShortcutsEnabled As Boolean

Valor de propiedad

true para habilitar los accesos directos; en caso contrario, es false.true to enable the shortcuts; otherwise, false.

Ejemplos

En el ejemplo de código siguiente se muestra la sintaxis ToolStripTextBox para establecer diversos valores de propiedades ShortcutsEnabled comunes, incluida la propiedad.The following code example demonstrates the syntax for setting various ToolStripTextBox common property settings, including the ShortcutsEnabled property .

// This code example demonstrates the syntax for setting
// various ToolStripTextBox properties.
// 
toolStripTextBox1.AcceptsReturn = true;
toolStripTextBox1.AcceptsTab = true;
toolStripTextBox1.AutoCompleteCustomSource.AddRange(new string[] {
"This is line one.",
"Second line.",
"Another line."});
toolStripTextBox1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
toolStripTextBox1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
toolStripTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
toolStripTextBox1.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
toolStripTextBox1.HideSelection = false;
toolStripTextBox1.MaxLength = 32000;
toolStripTextBox1.Name = "toolStripTextBox1";
toolStripTextBox1.ShortcutsEnabled = false;
toolStripTextBox1.Size = new System.Drawing.Size(100, 25);
toolStripTextBox1.Text = "STRING1\r\nSTRING2\r\nSTRING3\r\nSTRING4";
toolStripTextBox1.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
' This code example demonstrates the syntax for setting
' various ToolStripTextBox properties.
' 
toolStripTextBox1.AcceptsReturn = True
toolStripTextBox1.AcceptsTab = True
toolStripTextBox1.AutoCompleteCustomSource.AddRange(New String() {"This is line one.", "Second line.", "Another line."})
toolStripTextBox1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend
toolStripTextBox1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource
toolStripTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
toolStripTextBox1.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper
toolStripTextBox1.HideSelection = False
toolStripTextBox1.MaxLength = 32000
toolStripTextBox1.Name = "toolStripTextBox1"
toolStripTextBox1.ShortcutsEnabled = False
toolStripTextBox1.Size = New System.Drawing.Size(100, 25)
toolStripTextBox1.Text = "STRING1" + ControlChars.Cr + ControlChars.Lf + "STRING2" + ControlChars.Cr + ControlChars.Lf + "STRING3" + ControlChars.Cr + ControlChars.Lf + "STRING4"
toolStripTextBox1.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center

Comentarios

Utilice la ShortcutsEnabled propiedad para habilitar o deshabilitar las siguientes combinaciones de teclas de método abreviado:Use the ShortcutsEnabled property to enable or disable the following shortcut key combinations:

Teclas de método abreviadoShortcut keys Teclas de método abreviadoShortcut keys
CTRL+ZCTRL+Z CTRL+ECTRL+E
CTRL+CCTRL+C CTRL+ICTRL+I
CTRL+XCTRL+X CTRL+YCTRL+Y
CTRL+VCTRL+V CTRL+RETROCESOCTRL+BACKSPACE
CTRL+ACTRL+A CTRL+SUPRCTRL+DELETE
CTRL+LCTRL+L MAYÚS + SUPRSHIFT+DELETE
CTRL+RCTRL+R MAYÚS + INSERTARSHIFT+INSERT

Puede invalidar esta propiedad para especificar otras teclas de método abreviado.You can override this property to specify other shortcut keys.

Se aplica a