80 references to Up
System.Windows.Forms (39)
System\Windows\Forms\Control.cs (2)
6276
case Keys.
Up
:
12814
|| IsKeyDown(Keys.
Up
, stateArray)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
10121
case Keys.
Up
:
15722
case Keys.
Up
:
21974
or Keys.
Up
=> true,
24439
case Keys.
Up
:
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
1517
((e.KeyCode == Keys.Down || e.KeyCode == Keys.
Up
) && e.Alt)) &&
1518
(!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)
2782
case Keys.
Up
:
3049
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)
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)
760
KeyboardSimulator.KeyPress(listView, Keys.
Up
);
815
KeyboardSimulator.KeyPress(listView, Keys.
Up
);
System\Windows\Forms\ComboBoxTests.cs (1)
2596
[InlineData(Keys.
Up
, 9, 9)]
System\Windows\Forms\ControlTests.Methods.cs (3)
4396
yield return new object[] { Keys.
Up
, false };
4426
yield return new object[] { Keys.Control | Keys.
Up
, false };
4456
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)
933
keyCode == Keys.Right || keyCode == Keys.
Up
||
941
if ((keyCode == Keys.Left || keyCode == Keys.Right || keyCode == Keys.Down || keyCode == Keys.
Up
)