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