83 references to ArrowDirection
System.Windows.Forms (56)
System\Windows\Forms\Controls\Menus\MenuStrip.cs (1)
154
internal override ToolStripItem? GetNextItem(ToolStripItem? start,
ArrowDirection
direction, bool rtlAware)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (15)
2017
internal virtual ToolStripItem? GetNextItem(ToolStripItem? start,
ArrowDirection
direction, bool rtlAware)
2021
if (direction ==
ArrowDirection
.Right)
2023
direction =
ArrowDirection
.Left;
2025
else if (direction ==
ArrowDirection
.Left)
2027
direction =
ArrowDirection
.Right;
2040
public virtual ToolStripItem? GetNextItem(ToolStripItem? start,
ArrowDirection
direction)
2044
case
ArrowDirection
.Right:
2046
case
ArrowDirection
.Left:
2049
case
ArrowDirection
.Down:
2051
case
ArrowDirection
.Up:
2054
throw new InvalidEnumArgumentException(nameof(direction), (int)direction, typeof(
ArrowDirection
));
3049
ToolStripItem? nextItem = GetNextItem(currentSel,
ArrowDirection
.Down);
3058
ToolStripItem? nextItem = GetNextItem(currentSel,
ArrowDirection
.Up);
4151
ToolStripItem? nextItem = GetNextItem(start, forward ?
ArrowDirection
.Right :
ArrowDirection
.Left, rtlAware: true);
System\Windows\Forms\Controls\ToolStrips\ToolStripArrowRenderEventArgs.cs (2)
18
ArrowDirection
arrowDirection)
41
public
ArrowDirection
Direction { get; set; }
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (1)
210
renderer.DrawArrow(new ToolStripArrowRenderEventArgs(g, this, dropDownArrowRect, arrowColor,
ArrowDirection
.Down));
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
538
internal override ToolStripItem? GetNextItem(ToolStripItem? start,
ArrowDirection
direction, bool rtlAware)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (2)
155
DrawArrow(new ToolStripArrowRenderEventArgs(g, item, dropDownRect, arrowColor,
ArrowDirection
.Down));
208
DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new Rectangle(Point.Empty, item.Size), arrowColor,
ArrowDirection
.Down));
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (8)
244
nextItem = parent.GetNextItem(null,
ArrowDirection
.Right, /*RTLAware=*/true);
247
nextItem = parent.GetNextItem(null,
ArrowDirection
.Left, /*RTLAware=*/true);
251
nextItem = parent.GetNextItem(Owner,
ArrowDirection
.Left, /*RTLAware=*/true);
255
nextItem = parent.GetNextItem(Owner,
ArrowDirection
.Right, /*RTLAware=*/true);
258
nextItem = (Owner.IsOnDropDown) ? parent.GetNextItem(Owner,
ArrowDirection
.Up) :
259
parent.GetNextItem(Owner,
ArrowDirection
.Left, /*RTLAware=*/true);
262
nextItem = (Owner.IsOnDropDown) ? parent.GetNextItem(Owner,
ArrowDirection
.Down) :
263
parent.GetNextItem(Owner,
ArrowDirection
.Right, /*RTLAware=*/true);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (3)
1006
ArrowDirection
arrowDir = (rightToLeft) ?
ArrowDirection
.Left :
ArrowDirection
.Right;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (8)
175
ArrowDirection
direction = horizontal ?
ArrowDirection
.Down :
ArrowDirection
.Right;
306
DrawArrow(new ToolStripArrowRenderEventArgs(g, item, dropDownRect, SystemColors.ControlText,
ArrowDirection
.Down));
1645
private static Point RenderArrowInternal(Graphics g, Rectangle dropDownRect,
ArrowDirection
direction, Brush brush)
1654
ArrowDirection
.Up =>
1660
ArrowDirection
.Left =>
1666
ArrowDirection
.Right =>
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (3)
668
case
ArrowDirection
.Up:
674
case
ArrowDirection
.Left:
680
case
ArrowDirection
.Right:
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (9)
349
arrowDirection:
ArrowDirection
.Down));
448
ArrowDirection
arrowDirection =
ArrowDirection
.Down;
455
arrowDirection =
ArrowDirection
.Up;
459
arrowDirection =
ArrowDirection
.Left;
463
arrowDirection =
ArrowDirection
.Right;
478
ArrowDirection
.Up =>
484
ArrowDirection
.Left =>
490
ArrowDirection
.Right =>
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (3)
447
DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new Rectangle(Point.Empty, item.Size), arrowColor,
ArrowDirection
.Down));
635
DrawArrow(new ToolStripArrowRenderEventArgs(g, splitButton, splitButton.DropDownButtonBounds, arrowColor,
ArrowDirection
.Down));
689
DrawArrow(new ToolStripArrowRenderEventArgs(g, splitButton, dropDownRect, arrowColor,
ArrowDirection
.Down));
System.Windows.Forms.Design (27)
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
2020
ToolStripItem nextItem = ToolStrip.GetNextItem(ToolStrip.OverflowButton,
ArrowDirection
.Left);
2050
ToolStripItem nextItem = ddi.DropDown.GetNextItem(null,
ArrowDirection
.Down);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (23)
296
private static ToolStripItem GetNextItem(ToolStrip parent, ToolStripItem startItem,
ArrowDirection
direction)
298
if (parent.RightToLeft == RightToLeft.Yes && (direction ==
ArrowDirection
.Left || direction ==
ArrowDirection
.Right))
300
if (direction ==
ArrowDirection
.Right)
302
direction =
ArrowDirection
.Left;
304
else if (direction ==
ArrowDirection
.Left)
306
direction =
ArrowDirection
.Right;
1212
? GetNextItem(parent, toolStripItem,
ArrowDirection
.Left)
1241
targetSelection = GetNextItem(dropDownItem.DropDown, null,
ArrowDirection
.Right);
1264
targetSelection = GetNextItem(mainTool, owner,
ArrowDirection
.Left);
1308
targetSelection = GetNextItem(contextMenu, null,
ArrowDirection
.Down);
1384
targetSelection = GetNextItem(parentToMoveOn, item,
ArrowDirection
.Down);
1412
if (item == GetNextItem(parentToMoveOn, startItem: null,
ArrowDirection
.Down))
1416
targetSelection = GetNextItem(owner, parentToMoveOn.OwnerItem,
ArrowDirection
.Left);
1421
targetSelection = GetNextItem(parentToMoveOn, item,
ArrowDirection
.Up);
1426
targetSelection = GetNextItem(parentToMoveOn, item,
ArrowDirection
.Up);
1845
ToolStripItem firstItem = GetNextItem(parent, null,
ArrowDirection
.Down);
1850
targetSelection = GetNextItem(owner, ((ToolStripDropDown)parent).OwnerItem,
ArrowDirection
.Left);
1855
targetSelection = GetNextItem(parent, item,
ArrowDirection
.Left);
1896
targetSelection = GetNextItem(parent, item,
ArrowDirection
.Left);
1908
targetSelection = GetNextItem(parent, item,
ArrowDirection
.Down);
1924
targetSelection = GetNextItem(parent, item,
ArrowDirection
.Right);
2052
object newSelection = GetNextItem(overFlowButton.DropDown, null,
ArrowDirection
.Down);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1767
DrawArrow(new ToolStripArrowRenderEventArgs(g, null, bounds, SystemInformation.HighContrast ? Color.Black : SystemColors.ControlText,
ArrowDirection
.Down));
1989
DrawArrow(new ToolStripArrowRenderEventArgs(g, splitButton, splitButton.DropDownButtonBounds, SystemColors.ControlText,
ArrowDirection
.Down));