80 references to Up
System.Windows.Forms (39)
System\Windows\Forms\Control.cs (2)
6274
case Keys.
Up
:
12812
|| IsKeyDown(Keys.
Up
, stateArray)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
10118
case Keys.
Up
:
15719
case Keys.
Up
:
21971
or Keys.
Up
=> true,
24436
case Keys.
Up
:
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
1514
((e.KeyCode == Keys.Down || e.KeyCode == Keys.
Up
) && e.Alt)) &&
1515
(!e.Alt || (e.KeyCode == Keys.Down || e.KeyCode == Keys.
Up
)) &&
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
93
maskedKeyData == Keys.
Up
||
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
163
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)
6691
if ((lvkd->wVKey == (short)Keys.Down || lvkd->wVKey == (short)Keys.
Up
) && SelectedItems.Count > 0)
6705
if (lvkd->wVKey == (short)Keys.
Up
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (7)
2458
if (keyCode == Keys.
Up
)
2488
if (!e.Alt && (e.KeyCode == Keys.
Up
|| e.KeyCode == Keys.Down))
2715
if (keyCode == Keys.
Up
&& altPressed && DropDownButton.Visible && (_dropDownHolder is not null) && _dropDownHolder.Visible)
2730
case Keys.
Up
:
2732
int position = keyCode == Keys.
Up
? _selectedRow - 1 : _selectedRow + 1;
2924
&& (keyCode == Keys.
Up
|| keyCode == Keys.Down))
3893
case Keys.
Up
:
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1269
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)
2781
case Keys.
Up
:
3048
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)
421
if (InterceptArrowKeys && (e.KeyCode == Keys.
Up
|| e.KeyCode == Keys.Down) && !Spinning)
434
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)
1208
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)
996
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)
762
KeyboardSimulator.KeyPress(listView, Keys.
Up
);
817
KeyboardSimulator.KeyPress(listView, Keys.
Up
);
System\Windows\Forms\ComboBoxTests.cs (1)
2598
[InlineData(Keys.
Up
, 9, 9)]
System\Windows\Forms\ControlTests.Methods.cs (3)
4356
yield return new object[] { Keys.
Up
, false };
4386
yield return new object[] { Keys.Control | Keys.
Up
, false };
4416
yield return new object[] { Keys.Alt | Keys.
Up
, false };
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (2)
1026
yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.
Up
, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1027
yield return new object[] { RightToLeft.No, valueChanged, multiline, acceptsReturn, Keys.
Up
, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
System\Windows\Forms\ListViewTests.cs (3)
4530
[InlineData(Keys.
Up
)]
4595
var key = key_s == "Keys.Down" ? Keys.Down : Keys.
Up
;
4610
[InlineData(Keys.
Up
)]
System\Windows\Forms\PrintPreviewDialogTests.cs (1)
28
[InlineData(Keys.
Up
)]
System\Windows\Forms\TabControlTests.cs (5)
4045
yield return new object[] { Keys.Alt | Keys.
Up
, false };
4076
[InlineData(Keys.
Up
, false)]
4080
[InlineData(Keys.Control | Keys.
Up
, false)]
4093
[InlineData(Keys.
Up
, true)]
4097
[InlineData(Keys.Control | Keys.
Up
, true)]
System\Windows\Forms\UpDownBaseTests.cs (2)
2361
yield return new object[] { true, userEdit, source, new KeyEventArgs(Keys.
Up
), 1, 0, 0, true };
2362
yield return new object[] { false, userEdit, source, new KeyEventArgs(Keys.
Up
), 0, 0, 0, false };
TextBoxBaseTests.cs (8)
5215
[InlineData(true, true, true, Keys.
Up
, false)]
5216
[InlineData(true, true, false, Keys.
Up
, false)]
5217
[InlineData(false, true, true, Keys.
Up
, false)]
5218
[InlineData(false, true, false, Keys.
Up
, false)]
5246
[InlineData(true, true, true, Keys.
Up
, true)]
5247
[InlineData(true, true, false, Keys.
Up
, true)]
5248
[InlineData(false, true, true, Keys.
Up
, true)]
5249
[InlineData(false, true, false, Keys.
Up
, true)]
WindowsFormsIntegration (2)
System\Windows\Integration\WindowsFormsHost.cs (2)
911
keyCode == Keys.Right || keyCode == Keys.
Up
||
919
if ((keyCode == Keys.Left || keyCode == Keys.Right || keyCode == Keys.Down || keyCode == Keys.
Up
)