80 references to Up
System.Windows.Forms (39)
System\Windows\Forms\Control.cs (2)
6240
case Keys.
Up
:
12787
|| IsKeyDown(Keys.
Up
, stateArray)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
10120
case Keys.
Up
:
15705
case Keys.
Up
:
21959
or Keys.
Up
=> true,
24419
case Keys.
Up
:
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
1521
((e.KeyCode == Keys.Down || e.KeyCode == Keys.
Up
) && e.Alt)) &&
1522
(!e.Alt || (e.KeyCode == Keys.Down || e.KeyCode == Keys.
Up
)) &&
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
94
maskedKeyData == Keys.
Up
||
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
165
case Keys.
Up
:
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1424
case Keys.
Up
:
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
919
Keys.
Up
or Keys.Down or Keys.PageUp or Keys.PageDown or Keys.Home or Keys.End or Keys.Left or Keys.Right => true,
System\Windows\Forms\Controls\ListView\ListView.cs (2)
6687
if ((lvkd->wVKey == (short)Keys.Down || lvkd->wVKey == (short)Keys.
Up
) && SelectedItems.Count > 0)
6701
if (lvkd->wVKey == (short)Keys.
Up
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (7)
2458
if (keyCode == Keys.
Up
)
2487
if (!e.Alt && (e.KeyCode == Keys.
Up
|| e.KeyCode == Keys.Down))
2714
if (keyCode == Keys.
Up
&& altPressed && DropDownButton.Visible && (_dropDownHolder is not null) && _dropDownHolder.Visible)
2729
case Keys.
Up
:
2731
int position = keyCode == Keys.
Up
? _selectedRow - 1 : _selectedRow + 1;
2928
(keyCode == Keys.
Up
|| keyCode == Keys.Down))
3898
case Keys.
Up
:
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1277
Keys.
Up
or Keys.Down or Keys.PageUp or Keys.PageDown or Keys.Home or Keys.End or Keys.Left or Keys.Right => true,
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
2784
case Keys.
Up
:
3051
case Keys.
Up
:
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.cs (1)
57
case Keys.
Up
:
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (2)
573
if (isTopLevel && (keyCode == Keys.Down || keyCode == Keys.
Up
|| keyCode == Keys.Enter || (SupportsSpaceKey && keyCode == Keys.Space)))
608
if (isTopLevel && (keyCode == Keys.Down || keyCode == Keys.
Up
))
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (2)
425
if (InterceptArrowKeys && (e.KeyCode == Keys.
Up
|| e.KeyCode == Keys.Down) && !Spinning)
438
if (InterceptArrowKeys && (e.KeyCode == Keys.
Up
|| e.KeyCode == Keys.Down))
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
598
if (e.KeyData == Keys.
Up
)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
1209
case Keys.
Up
:
System\Windows\Forms\Layout\Containers\SplitContainer.cs (4)
944
&& (e.KeyData == Keys.Right || e.KeyData == Keys.Down || e.KeyData == Keys.Left || e.KeyData == Keys.
Up
))
952
if (_splitterFocused && (e.KeyData == Keys.Left || e.KeyData == Keys.
Up
))
1011
&& (e.KeyData == Keys.Right || e.KeyData == Keys.Down || e.KeyData == Keys.Left || e.KeyData == Keys.
Up
))
2313
case Keys.
Up
:
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
990
case Keys.
Up
:
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
1014
case Keys.
Up
:
System\Windows\Forms\SendKeys\SendKeys.cs (1)
32
new("UP", Keys.
Up
),
System\Windows\Forms\Shortcut.cs (1)
555
AltUpArrow = Keys.Alt + Keys.
Up
,
System.Windows.Forms.Design (12)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
312
if (keyData is (Keys.Alt | Keys.Down) or (Keys.Alt | Keys.
Up
) or Keys.F4)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
127
if (keyData is (Keys.Alt | Keys.Down) or (Keys.Alt | Keys.
Up
) or Keys.F4)
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (2)
219
if (e.KeyCode == Keys.
Up
)
341
if (keyData is Keys.Down or Keys.
Up
)
System\Drawing\Design\ColorEditor.ColorPalette.cs (2)
230
Keys.Left or Keys.Right or Keys.
Up
or Keys.Down or Keys.Enter => true,
290
case Keys.
Up
:
System\Drawing\Design\SelectionPanelBase.cs (1)
69
case Keys.
Up
:
System\Drawing\SelectionPanelBase.SelectionPanelRadioButton.cs (1)
21
Keys.Left or Keys.Right or Keys.
Up
or Keys.Down or Keys.Return => true,
System\Windows\Forms\Design\DesignerFrame.cs (1)
194
Keys.
Up
=> (SCROLLBAR_COMMAND.SB_LINEUP, (MessageId)PInvokeCore.WM_VSCROLL),
System\Windows\Forms\Design\NavigationalTableLayoutPanel.cs (1)
31
bool up = keyData == Keys.
Up
;
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
30
Keys.Right, Keys.S, Keys.Space, Keys.T, Keys.Tab, Keys.U, Keys.
Up
, Keys.V, Keys.W, Keys.X, Keys.Y, Keys.Z
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1076
case Keys.
Up
:
System.Windows.Forms.Tests (27)
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (2)
760
KeyboardSimulator.KeyPress(listView, Keys.
Up
);
815
KeyboardSimulator.KeyPress(listView, Keys.
Up
);
System\Windows\Forms\ComboBoxTests.cs (1)
2597
[InlineData(Keys.
Up
, 9, 9)]
System\Windows\Forms\ControlTests.Methods.cs (3)
4387
yield return new object[] { Keys.
Up
, false };
4417
yield return new object[] { Keys.Control | Keys.
Up
, false };
4447
yield return new object[] { Keys.Alt | Keys.
Up
, false };
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (2)
1024
yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.
Up
, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1025
yield return new object[] { RightToLeft.No, valueChanged, multiline, acceptsReturn, Keys.
Up
, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
System\Windows\Forms\ListViewTests.cs (3)
4528
[InlineData(Keys.
Up
)]
4593
var key = key_s == "Keys.Down" ? Keys.Down : Keys.
Up
;
4608
[InlineData(Keys.
Up
)]
System\Windows\Forms\PrintPreviewDialogTests.cs (1)
26
[InlineData(Keys.
Up
)]
System\Windows\Forms\TabControlTests.cs (5)
4043
yield return new object[] { Keys.Alt | Keys.
Up
, false };
4074
[InlineData(Keys.
Up
, false)]
4078
[InlineData(Keys.Control | Keys.
Up
, false)]
4091
[InlineData(Keys.
Up
, true)]
4095
[InlineData(Keys.Control | Keys.
Up
, true)]
System\Windows\Forms\UpDownBaseTests.cs (2)
2359
yield return new object[] { true, userEdit, source, new KeyEventArgs(Keys.
Up
), 1, 0, 0, true };
2360
yield return new object[] { false, userEdit, source, new KeyEventArgs(Keys.
Up
), 0, 0, 0, false };
TextBoxBaseTests.cs (8)
5213
[InlineData(true, true, true, Keys.
Up
, false)]
5214
[InlineData(true, true, false, Keys.
Up
, false)]
5215
[InlineData(false, true, true, Keys.
Up
, false)]
5216
[InlineData(false, true, false, Keys.
Up
, false)]
5244
[InlineData(true, true, true, Keys.
Up
, true)]
5245
[InlineData(true, true, false, Keys.
Up
, true)]
5246
[InlineData(false, true, true, Keys.
Up
, true)]
5247
[InlineData(false, true, false, Keys.
Up
, true)]
WindowsFormsIntegration (2)
System\Windows\Integration\WindowsFormsHost.cs (2)
935
keyCode == Keys.Right || keyCode == Keys.
Up
||
943
if ((keyCode == Keys.Left || keyCode == Keys.Right || keyCode == Keys.Down || keyCode == Keys.
Up
)