79 references to ArrowDirection
System.Windows.Forms (56)
winforms\Managed\System\WinForms\MenuStrip.cs (1)
191internal override ToolStripItem GetNextItem(ToolStripItem start, ArrowDirection direction, bool rtlAware) {
winforms\Managed\System\WinForms\ToolStrip.cs (15)
2208internal virtual ToolStripItem GetNextItem(ToolStripItem start, ArrowDirection direction, bool rtlAware) { 2211if (direction == ArrowDirection.Right) { 2212direction = ArrowDirection.Left; 2214else if (direction == ArrowDirection.Left) { 2215direction = ArrowDirection.Right; 2228public virtual ToolStripItem GetNextItem(ToolStripItem start, ArrowDirection direction) 2231throw new InvalidEnumArgumentException("direction", (int)direction, typeof(ArrowDirection)); 2235case ArrowDirection.Right: 2237case ArrowDirection.Left: 2239case ArrowDirection.Down: 2241case ArrowDirection.Up: 3195ToolStripItem nextItem = GetNextItem(currentSel, ArrowDirection.Down); 3202ToolStripItem nextItem = GetNextItem(currentSel, ArrowDirection.Up); 4264ToolStripItem nextItem = GetNextItem(start, (forward) ? ArrowDirection.Right : ArrowDirection.Left, /*RTLAware=*/true);
winforms\Managed\System\WinForms\ToolStripArrowRenderEventArgs.cs (4)
18private ArrowDirection arrowDirection = ArrowDirection.Down; 23public ToolStripArrowRenderEventArgs(Graphics g, ToolStripItem toolStripItem, Rectangle arrowRectangle, Color arrowColor, ArrowDirection arrowDirection) { 66public ArrowDirection Direction {
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (1)
189renderer.DrawArrow(new ToolStripArrowRenderEventArgs(g, this,dropDownArrowRect, arrowColor, ArrowDirection.Down));
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (1)
565internal override ToolStripItem GetNextItem(ToolStripItem start, ArrowDirection direction, bool rtlAware) {
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (2)
155 DrawArrow(new ToolStripArrowRenderEventArgs(g, item, dropDownRect, arrowColor, ArrowDirection.Down)); 185 DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new Rectangle(Point.Empty, item.Size), arrowColor, ArrowDirection.Down));
winforms\Managed\System\WinForms\ToolStripItem.cs (8)
4341nextItem = parent.GetNextItem(null, ArrowDirection.Right, /*RTLAware=*/true); 4344nextItem = parent.GetNextItem(null, ArrowDirection.Left,/*RTLAware=*/true); 4348nextItem = parent.GetNextItem(Owner, ArrowDirection.Left, /*RTLAware=*/true); 4352nextItem = parent.GetNextItem(Owner, ArrowDirection.Right, /*RTLAware=*/true); 4355nextItem = (Owner.IsOnDropDown) ? parent.GetNextItem(Owner, ArrowDirection.Up): 4356parent.GetNextItem(Owner, ArrowDirection.Left, /*RTLAware=*/true); 4359nextItem = (Owner.IsOnDropDown) ? parent.GetNextItem(Owner, ArrowDirection.Down): 4360parent.GetNextItem(Owner, ArrowDirection.Right, /*RTLAware=*/true);
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (3)
1113ArrowDirection arrowDir = (rightToLeft) ? ArrowDirection.Left : ArrowDirection.Right;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (9)
164ArrowDirection direction = (horizontal) ? ArrowDirection.Down : ArrowDirection.Right; 279DrawArrow(new ToolStripArrowRenderEventArgs(g, item, dropDownRect, SystemColors.ControlText, ArrowDirection.Down)); 1441private Point RenderArrowInternal(Graphics g, Rectangle dropDownRect, ArrowDirection direction, Brush brush) { 1451case ArrowDirection.Up: 1459case ArrowDirection.Left: 1467case ArrowDirection.Right: 1475case ArrowDirection.Down:
winforms\Managed\System\WinForms\ToolStripRenderer.cs (4)
730case ArrowDirection.Up: 738case ArrowDirection.Left: 745case ArrowDirection.Right: 752case ArrowDirection.Down:
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (3)
347DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new Rectangle(Point.Empty, item.Size), arrowColor, ArrowDirection.Down)); 510DrawArrow(new ToolStripArrowRenderEventArgs(g, splitButton, splitButton.DropDownButtonBounds, arrowColor, ArrowDirection.Down)); 547DrawArrow(new ToolStripArrowRenderEventArgs(g, splitButton, dropDownRect, arrowColor, ArrowDirection.Down));
winforms\Managed\System\WinForms\WinFormsUtils.cs (5)
433public static bool IsValidArrowDirection(ArrowDirection direction) { 435case ArrowDirection.Up: 436case ArrowDirection.Down: 437case ArrowDirection.Left: 438case ArrowDirection.Right:
System.Workflow.Activities (23)
Designers\StateMachineDesignerPaint.cs (23)
224ArrowDirection direction1 = GetDirection(p1, p2); 225ArrowDirection direction2 = GetDirection(p2, p3); 275private static void AddSegment(GraphicsPath path, int radius, Point p1, Point p2, bool roundP1, bool roundP2, ArrowDirection direction) 281case ArrowDirection.Down: 284case ArrowDirection.Up: 287case ArrowDirection.Left: 299case ArrowDirection.Down: 302case ArrowDirection.Up: 305case ArrowDirection.Left: 316private static void AddRoundedCorner(GraphicsPath path, int diameter, Point midPoint, ArrowDirection direction1, ArrowDirection direction2) 320case ArrowDirection.Left: 321if (direction2 == ArrowDirection.Down) 326case ArrowDirection.Right: 327if (direction2 == ArrowDirection.Down) 332case ArrowDirection.Up: 333if (direction2 == ArrowDirection.Left) 339if (direction2 == ArrowDirection.Left) 347private static ArrowDirection GetDirection(Point start, Point end) 356return ArrowDirection.Down; 359return ArrowDirection.Up; 364return ArrowDirection.Right; 367return ArrowDirection.Left;