30 references to Down
System.Windows.Forms (11)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
2058
case ArrowDirection.
Down
:
3058
ToolStripItem? nextItem = GetNextItem(currentSel, ArrowDirection.
Down
);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (1)
210
renderer.DrawArrow(new ToolStripArrowRenderEventArgs(g, this, dropDownArrowRect, arrowColor, ArrowDirection.
Down
));
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 (1)
262
nextItem = (Owner.IsOnDropDown) ? parent.GetNextItem(Owner, ArrowDirection.
Down
) :
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (2)
175
ArrowDirection direction = horizontal ? ArrowDirection.
Down
: ArrowDirection.Right;
307
DrawArrow(new ToolStripArrowRenderEventArgs(g, item, dropDownRect, SystemColors.ControlText, ArrowDirection.
Down
));
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (3)
394
DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new Rectangle(Point.Empty, item.Size), arrowColor, ArrowDirection.
Down
));
577
DrawArrow(new ToolStripArrowRenderEventArgs(g, splitButton, splitButton.DropDownButtonBounds, arrowColor, ArrowDirection.
Down
));
630
DrawArrow(new ToolStripArrowRenderEventArgs(g, splitButton, dropDownRect, arrowColor, ArrowDirection.
Down
));
System.Windows.Forms.Design (9)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
2054
ToolStripItem nextItem = ddi.DropDown.GetNextItem(null, ArrowDirection.
Down
);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (6)
1337
targetSelection = GetNextItem(contextMenu, null, ArrowDirection.
Down
);
1408
targetSelection = GetNextItem(parentToMoveOn, item, ArrowDirection.
Down
);
1436
ToolStripItem firstItem = GetNextItem(parentToMoveOn, null, ArrowDirection.
Down
);
1883
ToolStripItem firstItem = GetNextItem(parent, null, ArrowDirection.
Down
);
1946
targetSelection = GetNextItem(parent, item, ArrowDirection.
Down
);
2090
object newSelection = GetNextItem(overFlowButton.DropDown, null, ArrowDirection.
Down
);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1815
DrawArrow(new ToolStripArrowRenderEventArgs(g, null, bounds, SystemInformation.HighContrast ? Color.Black : SystemColors.ControlText, ArrowDirection.
Down
));
2037
DrawArrow(new ToolStripArrowRenderEventArgs(g, splitButton, splitButton.DropDownButtonBounds, SystemColors.ControlText, ArrowDirection.
Down
));
System.Windows.Forms.Tests (10)
System\Windows\Forms\ToolStripArrowRenderEventArgsTests.cs (7)
21
yield return new object[] { graphics, null, Rectangle.Empty, Color.Empty, ArrowDirection.
Down
+ 1 };
22
yield return new object[] { graphics, new ToolStripButton(), new Rectangle(1, 2, 3, 4), Color.Blue, ArrowDirection.
Down
};
23
yield return new object[] { graphics, new ToolStripButton(), new Rectangle(-1, -2, -3, -4), Color.Blue, ArrowDirection.
Down
};
52
ToolStripArrowRenderEventArgs e = new(graphics, button, new Rectangle(1, 2, 3, 4), Color.Blue, ArrowDirection.
Down
)
72
ToolStripArrowRenderEventArgs e = new(graphics, button, new Rectangle(1, 2, 3, 4), Color.Blue, ArrowDirection.
Down
)
80
[InlineData((ArrowDirection.
Down
+ 1))]
87
ToolStripArrowRenderEventArgs e = new(graphics, button, new Rectangle(1, 2, 3, 4), Color.Blue, ArrowDirection.
Down
)
System\Windows\Forms\ToolStripDropDownTests.cs (3)
4905
actual = toolStrip.DropDown.GetNextItem(start: null, direction: ArrowDirection.
Down
);
4909
actual = toolStrip.DropDown.GetNextItem(start: items[0], direction: ArrowDirection.
Down
);
4913
actual = toolStrip.DropDown.GetNextItem(start: items[4], direction: ArrowDirection.
Down
);