28 references to GetNextItem
System.Windows.Forms (6)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
2037
return
GetNextItem
(start, direction);
3055
ToolStripItem? nextItem =
GetNextItem
(currentSel, ArrowDirection.Down);
3064
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)
4899
ToolStripItem actual = toolStrip.DropDown.
GetNextItem
(start: null, direction: ArrowDirection.Up);
4903
actual = toolStrip.DropDown.
GetNextItem
(start: items[0], direction: ArrowDirection.Up);
4907
actual = toolStrip.DropDown.
GetNextItem
(start: null, direction: ArrowDirection.Down);
4911
actual = toolStrip.DropDown.
GetNextItem
(start: items[0], direction: ArrowDirection.Down);
4915
actual = toolStrip.DropDown.
GetNextItem
(start: items[4], direction: ArrowDirection.Down);
System\Windows\Forms\ToolStripTests.cs (14)
4781
Assert.Null(toolStrip.
GetNextItem
(new SubToolStripItem(), direction));
4782
Assert.Null(toolStrip.
GetNextItem
(null, direction));
4790
Assert.Throws<InvalidEnumArgumentException>("direction", () => toolStrip.
GetNextItem
(new SubToolStripItem(), direction));
4791
Assert.Throws<InvalidEnumArgumentException>("direction", () => toolStrip.
GetNextItem
(null, direction));
4823
ToolStripItem actual = toolStrip.
GetNextItem
(toolStrip.Items[0], ArrowDirection.Right);
4844
ToolStripItem nextToolStripItem1 = toolStrip.
GetNextItem
(toolStripButton1, ArrowDirection.Right);
4845
ToolStripItem nextToolStripItem2 = toolStrip.
GetNextItem
(toolStripButton2, ArrowDirection.Right);
4846
ToolStripItem nextToolStripItem3 = toolStrip.
GetNextItem
(toolStripButton3, ArrowDirection.Right);
4869
ToolStripItem actual = toolStrip.
GetNextItem
(toolStrip.Items[0], ArrowDirection.Left);
4890
ToolStripItem previousToolStripItem1 = toolStrip.
GetNextItem
(toolStripButton1, ArrowDirection.Left);
4891
ToolStripItem previousToolStripItem2 = toolStrip.
GetNextItem
(toolStripButton3, ArrowDirection.Left);
4892
ToolStripItem previousToolStripItem3 = toolStrip.
GetNextItem
(toolStripButton2, ArrowDirection.Left);
7300
ToolStripItem previousToolStripItem1 = toolStrip.
GetNextItem
(start: null, ArrowDirection.Left);
7303
ToolStripItem previousToolStripItem2 = toolStrip.
GetNextItem
(start: null, ArrowDirection.Right);