28 references to GetNextItem
System.Windows.Forms (6)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
2038
return
GetNextItem
(start, direction);
3056
ToolStripItem? nextItem =
GetNextItem
(currentSel, ArrowDirection.Down);
3065
ToolStripItem? nextItem =
GetNextItem
(currentSel, ArrowDirection.Up);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
527
return
GetNextItem
(start, direction);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (2)
258
nextItem = (Owner.IsOnDropDown) ? parent.
GetNextItem
(Owner, ArrowDirection.Up) :
262
nextItem = (Owner.IsOnDropDown) ? parent.
GetNextItem
(Owner, ArrowDirection.Down) :
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
2005
ToolStripItem nextItem = ToolStrip.
GetNextItem
(ToolStrip.OverflowButton, ArrowDirection.Left);
2035
ToolStripItem nextItem = ddi.DropDown.
GetNextItem
(null, ArrowDirection.Down);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (1)
313
return parent.
GetNextItem
(startItem, direction);
System.Windows.Forms.Tests (19)
System\Windows\Forms\ToolStripDropDownTests.cs (5)
4897
ToolStripItem actual = toolStrip.DropDown.
GetNextItem
(start: null, direction: ArrowDirection.Up);
4901
actual = toolStrip.DropDown.
GetNextItem
(start: items[0], direction: ArrowDirection.Up);
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);
System\Windows\Forms\ToolStripTests.cs (14)
4779
Assert.Null(toolStrip.
GetNextItem
(new SubToolStripItem(), direction));
4780
Assert.Null(toolStrip.
GetNextItem
(null, direction));
4788
Assert.Throws<InvalidEnumArgumentException>("direction", () => toolStrip.
GetNextItem
(new SubToolStripItem(), direction));
4789
Assert.Throws<InvalidEnumArgumentException>("direction", () => toolStrip.
GetNextItem
(null, direction));
4821
ToolStripItem actual = toolStrip.
GetNextItem
(toolStrip.Items[0], ArrowDirection.Right);
4842
ToolStripItem nextToolStripItem1 = toolStrip.
GetNextItem
(toolStripButton1, ArrowDirection.Right);
4843
ToolStripItem nextToolStripItem2 = toolStrip.
GetNextItem
(toolStripButton2, ArrowDirection.Right);
4844
ToolStripItem nextToolStripItem3 = toolStrip.
GetNextItem
(toolStripButton3, ArrowDirection.Right);
4867
ToolStripItem actual = toolStrip.
GetNextItem
(toolStrip.Items[0], ArrowDirection.Left);
4888
ToolStripItem previousToolStripItem1 = toolStrip.
GetNextItem
(toolStripButton1, ArrowDirection.Left);
4889
ToolStripItem previousToolStripItem2 = toolStrip.
GetNextItem
(toolStripButton3, ArrowDirection.Left);
4890
ToolStripItem previousToolStripItem3 = toolStrip.
GetNextItem
(toolStripButton2, ArrowDirection.Left);
7298
ToolStripItem previousToolStripItem1 = toolStrip.
GetNextItem
(start: null, ArrowDirection.Left);
7301
ToolStripItem previousToolStripItem2 = toolStrip.
GetNextItem
(start: null, ArrowDirection.Right);