ToolStripTextBox.ShortcutsEnabled 속성

정의

정의된 바로 가기를 사용할지 여부를 나타내는 값을 가져오거나 설정합니다.

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

속성 값

Boolean

바로 가기를 사용하려면 true이고, 그렇지 않으면 false입니다.

예제

다음 코드 예제에서는 속성을 비롯한 ShortcutsEnabled 다양한 ToolStripTextBox 공통 속성 설정을 위한 구문을 보여 줍니다.

// 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

설명

ShortcutsEnabled 속성을 사용하여 다음 바로 가기 키 조합을 사용하거나 사용하지 않도록 설정합니다.

바로 가기 키 바로 가기 키
CTRL+Z Ctrl+E
CTRL+C CTRL+I
Ctrl+X Ctrl+Y
Ctrl+V Ctrl+Backspace
Ctrl+A Ctrl+Delete
Ctrl+L Shift+Delete
Ctrl+R Shift+Insert

이 속성을 재정의하여 다른 바로 가기 키를 지정할 수 있습니다.

적용 대상