377 references to ToolStripGripStyle
System.Windows.Forms (24)
System\Windows\Forms\Controls\Menus\MenuStrip.cs (4)
21
GripStyle =
ToolStripGripStyle
.Hidden;
77
return GripStyle ==
ToolStripGripStyle
.Visible
87
[DefaultValue(
ToolStripGripStyle
.Hidden)]
88
public new
ToolStripGripStyle
GripStyle
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
200
_toolStrip.GripStyle =
ToolStripGripStyle
.Hidden;
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (3)
36
GripStyle =
ToolStripGripStyle
.Hidden;
110
[DefaultValue(
ToolStripGripStyle
.Hidden)]
111
public new
ToolStripGripStyle
GripStyle
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (11)
43
private
ToolStripGripStyle
_toolStripGripStyle =
ToolStripGripStyle
.Visible;
734
if ((LayoutEngine is ToolStripSplitStackLayout) && (GripStyle ==
ToolStripGripStyle
.Visible))
790
Visible = _toolStripGripStyle ==
ToolStripGripStyle
.Visible,
802
[DefaultValue(
ToolStripGripStyle
.Visible)]
803
public
ToolStripGripStyle
GripStyle
816
Grip.Visible = _toolStripGripStyle ==
ToolStripGripStyle
.Visible;
857
return (GripStyle ==
ToolStripGripStyle
.Visible) ? Grip.Bounds : Rectangle.Empty;
2321
if (toolStrip.GripStyle ==
ToolStripGripStyle
.Visible)
2379
if (toolStrip.GripStyle ==
ToolStripGripStyle
.Visible)
4244
if (GripStyle ==
ToolStripGripStyle
.Visible)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (3)
417
[DefaultValue(
ToolStripGripStyle
.Hidden)]
420
public new
ToolStripGripStyle
GripStyle
1098
GripStyle =
ToolStripGripStyle
.Hidden;
System\Windows\Forms\Controls\ToolStrips\ToolStripGripRenderEventArgs.cs (1)
31
public
ToolStripGripStyle
GripStyle => ToolStrip.GripStyle;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
800
_toolStrip1.GripStyle =
ToolStripGripStyle
.Hidden;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ToolStripActionList.cs (2)
106
public
ToolStripGripStyle
GripStyle
108
get => (
ToolStripGripStyle
)GetProperty(nameof(GripStyle))!;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1491
_miniToolStrip.GripStyle =
ToolStripGripStyle
.Hidden;
System.Windows.Forms.Tests (347)
System\Windows\Forms\AccessibleObjects\MenuStrip.MenuStripAccessibleObjectTests.cs (87)
189
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalSize, canOverflow };
190
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalSize, canOverflow };
191
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalSize, canOverflow };
192
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalSize, canOverflow };
205
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.Table, null, verticalSize, canOverflow };
206
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.Table, null, verticalSize, canOverflow };
208
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.Flow, null, horizontalSize, canOverflow };
209
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.Flow, null, horizontalSize, canOverflow };
228
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
240
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfToolStripIsEmpty(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
258
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalSize, canOverflow };
259
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalSize, canOverflow };
260
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalSize, canOverflow };
261
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalSize, canOverflow };
267
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfGripVisible(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
279
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfGripVisibleAndToolStripIsEmpty(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
304
using MenuStrip menuStrip = CreateMenuStrip(
ToolStripGripStyle
.Hidden, layout, dock, size, canOverflow: true, itemCount: 1);
327
using MenuStrip menuStrip = CreateMenuStrip(
ToolStripGripStyle
.Hidden, layout, dock, size, canOverflow: false, itemCount: 3);
338
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.Table, overflowSize };
339
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.Table, overflowSize };
340
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.Flow, overflowSize };
341
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.Flow, overflowSize };
346
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfCanNotOverflowAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, Size size)
358
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemSkipped(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
374
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfAllItemsSkipped(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
390
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemAlignedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
406
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemAlignedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
422
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemSkippedAndSecondAlignedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
440
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemSkippedAndSecondAlignedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
458
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfAllItemsAlignedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
475
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfAllItemsAlignedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
497
foreach (
ToolStripGripStyle
grip in Enum.GetValues<
ToolStripGripStyle
>())
514
foreach (
ToolStripGripStyle
grip in Enum.GetValues<
ToolStripGripStyle
>())
537
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
549
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfToolStripIsEmpty(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
560
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfToolStripIsEmptyAndGripVisible(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
572
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfLastItemSkipped(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
588
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsSkipped(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
604
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsSkippedAndGripVisible(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
621
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemAlignedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
637
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemAlignedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
653
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemSkippedAndAlignedAndLastSkippedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
675
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemSkippedAndAlignedAndLastSkippedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
697
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsAlignedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
714
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsAlignedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
734
foreach (
ToolStripGripStyle
grip in Enum.GetValues<
ToolStripGripStyle
>())
745
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfOverflow(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size)
763
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalOverflowGripSize };
764
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalOverflowSize };
766
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalOverflowGripSize };
767
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalOverflowSize };
769
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalOverflowGripSize };
770
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalOverflowSize };
772
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalOverflowGripSize };
773
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalOverflowSize };
775
foreach (
ToolStripGripStyle
grip in Enum.GetValues<
ToolStripGripStyle
>())
784
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflow(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size)
802
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalOverflowGripSize };
803
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalOverflowSize };
805
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalOverflowGripSize };
806
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalOverflowSize };
808
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalOverflowGripSize };
809
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalOverflowSize };
811
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalOverflowGripSize };
812
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalOverflowSize };
814
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.Table, null, bothOverflowSize };
815
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.Table, null, bothOverflowSize };
817
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.Flow, null, bothOverflowSize };
818
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.Flow, null, bothOverflowSize };
823
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflowAndItemSkipped(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size)
844
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalOverflowGripSize };
845
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalOverflowSize };
847
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalOverflowGripSize };
848
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalOverflowSize };
850
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalOverflowGripSize };
851
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalOverflowSize };
853
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalOverflowGripSize };
854
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalOverflowSize };
859
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflowAndFirstItemAlignedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size)
875
foreach (
ToolStripGripStyle
grip in Enum.GetValues<
ToolStripGripStyle
>())
884
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflowAndFirstItemAlignedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size)
897
ToolStripGripStyle
? gripStyle = null,
System\Windows\Forms\AccessibleObjects\StatusStrip.StatusStripAccessibleObjectTests.cs (87)
169
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalSize, canOverflow };
170
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalSize, canOverflow };
171
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalSize, canOverflow };
172
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalSize, canOverflow };
185
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.Table, null, verticalSize, canOverflow };
186
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.Table, null, verticalSize, canOverflow };
188
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.Flow, null, horizontalSize, canOverflow };
189
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.Flow, null, horizontalSize, canOverflow };
208
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
220
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfToolStripIsEmpty(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
238
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalSize, canOverflow };
239
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalSize, canOverflow };
240
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalSize, canOverflow };
241
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalSize, canOverflow };
247
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfGripVisible(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
259
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfGripVisibleAndToolStripIsEmpty(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
284
using StatusStrip statusStrip = CreateStatusStrip(
ToolStripGripStyle
.Hidden, layout, dock, size, canOverflow: true, itemCount: 1);
307
using StatusStrip statusStrip = CreateStatusStrip(
ToolStripGripStyle
.Hidden, layout, dock, size, canOverflow: false, itemCount: 1);
318
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.Table, overflowSize };
319
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.Table, overflowSize };
320
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.Flow, overflowSize };
321
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.Flow, overflowSize };
326
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfCanNotOverflowAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, Size size)
338
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemSkipped(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
354
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfAllItemsSkipped(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
370
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemAlignedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
386
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemAlignedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
402
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemSkippedAndSecondAlignedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
420
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemSkippedAndSecondAlignedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
438
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfAllItemsAlignedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
455
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfAllItemsAlignedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
477
foreach (
ToolStripGripStyle
grip in Enum.GetValues<
ToolStripGripStyle
>())
494
foreach (
ToolStripGripStyle
grip in Enum.GetValues<
ToolStripGripStyle
>())
517
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
529
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfToolStripIsEmpty(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
540
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfToolStripIsEmptyAndGripVisible(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
552
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfLastItemSkipped(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
568
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsSkipped(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
584
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsSkippedAndGripVisible(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
601
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemAlignedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
617
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemAlignedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
633
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemSkippedAndAlignedAndLastSkippedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
655
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemSkippedAndAlignedAndLastSkippedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
677
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsAlignedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
694
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsAlignedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
714
foreach (
ToolStripGripStyle
grip in Enum.GetValues<
ToolStripGripStyle
>())
725
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfOverflow(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size)
743
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalOverflowGripSize };
744
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalOverflowSize };
746
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalOverflowGripSize };
747
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalOverflowSize };
749
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalOverflowGripSize };
750
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalOverflowSize };
752
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalOverflowGripSize };
753
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalOverflowSize };
755
foreach (
ToolStripGripStyle
grip in Enum.GetValues<
ToolStripGripStyle
>())
764
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflow(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size)
782
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalOverflowGripSize };
783
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalOverflowSize };
785
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalOverflowGripSize };
786
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalOverflowSize };
788
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalOverflowGripSize };
789
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalOverflowSize };
791
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalOverflowGripSize };
792
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalOverflowSize };
794
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.Table, null, bothOverflowSize };
795
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.Table, null, bothOverflowSize };
797
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.Flow, null, bothOverflowSize };
798
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.Flow, null, bothOverflowSize };
803
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflowAndItemSkipped(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size)
824
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalOverflowGripSize };
825
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalOverflowSize };
827
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalOverflowGripSize };
828
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalOverflowSize };
830
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalOverflowGripSize };
831
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalOverflowSize };
833
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalOverflowGripSize };
834
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalOverflowSize };
839
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflowAndFirstItemAlignedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size)
856
foreach (
ToolStripGripStyle
grip in Enum.GetValues<
ToolStripGripStyle
>())
865
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflowAndFirstItemAlignedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size)
878
ToolStripGripStyle
? gripStyle = null,
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (93)
182
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalSize, canOverflow };
183
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalSize, canOverflow };
184
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalSize, canOverflow };
185
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalSize, canOverflow };
198
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.Table, null, verticalSize, canOverflow };
199
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.Table, null, verticalSize, canOverflow };
201
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.Flow, null, horizontalSize, canOverflow };
202
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.Flow, null, horizontalSize, canOverflow };
221
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
233
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfToolStripIsEmpty(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
251
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalSize, canOverflow };
252
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalSize, canOverflow };
253
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalSize, canOverflow };
254
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalSize, canOverflow };
260
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfGripVisible(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
272
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfGripVisibleAndToolStripIsEmpty(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
297
using ToolStrip toolStrip = CreateToolStrip(
ToolStripGripStyle
.Hidden, layout, dock, size, canOverflow: true, itemCount: 1);
320
using ToolStrip toolStrip = CreateToolStrip(
ToolStripGripStyle
.Hidden, layout, dock, size, canOverflow: false, itemCount: 3);
331
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.Table, overflowSize };
332
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.Table, overflowSize };
333
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.Flow, overflowSize };
334
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.Flow, overflowSize };
339
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfCanNotOverflowAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, Size size)
351
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemSkipped(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
367
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfAllItemsSkipped(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
383
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemAlignedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
399
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemAlignedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
415
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemSkippedAndSecondAlignedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
433
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemSkippedAndSecondAlignedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
451
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfAllItemsAlignedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
468
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfAllItemsAlignedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
490
foreach (
ToolStripGripStyle
grip in Enum.GetValues<
ToolStripGripStyle
>())
507
foreach (
ToolStripGripStyle
grip in Enum.GetValues<
ToolStripGripStyle
>())
530
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
542
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfToolStripIsEmpty(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
553
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfToolStripIsEmptyAndGripVisible(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
565
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfLastItemSkipped(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
581
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsSkipped(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
597
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsSkippedAndGripVisible(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
614
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemAlignedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
630
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemAlignedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
646
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemSkippedAndAlignedAndLastSkippedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
668
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemSkippedAndAlignedAndLastSkippedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
690
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsAlignedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
707
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsAlignedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size, bool canOverflow)
727
foreach (
ToolStripGripStyle
grip in Enum.GetValues<
ToolStripGripStyle
>())
738
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfOverflow(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size)
756
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalOverflowGripSize };
757
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalOverflowSize };
759
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalOverflowGripSize };
760
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalOverflowSize };
762
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalOverflowGripSize };
763
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalOverflowSize };
765
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalOverflowGripSize };
766
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalOverflowSize };
768
foreach (
ToolStripGripStyle
grip in Enum.GetValues<
ToolStripGripStyle
>())
777
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflow(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size)
795
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalOverflowGripSize };
796
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalOverflowSize };
798
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalOverflowGripSize };
799
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalOverflowSize };
801
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalOverflowGripSize };
802
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalOverflowSize };
804
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalOverflowGripSize };
805
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalOverflowSize };
807
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.Table, null, bothOverflowSize };
808
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.Table, null, bothOverflowSize };
810
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.Flow, null, bothOverflowSize };
811
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.Flow, null, bothOverflowSize };
816
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflowAndItemSkipped(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size)
837
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalOverflowGripSize };
838
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.HorizontalStackWithOverflow, null, horizontalOverflowSize };
840
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalOverflowGripSize };
841
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.VerticalStackWithOverflow, null, verticalOverflowSize };
843
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalOverflowGripSize };
844
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, horizontalOverflowSize };
846
yield return new object[] {
ToolStripGripStyle
.Visible, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalOverflowGripSize };
847
yield return new object[] {
ToolStripGripStyle
.Hidden, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, verticalOverflowSize };
852
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflowAndFirstItemAlignedAndStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size)
868
foreach (
ToolStripGripStyle
grip in Enum.GetValues<
ToolStripGripStyle
>())
877
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflowAndFirstItemAlignedAndNonStackLayout(
ToolStripGripStyle
grip, ToolStripLayoutStyle layout, DockStyle? dock, Size size)
915
internal static IEnumerable<(ToolStripLayoutStyle,
ToolStripGripStyle
)> GetLayoutsWithGripVisible()
919
yield return (layout,
ToolStripGripStyle
.Visible);
923
internal static IEnumerable<(ToolStripLayoutStyle,
ToolStripGripStyle
)> GetLayoutsWithGripNotVisible()
927
yield return (layout,
ToolStripGripStyle
.Hidden);
932
yield return (layout,
ToolStripGripStyle
.Visible);
933
yield return (layout,
ToolStripGripStyle
.Hidden);
938
ToolStripGripStyle
? gripStyle = null,
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (1)
267
using ToolStrip toolStrip = new() { GripStyle =
ToolStripGripStyle
.Hidden };
System\Windows\Forms\MdiControlStripTests.cs (1)
84
Assert.Equal(
ToolStripGripStyle
.Hidden, mdiControlStrip.GripStyle);
System\Windows\Forms\MenuStripTests.cs (8)
82
Assert.Equal(
ToolStripGripStyle
.Hidden, control.GripStyle);
232
GripStyle =
ToolStripGripStyle
.Visible
238
[InlineData(
ToolStripGripStyle
.Hidden, 0)]
239
[InlineData(
ToolStripGripStyle
.Visible, 1)]
240
public void MenuStrip_GripStyle_Set_GetReturnsExpected(
ToolStripGripStyle
value, int expectedLayoutCallCount)
265
[InlineData(
ToolStripGripStyle
.Hidden, 0)]
266
[InlineData(
ToolStripGripStyle
.Visible, 1)]
267
public void MenuStrip_GripStyle_SetWithHandle_GetReturnsExpected(
ToolStripGripStyle
value, int expectedLayoutCallCount)
System\Windows\Forms\StatusStripTests.cs (4)
82
Assert.Equal(
ToolStripGripStyle
.Hidden, control.GripStyle);
320
[InlineData(
ToolStripGripStyle
.Hidden, 0)]
321
[InlineData(
ToolStripGripStyle
.Visible, 1)]
322
public void StatusStrip_GripStyle_Set_GetReturnsExpected(
ToolStripGripStyle
value, int expectedLayoutCallCount)
System\Windows\Forms\ToolStripDropDownTests.cs (6)
87
Assert.Equal(
ToolStripGripStyle
.Hidden, control.GripStyle);
1773
[InlineData(
ToolStripGripStyle
.Hidden, 0)]
1774
[InlineData(
ToolStripGripStyle
.Visible, 1)]
1775
public void ToolStripDropDown_GripStyle_Set_GetReturnsExpected(
ToolStripGripStyle
value, int expectedLayoutCallCount)
1802
[InvalidEnumData<
ToolStripGripStyle
>]
1803
public void ToolStripDropDown_GripStyle_SetInvalidValue_ThrowsInvalidEnumArgumentException(
ToolStripGripStyle
value)
System\Windows\Forms\ToolStripGripRenderEventArgsTests.cs (1)
38
GripStyle =
ToolStripGripStyle
.Visible
System\Windows\Forms\ToolStripRendererTests.cs (1)
477
yield return new object[] { new StatusStrip { GripStyle =
ToolStripGripStyle
.Hidden } };
System\Windows\Forms\ToolStripTests.cs (58)
97
Assert.Equal(
ToolStripGripStyle
.Visible, control.GripStyle);
251
Assert.Equal(
ToolStripGripStyle
.Visible, control.GripStyle);
2266
yield return new object[] { ToolStripLayoutStyle.Flow,
ToolStripGripStyle
.Visible, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) };
2267
yield return new object[] { ToolStripLayoutStyle.Flow,
ToolStripGripStyle
.Visible, RightToLeft.No, new Rectangle(0, 0, 99, 25) };
2268
yield return new object[] { ToolStripLayoutStyle.Flow,
ToolStripGripStyle
.Visible, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) };
2269
yield return new object[] { ToolStripLayoutStyle.Flow,
ToolStripGripStyle
.Hidden, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) };
2270
yield return new object[] { ToolStripLayoutStyle.Flow,
ToolStripGripStyle
.Hidden, RightToLeft.No, new Rectangle(0, 0, 99, 25) };
2271
yield return new object[] { ToolStripLayoutStyle.Flow,
ToolStripGripStyle
.Hidden, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) };
2273
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow,
ToolStripGripStyle
.Visible, RightToLeft.Yes, new Rectangle(0, 0, width, 25) };
2274
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow,
ToolStripGripStyle
.Visible, RightToLeft.No, new Rectangle(x, 0, width, 25) };
2275
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow,
ToolStripGripStyle
.Visible, RightToLeft.Inherit, new Rectangle(x, 0, width, 25) };
2276
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow,
ToolStripGripStyle
.Hidden, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) };
2277
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow,
ToolStripGripStyle
.Hidden, RightToLeft.No, new Rectangle(0, 0, 99, 25) };
2278
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow,
ToolStripGripStyle
.Hidden, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) };
2280
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
ToolStripGripStyle
.Visible, RightToLeft.Yes, new Rectangle(0, 0, width, 25) };
2281
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
ToolStripGripStyle
.Visible, RightToLeft.No, new Rectangle(x, 0, width, 25) };
2282
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
ToolStripGripStyle
.Visible, RightToLeft.Inherit, new Rectangle(x, 0, width, 25) };
2283
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
ToolStripGripStyle
.Hidden, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) };
2284
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
ToolStripGripStyle
.Hidden, RightToLeft.No, new Rectangle(0, 0, 99, 25) };
2285
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
ToolStripGripStyle
.Hidden, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) };
2287
yield return new object[] { ToolStripLayoutStyle.Table,
ToolStripGripStyle
.Visible, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) };
2288
yield return new object[] { ToolStripLayoutStyle.Table,
ToolStripGripStyle
.Visible, RightToLeft.No, new Rectangle(0, 0, 99, 25) };
2289
yield return new object[] { ToolStripLayoutStyle.Table,
ToolStripGripStyle
.Visible, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) };
2290
yield return new object[] { ToolStripLayoutStyle.Table,
ToolStripGripStyle
.Hidden, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) };
2291
yield return new object[] { ToolStripLayoutStyle.Table,
ToolStripGripStyle
.Hidden, RightToLeft.No, new Rectangle(0, 0, 99, 25) };
2292
yield return new object[] { ToolStripLayoutStyle.Table,
ToolStripGripStyle
.Hidden, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) };
2294
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow,
ToolStripGripStyle
.Visible, RightToLeft.Yes, new Rectangle(0, x, 99, height) };
2295
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow,
ToolStripGripStyle
.Visible, RightToLeft.No, new Rectangle(0, x, 99, height) };
2296
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow,
ToolStripGripStyle
.Visible, RightToLeft.Inherit, new Rectangle(0, x, 99, height) };
2297
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow,
ToolStripGripStyle
.Hidden, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) };
2298
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow,
ToolStripGripStyle
.Hidden, RightToLeft.No, new Rectangle(0, 0, 99, 25) };
2299
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow,
ToolStripGripStyle
.Hidden, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) };
2304
public void ToolStrip_DisplayRectangle_Get_ReturnsExpected(ToolStripLayoutStyle layoutStyle,
ToolStripGripStyle
gripStyle, RightToLeft rightToLeft, Rectangle expected)
2760
[InlineData(
ToolStripGripStyle
.Hidden, 1, 0)]
2761
[InlineData(
ToolStripGripStyle
.Visible, 0, 1)]
2762
public void ToolStrip_GripStyle_Set_GetReturnsExpected(
ToolStripGripStyle
value, int expectedLayoutCallCount, int expectedCount)
2790
[InlineData(
ToolStripGripStyle
.Hidden, 1)]
2791
[InlineData(
ToolStripGripStyle
.Visible, 0)]
2792
public void ToolStrip_GripStyle_SetWithGrip_GetReturnsExpected(
ToolStripGripStyle
value, int expectedLayoutCallCount)
2807
Assert.Equal(value ==
ToolStripGripStyle
.Visible, grip.Visible);
2814
Assert.Equal(value ==
ToolStripGripStyle
.Visible, grip.Visible);
2820
[InlineData(
ToolStripGripStyle
.Hidden, 1)]
2821
[InlineData(
ToolStripGripStyle
.Visible, 0)]
2822
public void ToolStrip_GripStyle_SetWithHandle_GetReturnsExpected(
ToolStripGripStyle
value, int expectedLayoutCallCount)
2860
[InvalidEnumData<
ToolStripGripStyle
>]
2861
public void ToolStrip_GripStyle_SetInvalidValue_ThrowsInvalidEnumArgumentException(
ToolStripGripStyle
value)
5818
GripStyle =
ToolStripGripStyle
.Hidden
7274
[InlineData(ToolStripLayoutStyle.Flow, true,
ToolStripGripStyle
.Visible)]
7275
[InlineData(ToolStripLayoutStyle.HorizontalStackWithOverflow, true,
ToolStripGripStyle
.Visible)]
7276
[InlineData(ToolStripLayoutStyle.StackWithOverflow, true,
ToolStripGripStyle
.Visible)]
7277
[InlineData(ToolStripLayoutStyle.Table, true,
ToolStripGripStyle
.Visible)]
7278
[InlineData(ToolStripLayoutStyle.VerticalStackWithOverflow, true,
ToolStripGripStyle
.Visible)]
7279
[InlineData(ToolStripLayoutStyle.Flow, true,
ToolStripGripStyle
.Hidden)]
7280
[InlineData(ToolStripLayoutStyle.HorizontalStackWithOverflow, true,
ToolStripGripStyle
.Hidden)]
7281
[InlineData(ToolStripLayoutStyle.StackWithOverflow, true,
ToolStripGripStyle
.Hidden)]
7282
[InlineData(ToolStripLayoutStyle.Table, true,
ToolStripGripStyle
.Hidden)]
7283
[InlineData(ToolStripLayoutStyle.VerticalStackWithOverflow, true,
ToolStripGripStyle
.Hidden)]
7284
public void ToolStrip_GetNextItem_ItemsBackwardExpected(ToolStripLayoutStyle toolStripLayoutStyle, bool tabStop,
ToolStripGripStyle
gripStyle)
System.Windows.Forms.UI.IntegrationTests (2)
Dpi\ToolStripItemTests.Dpi.cs (1)
40
toolStrip.GripStyle =
ToolStripGripStyle
.Hidden;
DragDropTests.cs (1)
964
GripStyle =
ToolStripGripStyle
.Hidden
WinFormsControlsTest (1)
DragDrop.cs (1)
442
GripStyle =
ToolStripGripStyle
.Hidden