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