2849 references to RightToLeft
Accessibility_Core_App (4)
CommonControl1.Designer.cs (1)
658
this.dateTimePicker2.RightToLeft = System.Windows.Forms.
RightToLeft
.Yes;
ContainerControls2.Designer.cs (3)
92
this.splitContainer1.Panel1.RightToLeft = System.Windows.Forms.
RightToLeft
.No;
98
this.splitContainer1.Panel2.RightToLeft = System.Windows.Forms.
RightToLeft
.No;
99
this.splitContainer1.RightToLeft = System.Windows.Forms.
RightToLeft
.No;
PresentationUI (3)
MS\Internal\Documents\DialogBaseForm.cs (2)
155
RightToLeft =
RightToLeft
.Yes;
160
RightToLeft =
RightToLeft
.No;
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
625
if (RightToLeft ==
RightToLeft
.Yes)
System.Windows.Forms (213)
System\Windows\Forms\ActiveX\AxHost.cs (7)
359
RightToLeft
rtol = base.RightToLeft;
360
return rtol == Forms.
RightToLeft
.Yes;
362
set => base.RightToLeft = (value) ? Forms.
RightToLeft
.Yes : Forms.
RightToLeft
.No;
2124
if (control.RightToLeft == Forms.
RightToLeft
.No)
2129
if (control.RightToLeft == Forms.
RightToLeft
.Yes)
2134
if (control.RightToLeft == Forms.
RightToLeft
.Inherit)
System\Windows\Forms\Control.cs (20)
1364
if (RightToLeft ==
RightToLeft
.Yes)
1587
private static
RightToLeft
DefaultRightToLeft =>
RightToLeft
.No;
2849
[AmbientValue(
RightToLeft
.Inherit)]
2851
public virtual
RightToLeft
RightToLeft
2855
if (!Properties.TryGetValue(s_rightToLeftProperty, out
RightToLeft
rightToLeft)
2856
|| rightToLeft ==
RightToLeft
.Inherit)
2868
RightToLeft
oldValue = RightToLeft;
2870
if (Properties.ContainsKey(s_rightToLeftProperty) || value !=
RightToLeft
.Inherit)
4158
RightToLeft
oldRtl = RightToLeft;
7006
if (!Properties.TryGetValue(s_rightToLeftProperty, out
RightToLeft
rightToLeft) || rightToLeft ==
RightToLeft
.Inherit)
7362
si.nPos = (RightToLeft ==
RightToLeft
.Yes) ? si.nMax : si.nMin;
9090
RightToLeft =
RightToLeft
.Inherit;
10466
Properties.TryGetValue(s_rightToLeftProperty, out
RightToLeft
rightToLeft)
10467
&& rightToLeft !=
RightToLeft
.Inherit;
10498
if (RightToLeft ==
RightToLeft
.Yes)
10516
if (RightToLeft ==
RightToLeft
.Yes)
10534
if (RightToLeft ==
RightToLeft
.Yes)
12693
TopLevelControlInternal is { } topLevelControl && topLevelControl.RightToLeft ==
RightToLeft
.Yes && !IsMirrored;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (3)
563
RightToLeft
rtl) => new()
583
LayoutRTL = rtl ==
RightToLeft
.Yes,
610
LayoutRTL = Control.RightToLeft ==
RightToLeft
.Yes,
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (1)
306
RightToLeft
rtl)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (1)
158
RightToLeft
rtl)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
346
layout.LayoutRTL = Control.RightToLeft ==
RightToLeft
.Yes;
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (1)
139
RightToLeft
rtl,
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (5)
19
private readonly
RightToLeft
_origRightToLeft; // The combo box's RTL value when we were created
53
if (_origRightToLeft ==
RightToLeft
.Yes)
79
bool rightToLeft = comboBox.RightToLeft ==
RightToLeft
.Yes;
121
bool rightToLeft = comboBox.RightToLeft ==
RightToLeft
.Yes;
168
if (_origRightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
460
_horizScrollBar.RightToLeft =
RightToLeft
.Inherit;
3158
_dataGridViewState2[State2_RightToLeftMode] = (RightToLeft ==
RightToLeft
.Yes);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
30041
if (RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
335
bool IKeyboardToolTip.HasRtlModeEnabled() => DataGridView is not null && DataGridView.RightToLeft ==
RightToLeft
.Yes;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (3)
338
if (_owner.DataGridView.RightToLeft ==
RightToLeft
.Yes)
451
return _owner.DataGridView.RightToLeft ==
RightToLeft
.No
459
return _owner.DataGridView.RightToLeft ==
RightToLeft
.No
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.cs (2)
152
AccessibleNavigation.Right => Owner.DataGridView.RightToLeft ==
RightToLeft
.No ? NavigateForward() : NavigateBackward(),
154
AccessibleNavigation.Left => Owner.DataGridView.RightToLeft ==
RightToLeft
.No ? NavigateBackward() : NavigateForward(),
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (1)
36
if (Owner.DataGridView.RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (4)
134
if ((RightToLeft ==
RightToLeft
.No && !(SelectionLength == 0 && SelectionStart == Text.Length)) ||
135
(RightToLeft ==
RightToLeft
.Yes && !(SelectionLength == 0 && SelectionStart == 0)))
146
if ((RightToLeft ==
RightToLeft
.No && !(SelectionLength == 0 && SelectionStart == 0)) ||
147
(RightToLeft ==
RightToLeft
.Yes && !(SelectionLength == 0 && SelectionStart == Text.Length)))
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject.cs (3)
80
if (Owner.DataGridView.RightToLeft ==
RightToLeft
.No)
165
if (Owner.DataGridView.RightToLeft ==
RightToLeft
.No)
177
if (Owner.DataGridView.RightToLeft ==
RightToLeft
.No)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (3)
411
if (RightToLeft ==
RightToLeft
.Yes && RightToLeftLayout)
1166
if (RightToLeft ==
RightToLeft
.Yes)
1503
if (RightToLeftLayout && RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (4)
419
if (RightToLeft ==
RightToLeft
.Yes)
481
if (RightToLeft ==
RightToLeft
.Yes)
508
if (RightToLeft ==
RightToLeft
.Yes)
535
if (RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (4)
546
if (RightToLeft ==
RightToLeft
.Yes)
575
if (RightToLeft ==
RightToLeft
.Yes)
667
if (RightToLeft ==
RightToLeft
.Yes)
695
if (RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1854
if (RightToLeft ==
RightToLeft
.Yes || HorizontalScrollbar)
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
336
if ((Index != 0) && (ListView.RightToLeft ==
RightToLeft
.Yes) && !ListView.IsMirrored)
System\Windows\Forms\Controls\ListView\ListView.cs (2)
724
if (RightToLeft ==
RightToLeft
.Yes && RightToLeftLayout)
4816
if (RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (1)
66
bool IKeyboardToolTip.HasRtlModeEnabled() => _listView?.RightToLeft ==
RightToLeft
.Yes;
System\Windows\Forms\Controls\Menus\MenuStrip.cs (1)
215
SelectNextToolStripItem(null, forward: RightToLeft ==
RightToLeft
.No);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (2)
308
if (RightToLeft ==
RightToLeft
.Yes && RightToLeftLayout)
1474
if (RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
784
public override
RightToLeft
RightToLeft
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (2)
63
if (RightToLeft ==
RightToLeft
.Yes && RightToLeftLayout)
629
if (RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
119
RightToLeft =
RightToLeft
.Yes;
System\Windows\Forms\Controls\TabControl\TabControl.cs (3)
336
if (RightToLeft ==
RightToLeft
.Yes && RightToLeftLayout)
1425
if (RightToLeft ==
RightToLeft
.Yes)
1924
if (RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
871
if (RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (5)
76
if (RightToLeft ==
RightToLeft
.No)
214
if (RightToLeft ==
RightToLeft
.Yes)
269
if (SizingGrip && RightToLeft ==
RightToLeft
.Yes)
580
if (RightToLeft ==
RightToLeft
.Yes)
594
if (RightToLeft !=
RightToLeft
.Yes)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (7)
589
direction = ((Dock == DockStyle.Right) && (RightToLeft ==
RightToLeft
.No)) ? ToolStripDropDownDirection.Left : ToolStripDropDownDirection.Right;
606
direction = (RightToLeft ==
RightToLeft
.Yes) ? ToolStripDropDownDirection.AboveLeft : ToolStripDropDownDirection.AboveRight;
611
direction = (RightToLeft ==
RightToLeft
.Yes) ? ToolStripDropDownDirection.BelowLeft : ToolStripDropDownDirection.BelowRight;
741
rect.X += (RightToLeft ==
RightToLeft
.No) ? gripwidth : 0;
2028
if (rtlAware && RightToLeft ==
RightToLeft
.Yes)
3022
if (RightToLeft ==
RightToLeft
.Yes)
4182
if (RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (2)
362
RightToLeft
rightToLeft = RightToLeft;
365
if (rightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
324
public override
RightToLeft
RightToLeft
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (5)
276
? (RightToLeft ==
RightToLeft
.Yes) ? ToolStripDropDownDirection.Left : ToolStripDropDownDirection.Right
611
RightToLeft
startRightToLeft = RightToLeft;
693
[AmbientValue(
RightToLeft
.Inherit)]
695
public override
RightToLeft
RightToLeft
1824
if (OwnerItem is null && control.RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.ToolStripDropDownButtonInternalLayout.cs (1)
62
if (_ownerItem.RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (9)
132
(RightToLeft != parent.RightToLeft && (RightToLeft !=
RightToLeft
.Inherit)))
147
RightToLeft
toggledRightToLeft = (RightToLeft ==
RightToLeft
.Yes) ?
RightToLeft
.No :
RightToLeft
.Yes;
388
bool rtl = (RightToLeft ==
RightToLeft
.Yes);
644
private ToolStripDropDownDirection RTLTranslateDropDownDirection(ToolStripDropDownDirection dropDownDirection,
RightToLeft
rightToLeft)
667
return (rightToLeft ==
RightToLeft
.Yes) ? ToolStripDropDownDirection.Left : ToolStripDropDownDirection.Right;
671
return (rightToLeft ==
RightToLeft
.Yes) ? ToolStripDropDownDirection.BelowLeft : ToolStripDropDownDirection.BelowRight;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (4)
74
RightToLeft
rightToLeft = RightToLeft;
76
int textPadding = (rightToLeft ==
RightToLeft
.Yes) ? _textPadding.Right : _textPadding.Left;
80
if (rightToLeft ==
RightToLeft
.Yes)
434
if (RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (15)
727
private static
RightToLeft
DefaultRightToLeft =>
RightToLeft
.Inherit;
1643
public virtual
RightToLeft
RightToLeft
1647
if (!Properties.TryGetValue(s_rightToLeftProperty, out
RightToLeft
rightToLeft))
1649
rightToLeft =
RightToLeft
.Inherit;
1652
if (rightToLeft ==
RightToLeft
.Inherit)
1676
RightToLeft
oldValue = RightToLeft;
1678
if (Properties.ContainsKey(s_rightToLeftProperty) || value !=
RightToLeft
.Inherit)
2947
if (!Properties.TryGetValue(s_rightToLeftProperty, out
RightToLeft
rightToLeft) || rightToLeft ==
RightToLeft
.Inherit)
2963
if (!Properties.TryGetValue(s_rightToLeftProperty, out
RightToLeft
rightToLeft))
2965
rightToLeft =
RightToLeft
.Inherit;
2968
if (rightToLeft ==
RightToLeft
.Inherit && RightToLeft != DefaultRightToLeft)
3362
if (!Properties.TryGetValue(s_rightToLeftProperty, out
RightToLeft
rightToLeft))
3419
public virtual void ResetRightToLeft() => RightToLeft =
RightToLeft
.Inherit;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (2)
119
layoutOptions.LayoutRTL = Owner.RightToLeft ==
RightToLeft
.Yes;
126
layoutOptions.GdiTextFormatFlags = ContentAlignmentToTextFormat(Owner.TextAlign, Owner.RightToLeft ==
RightToLeft
.Yes);
System\Windows\Forms\Controls\ToolStrips\ToolStripItemImageRenderEventArgs.cs (1)
14
Image = (item.RightToLeftAutoMirrorImage && item.RightToLeft ==
RightToLeft
.Yes) ? item.MirroredImage : item.Image;
System\Windows\Forms\Controls\ToolStrips\ToolStripItemTextRenderEventArgs.cs (1)
58
TextFormat = ToolStripItem.ToolStripItemInternalLayout.ContentAlignmentToTextFormat(textAlign, item.RightToLeft ==
RightToLeft
.Yes);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
244
toolStrip.SelectNextToolStripItem(start: null, toolStrip.RightToLeft !=
RightToLeft
.Yes);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
972
bool rightToLeft = (RightToLeft ==
RightToLeft
.Yes);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (2)
420
&& toolStripToDrag.RightToLeft ==
RightToLeft
.Yes)
676
if (Orientation == Orientation.Horizontal && RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (10)
160
bool rightToLeft = item.RightToLeft ==
RightToLeft
.Yes;
287
Padding deflatePadding = item.RightToLeft ==
RightToLeft
.Yes ? new Padding(0, 1, 1, 1) : new Padding(1, 1, 0, 1);
486
bool rightToLeft = (e.ToolStrip.RightToLeft ==
RightToLeft
.Yes);
700
RightToLeft
rightToLeft = e.ToolStrip.RightToLeft;
701
Color begin = (rightToLeft ==
RightToLeft
.No) ? ColorTable.ImageMarginGradientBegin : ColorTable.ImageMarginGradientEnd;
702
Color end = (rightToLeft ==
RightToLeft
.No) ? ColorTable.ImageMarginGradientEnd : ColorTable.ImageMarginGradientBegin;
704
FillWithDoubleGradient(begin, ColorTable.ImageMarginGradientMiddle, end, e.Graphics, bounds, _iconWellGradientWidth, _iconWellGradientWidth, LinearGradientMode.Horizontal, /*flipHorizontal=*/(e.ToolStrip.RightToLeft ==
RightToLeft
.Yes));
1126
if (control.RightToLeft ==
RightToLeft
.Yes)
1473
if (dropDownMenu.RightToLeft ==
RightToLeft
.No)
1505
bool rightToLeft = (item.RightToLeft ==
RightToLeft
.Yes);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
983
if (statusStrip.RightToLeft ==
RightToLeft
.Yes)
990
if (statusStrip.RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
312
if (RightToLeft ==
RightToLeft
.No)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (2)
102
insertIndex = Math.Max(0, (_owner.RightToLeft ==
RightToLeft
.Yes) ? insertIndex + 1 : insertIndex);
110
insertIndex = Math.Max(0, (_owner.RightToLeft ==
RightToLeft
.No) ? insertIndex + 1 : insertIndex);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (3)
229
if (toolStrip.RightToLeft ==
RightToLeft
.No)
291
if (((item.Alignment == ToolStripItemAlignment.Right) && (toolStrip.RightToLeft ==
RightToLeft
.No)) || ((item.Alignment == ToolStripItemAlignment.Left) && (toolStrip.RightToLeft ==
RightToLeft
.Yes)))
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (5)
325
RenderSmall3DBorderInternal(g, bounds, ToolBarState.Hot, e.ToolStrip.RightToLeft ==
RightToLeft
.Yes);
437
RenderSmall3DBorderInternal(g, bounds, state, (item.RightToLeft ==
RightToLeft
.Yes));
523
bool rightToLeft = splitButton.RightToLeft ==
RightToLeft
.Yes;
668
RenderSmall3DBorderInternal(g, new Rectangle(Point.Empty, item.Size), state, (item.RightToLeft ==
RightToLeft
.Yes));
713
bool rightToLeft = (item.RightToLeft ==
RightToLeft
.Yes);
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (4)
180
if (RightToLeft ==
RightToLeft
.Yes && RightToLeftLayout)
830
if (_orientation == Orientation.Horizontal && RightToLeft ==
RightToLeft
.Yes && !IsMirrored)
889
if (RightToLeft ==
RightToLeft
.Yes)
1117
if (_orientation == Orientation.Horizontal && RightToLeft ==
RightToLeft
.Yes && !IsMirrored)
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarAccessibleObject.cs (2)
57
=> this.TryGetOwnerAs(out TrackBar? owner) && owner.RightToLeft ==
RightToLeft
.Yes && owner.RightToLeftLayout;
63
=> this.TryGetOwnerAs(out TrackBar? owner) && owner.RightToLeft ==
RightToLeft
.Yes && !owner.RightToLeftLayout;
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarFirstButtonAccessibleObject.cs (1)
23
: owner.Orientation == Orientation.Horizontal && (owner.RightToLeft ==
RightToLeft
.No || parent.IsMirrored)
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarLastButtonAccessibleObject.cs (1)
23
: owner.Orientation == Orientation.Horizontal && (owner.RightToLeft ==
RightToLeft
.No || parent.IsMirrored)
System\Windows\Forms\Controls\TreeView\TreeNode.IKeyboardToolTip.cs (1)
41
bool IKeyboardToolTip.HasRtlModeEnabled() => TreeView?.RightToLeft ==
RightToLeft
.Yes;
System\Windows\Forms\Controls\TreeView\TreeView.cs (3)
392
if (RightToLeft ==
RightToLeft
.Yes)
2320
if (RightToLeft ==
RightToLeft
.Yes)
2980
if (RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
1346
public override
RightToLeft
RightToLeft
1348
get =>
RightToLeft
.No;
System\Windows\Forms\Form.cs (3)
841
if (RightToLeft ==
RightToLeft
.Yes && RightToLeftLayout)
4595
if (RightToLeft ==
RightToLeft
.Yes)
4606
if (RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Layout\Containers\SplitContainer.cs (6)
1354
if (RightToLeft ==
RightToLeft
.No)
1386
if (RightToLeft ==
RightToLeft
.No)
1505
if (RightToLeft ==
RightToLeft
.No)
1571
_splitterRect.X = ((RightToLeft ==
RightToLeft
.Yes) ? Width - _splitterDistance - SplitterWidthInternal : Location.X + _splitterDistance);
1643
if (RightToLeft ==
RightToLeft
.No)
2171
bool isRTL = RightToLeft ==
RightToLeft
.Yes;
System\Windows\Forms\Layout\FlowLayout.ContainerProxy.cs (1)
41
_isContainerRTL = control.RightToLeft ==
RightToLeft
.Yes;
System\Windows\Forms\Layout\TableLayout.cs (1)
1185
isContainerRTL = containerAsControl.RightToLeft ==
RightToLeft
.Yes;
System\Windows\Forms\MDI\MDIClient.cs (1)
109
if (RightToLeft ==
RightToLeft
.Yes && ParentInternal is not null && ParentInternal.IsMirrored)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
359
bool isRTL = RightToLeft ==
RightToLeft
.Yes;
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (1)
34
RightToLeft =
RightToLeft
.Yes;
System\Windows\Forms\Printing\PrintPreviewControl.cs (5)
71
RightToLeft =
RightToLeft
.No,
253
[AmbientValue(
RightToLeft
.Inherit)]
255
public override
RightToLeft
RightToLeft
452
if (RightToLeft ==
RightToLeft
.Yes)
820
if (RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
555
public override
RightToLeft
RightToLeft
System\Windows\Forms\Rendering\ControlPaint.cs (5)
422
RightToLeft
rightToLeft =
RightToLeft
.No)
450
if (rightToLeft ==
RightToLeft
.Yes && backgroundImageLayout == ImageLayout.None)
2551
if (control.RightToLeft ==
RightToLeft
.Yes)
2606
if (control.RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
992
if (horiz && !HScroll && (RightToLeft ==
RightToLeft
.Yes))
1238
(WPARAM)(RightToLeft ==
RightToLeft
.Yes ? (int)SCROLLBAR_COMMAND.SB_RIGHT : (int)SCROLLBAR_COMMAND.SB_LEFT),
System\Windows\Forms\Scrolling\ScrollBar.cs (3)
613
if (RightToLeft ==
RightToLeft
.Yes)
636
if (RightToLeft ==
RightToLeft
.Yes)
708
if (RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarFirstPageButtonAccessibleObject.cs (1)
31
&& OwningScrollBar.RightToLeft ==
RightToLeft
.Yes
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarLastPageButtonAccessibleObject.cs (1)
31
&& OwningScrollBar.RightToLeft ==
RightToLeft
.Yes
System\Windows\Forms\Scrolling\VScrollBar.cs (2)
42
public override
RightToLeft
RightToLeft
44
get =>
RightToLeft
.No;
System\Windows\Forms\ToolTip\ToolTip.cs (2)
977
if (TopLevelControl?.RightToLeft ==
RightToLeft
.Yes && !control.IsMirrored)
992
if (TopLevelControl?.RightToLeft ==
RightToLeft
.Yes)
System.Windows.Forms.Design (23)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
203
if (RightToLeft ==
RightToLeft
.Yes)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
475
if (RightToLeft ==
RightToLeft
.Yes)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
342
if (ActionPanel.RightToLeft !=
RightToLeft
.Yes)
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (1)
251
if (isColumn && _table.RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
140
private bool IsRtl => Control.RightToLeft ==
RightToLeft
.Yes;
System\Windows\Forms\Design\FormatStringDialog.cs (2)
30
RightToLeft =
RightToLeft
.No;
35
RightToLeft =
RightToLeft
.Yes;
System\Windows\Forms\Design\LabelDesigner.cs (1)
75
bool rtl = (label.RightToLeft ==
RightToLeft
.Yes);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (3)
859
bool isRTL = (Table.RightToLeft ==
RightToLeft
.Yes);
974
bool isRTL = Table.RightToLeft ==
RightToLeft
.Yes;
1085
bool isRTL = (Table.RightToLeft ==
RightToLeft
.Yes);
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1807
if (ToolStrip.RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (3)
126
private
RightToLeft
RightToLeft
617
RightToLeft =
RightToLeft
.No;
728
private bool ShouldSerializeRightToLeft() => RightToLeft !=
RightToLeft
.No;
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (6)
301
if (parent.RightToLeft ==
RightToLeft
.Yes && (direction == ArrowDirection.Left || direction == ArrowDirection.Right))
1790
if ((ctl.RightToLeft !=
RightToLeft
.Yes && !backwards) || (ctl.RightToLeft ==
RightToLeft
.Yes && backwards))
1881
else if (item == parent.Items[0] && parent.RightToLeft !=
RightToLeft
.Yes)
1931
else if (item == parent.Items[0] && parent.RightToLeft ==
RightToLeft
.Yes)
1962
if (parent.RightToLeft ==
RightToLeft
.Yes)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1896
if (_owner.EditorToolStrip.RightToLeft ==
RightToLeft
.Yes)
1917
if (_owner.EditorToolStrip.RightToLeft ==
RightToLeft
.Yes)
System.Windows.Forms.Design.Tests (3)
System\ComponentModel\Design\ByteViewerTests.cs (1)
108
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\Design\FormatStringDialogTests.cs (2)
38
_formatStringDialog.RightToLeft.Should().Be(
RightToLeft
.No);
43
_formatStringDialog.RightToLeft.Should().Be(
RightToLeft
.Yes);
System.Windows.Forms.Tests (2478)
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (6)
31
[InlineData(
RightToLeft
.No)]
32
[InlineData(
RightToLeft
.Yes)]
33
public void DataGridViewCellsAccessibleObject_Ctor_Default_IfHandleIsCreated(
RightToLeft
rightToLeft)
63
[InlineData(
RightToLeft
.No)]
64
[InlineData(
RightToLeft
.Yes)]
65
public void DataGridViewCellsAccessibleObject_Ctor_Default_IfHandleIsNotCreated(
RightToLeft
rightToLeft)
System\Windows\Forms\AccessibleObjects\DataGridViewTopLeftHeaderCellAccessibleObjectTests.cs (3)
114
yield return new object[] {
RightToLeft
.No, SR.DataGridView_AccTopLeftColumnHeaderCellName };
115
yield return new object[] {
RightToLeft
.Yes, SR.DataGridView_AccTopLeftColumnHeaderCellNameRTL };
120
public void DataGridViewTopLeftHeaderCellAccessibleObject_Name_ReturnsExpected(
RightToLeft
value, string expected)
System\Windows\Forms\AccessibleObjects\HScrollBar.HScrollBarAccessibleObjectTests.cs (12)
112
public void HScrollBarAccessibleObject_FragmentNavigate_Child_ReturnExpected(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
124
public void HScrollBarAccessibleObject_GetChildCount_ReturnsFive_AllButtonsAreDisplayed(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
135
public void HScrollBarAccessibleObject_GetChildCount_ReturnsFour_FirstPageButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
146
public void HScrollBarAccessibleObject_GetChildCount_ReturnsFour_LastPageButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
157
public void HScrollBarAccessibleObject_GetChildCount_ReturnsThree_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
168
public void HScrollBarAccessibleObject_GetChildCount_ReturnsMunisOne_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
179
public void HScrollBarAccessibleObject_GetChild_ReturnExpected_AllButtonsAreDisplayed(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
195
public void HScrollBarAccessibleObject_GetChild_ReturnExpected_FirstButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
211
public void HScrollBarAccessibleObject_GetChild_ReturnExpected_LastButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
227
public void HScrollBarAccessibleObject_GetChild_ReturnExpected_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
243
public void HScrollBarAccessibleObject_GetChild_ReturnExpected_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
271
private HScrollBar GetHScrollBar(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (29)
15
public void HScrollBarFirstLineButtonAccessibleObject_GetChild_ReturnNull(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
28
public void HScrollBarFirstLineButtonAccessibleObject_GetChildCount_ReturnMinusOne(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
39
public void HScrollBarFirstLineButtonAccessibleObject_DefaultAction_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
50
public void HScrollBarFirstLineButtonAccessibleObject_DefaultAction_ReturnNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
61
public void HScrollBarFirstLineButtonAccessibleObject_Description_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
72
public void HScrollBarFirstLineButtonAccessibleObject_Description_ReturnNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
83
public void HScrollBarFirstLineButtonAccessibleObject_State_ReturnExpected(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
94
public void HScrollBarFirstLineButtonAccessibleObject_Name_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
105
public void HScrollBarFirstLineButtonAccessibleObject_Name_ReturnNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
116
public void HScrollBarFirstLineButtonAccessibleObject_Role_ReturnNotNull(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
128
public void HScrollBarFirstLineButtonAccessibleObject_InvokePattern_Supported(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
139
public void HScrollBarFirstLineButtonAccessibleObject_FragmentNavigate_ReturnExpected_FirstPageButtonIsDisplayed(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
155
public void HScrollBarFirstLineButtonAccessibleObject_FragmentNavigate_ReturnExpected_FirstPageButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
171
public void HScrollBarFirstLineButtonAccessibleObject_FragmentNavigate_ReturnExpected_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
187
public void HScrollBarFirstLineButtonAccessibleObject_FragmentNavigate_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
204
using HScrollBar scrollBar = GetHScrollBar(createControl: true,
RightToLeft
.Yes, minimum: 0, maximum: 100, value: 50);
222
using HScrollBar scrollBar = GetHScrollBar(createControl: true,
RightToLeft
.No, minimum: 0, maximum: 100, value: 50);
238
[InlineData(
RightToLeft
.No, 0, 100)]
239
[InlineData(
RightToLeft
.No, 0, 0)]
240
[InlineData(
RightToLeft
.Yes, 99, 100)]
241
[InlineData(
RightToLeft
.Yes, 0, 0)]
242
public void HScrollBarFirstLineButtonAccessibleObject_Invoke_DoesNotWork_OutOfRange(
RightToLeft
rightToLeft, int value, int maximum)
257
public void HScrollBarFirstLineButtonAccessibleObject_Invoke_DoesNotWork_IfHandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
272
public void HScrollBarLinePageButtonAccessibleObject_Invoke_DoesNotWork_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
287
public void HScrollBarFirstLineButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsTrue_OwnerEnabled(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
299
public void HScrollBarFirstLineButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsFalse_OwnerDisabled(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
311
public void HScrollBarFirstLineButtonAccessibleObject_IsDisplayed_ReturnsTrue_OwnerVisible(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
323
public void HScrollBarFirstLineButtonAccessibleObject_IsDisplayed_ReturnsFalse_OwnerInvisible(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
333
private HScrollBar GetHScrollBar(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (32)
15
public void HScrollBarFirstPageButtonAccessibleObject_GetChild_ReturnNull(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
28
public void HScrollBarFirstPageButtonAccessibleObject_GetChildCount_ReturnMinusOne(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
39
public void HScrollBarFirstPageButtonAccessibleObject_Bounds_ReturnEmptyRectangle_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
50
public void HScrollBarFirstPageButtonAccessibleObject_Bounds_ReturnEmptyRectangle_FirstPageButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
61
public void HScrollBarFirstPageButtonAccessibleObject_DefaultAction_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
72
public void HScrollBarFirstPageButtonAccessibleObject_DefaultAction_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
83
public void HScrollBarFirstPageButtonAccessibleObject_Description_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
94
public void HScrollBarFirstPageButtonAccessibleObject_Description_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
105
public void HScrollBarFirstPageButtonAccessibleObject_Name_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
116
public void HScrollBarFirstPageButtonAccessibleObject_Name_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
127
public void HScrollBarFirstPageButtonAccessibleObject_Role_ReturnNotNull(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
139
public void HScrollBarFirstPageButtonAccessibleObject_State_ReturnNone_IfHandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
150
public void HScrollBarFirstPageButtonAccessibleObject_InvokePattern_Supported(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
161
public void HScrollBarFirstPageButtonAccessibleObject_FragmentNavigate_ReturnsExpected_ButtonIsDisplayed(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
179
public void HScrollBarFirstPageButtonAccessibleObject_FragmentNavigate_ReturnsExpected_ButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
195
public void HScrollBarFirstPageButtonAccessibleObject_FragmentNavigate_ReturnsExpected_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
211
public void HScrollBarFirstPageButtonAccessibleObject_FragmentNavigate_ReturnsNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
227
using HScrollBar scrollBar = GetHScrollBar(createControl: true,
RightToLeft
.Yes, minimum: 0, maximum: 100, value: 50);
245
using HScrollBar scrollBar = GetHScrollBar(createControl: true,
RightToLeft
.No, minimum: 0, maximum: 100, value: 50);
261
[InlineData(
RightToLeft
.No, 0, 100)]
262
[InlineData(
RightToLeft
.No, 0, 0)]
263
[InlineData(
RightToLeft
.Yes, 99, 100)]
264
[InlineData(
RightToLeft
.Yes, 0, 0)]
265
public void HScrollBarFirstPageButtonAccessibleObject_Invoke_DoesNotWork_OutOfRange(
RightToLeft
rightToLeft, int value, int maximum)
280
public void HScrollBarFirstPageButtonAccessibleObject_Invoke_DoesNotWork_IfHandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
295
public void HScrollBarFirstPageButtonAccessibleObject_Invoke_DoesNotWork_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
310
public void HScrollBarFirstPageButtonAccessibleObject_Invoke_DoesNotWork_FirstPageButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
325
public void HScrollBarFirstPageButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsTrue_OwnerEnabled(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
337
public void HScrollBarFirstPageButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsFalse_OwnerDisabled(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
349
public void HScrollBarFirstPageButtonAccessibleObject_IsDisplayed_ReturnsTrue_OwnerVisible(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
361
public void HScrollBarFirstPageButtonAccessibleObject_IsDisplayed_ReturnsFalse_OwnerInvisible(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
371
private HScrollBar GetHScrollBar(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (30)
15
public void HScrollBarLastLineButtonAccessibleObject_GetChild_ReturnNull(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
28
public void HScrollBarLastLineButtonAccessibleObject_GetChildCount_ReturnMinusOne(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
39
public void HScrollBarLastLineButtonAccessibleObject_DefaultAction_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
50
public void HScrollBarLastLineButtonAccessibleObject_DefaultAction_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
61
public void HScrollBarLastLineButtonAccessibleObject_Description_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
72
public void HScrollBarLastLineButtonAccessibleObject_Description_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
83
public void HScrollBarLastLineButtonAccessibleObject_Name_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
94
public void HScrollBarLastLineButtonAccessibleObject_Name_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
105
public void HScrollBarLastLineButtonAccessibleObject_State_ReturnExpected(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
116
public void HScrollBarLastLineButtonAccessibleObject_Role_ReturnPushButton_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
127
public void HScrollBarLastLineButtonAccessibleObject_Role_ReturnNone_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
138
public void HScrollBarLastLineButtonAccessibleObject_InvokePattern_Supported(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
149
public void HScrollBarLastLineButtonAccessibleObject_FragmentNavigate_ReturnsExpected_LastPageButtonIsDisplayed(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
165
public void HScrollBarLastLineButtonAccessibleObject_FragmentNavigate_ReturnsExpected_LastPageButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
181
public void HScrollBarLastLineButtonAccessibleObject_FragmentNavigate_ReturnsExpected_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
197
public void HScrollBarLastLineButtonAccessibleObject_FragmentNavigate_ReturnsExpected_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
214
using HScrollBar scrollBar = GetHScrollBar(createControl: true,
RightToLeft
.Yes, minimum: 0, maximum: 100, value: 50);
232
using HScrollBar scrollBar = GetHScrollBar(createControl: true,
RightToLeft
.No, minimum: 0, maximum: 100, value: 50);
248
[InlineData(
RightToLeft
.No, 99, 100)]
249
[InlineData(
RightToLeft
.No, 0, 0)]
250
[InlineData(
RightToLeft
.Yes, 0, 100)]
251
[InlineData(
RightToLeft
.Yes, 0, 0)]
252
public void HScrollBarLastLineButtonAccessibleObject_Invoke_DoesNotWork_OutOfRange(
RightToLeft
rightToLeft, int value, int maximum)
267
public void HScrollBarLastLineButtonAccessibleObject_Invoke_DoesNotWork_IfHandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
282
public void HScrollBarLinePageButtonAccessibleObject_Invoke_DoesNotWork_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
297
public void HScrollBarLastLineButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsTrue_OwnerEnabled(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
309
public void HScrollBarLastLineButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsFalse_OwnerDisabled(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
321
public void HScrollBarLastLineButtonAccessibleObject_IsDisplayed_ReturnsTrue_OwnerVisible(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
333
public void HScrollBarLastLineButtonAccessibleObject_IsDisplayed_ReturnsFalse_OwnerInvisible(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
343
private HScrollBar GetHScrollBar(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (31)
15
public void HScrollBarLastPageButtonAccessibleObject_GetChild_ReturnNull(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
28
public void HScrollBarLastPageButtonAccessibleObject_GetChildCount_ReturnMinusOne(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
39
public void HScrollBarLastPageButtonAccessibleObject_Bounds_ReturnEmptyRectangle_IfHandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
50
public void HScrollBarLastPageButtonAccessibleObject_DefaultAction_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
61
public void HScrollBarLastPageButtonAccessibleObject_DefaultAction_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
72
public void HScrollBarLastPageButtonAccessibleObject_Description_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
83
public void HScrollBarLastPageButtonAccessibleObject_Description_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
94
public void HScrollBarLastPageButtonAccessibleObject_Name_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
105
public void HScrollBarLastPageButtonAccessibleObject_Name_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
116
public void HScrollBarLastPageButtonAccessibleObject_Role_ReturnNotNull(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
128
public void HScrollBarLastPageButtonAccessibleObject_State_ReturnNone_IfHandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
139
public void HScrollBarLastPageButtonAccessibleObject_InvokePattern_Supported(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
150
public void HScrollBarLastPageButtonAccessibleObject_FragmentNavigate_ReturnExpected_LastPageButtonIsDisplayed(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
166
public void HScrollBarLastPageButtonAccessibleObject_FragmentNavigate_ReturnExpected_LastPageButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
182
public void HScrollBarLastPageButtonAccessibleObject_FragmentNavigate_ReturnExpected_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
198
public void HScrollBarLastPageButtonAccessibleObject_FragmentNavigate_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
214
using HScrollBar scrollBar = GetHScrollBar(createControl: true,
RightToLeft
.Yes, minimum: 0, maximum: 100, value: 50);
232
using HScrollBar scrollBar = GetHScrollBar(createControl: true,
RightToLeft
.No, minimum: 0, maximum: 100, value: 50);
248
[InlineData(
RightToLeft
.No, 99, 100)]
249
[InlineData(
RightToLeft
.No, 0, 0)]
250
[InlineData(
RightToLeft
.Yes, 0, 100)]
251
[InlineData(
RightToLeft
.Yes, 0, 0)]
252
public void HScrollBarLastPageButtonAccessibleObject_Invoke_DoesNotWork_OutOfRange(
RightToLeft
rightToLeft, int value, int maximum)
267
public void HScrollBarLastPageButtonAccessibleObject_Invoke_DoesNotWork_IfHandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
282
public void HScrollBarLastPageButtonAccessibleObject_Invoke_DoesNotWork_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
297
public void HScrollBarLastPageButtonAccessibleObject_Invoke_DoesNotWork_LastPageButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
312
public void HScrollBarLastPageButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsTrue_OwnerEnabled(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
324
public void HScrollBarLastPageButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsFalse_OwnerDisabled(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
336
public void HScrollBarLastPageButtonAccessibleObject_IsDisplayed_ReturnsTrue_OwnerVisible(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
348
public void HScrollBarLastPageButtonAccessibleObject_IsDisplayed_ReturnsFalse_OwnerInvisible(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
358
private HScrollBar GetHScrollBar(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarThumbAccessibleObjectTests.cs (21)
15
public void HScrollBarThumbAccessibleObject_GetChild_ReturnNull(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
28
public void HScrollBarThumbAccessibleObject_GetChildCount_ReturnMinusOne(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
39
public void HScrollBarThumbAccessibleObject_DefaultAction_ReturnNotNull(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
50
public void HScrollBarThumbAccessibleObject_Description_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
61
public void HScrollBarThumbAccessibleObject_Description_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
72
public void HScrollBarThumbAccessibleObject_Name_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
83
public void HScrollBarThumbAccessibleObject_Name_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
94
public void HScrollBarThumbAccessibleObject_Role_ReturnIndicator_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
105
public void HScrollBarThumbAccessibleObject_Role_ReturnNone_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
116
public void HScrollBarThumbAccessibleObject_State_ReturnExpected(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
127
public void HScrollBarThumbAccessibleObject_InvokePattern_Supported(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
138
public void HScrollBarThumbAccessibleObject_FragmentNavigate_ReturnExpected_BothPageButtonsAreDisplayed(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
154
public void HScrollBarThumbAccessibleObject_FragmentNavigate_ReturnExpected_FirstPageButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
170
public void HScrollBarThumbAccessibleObject_FragmentNavigate_ReturnExpected_LastPageButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
186
public void HScrollBarThumbAccessibleObject_FragmentNavigate_ReturnExpected_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
202
public void HScrollBarThumbAccessibleObject_FragmentNavigate_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
217
public void HScrollBarThumbAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsTrue_OwnerEnabled(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
229
public void HScrollBarThumbAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsFalse_OwnerDisabled(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
241
public void HScrollBarThumbAccessibleObject_IsDisplayed_ReturnsTrue_OwnerVisible(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
253
public void HScrollBarThumbAccessibleObject_IsDisplayed_ReturnsFalse_OwnerInvisible(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
263
private HScrollBar GetHScrollBar(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (14)
141
public void TrackBarAccessibilityObject_GetChildCount_ReturnsThree_IfAllButtonsAreDisplayed(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
153
public void TrackBarAccessibilityObject_GetChildCount_ReturnsTwo_IfFirstButtonIsHidden(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
165
public void TrackBarAccessibilityObject_GetChildCount_ReturnsTwo_IfLastButtonIsHidden(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
177
public void TrackBarAccessibilityObject_GetChildCount_ReturnsTwo_MinimumEqualsMaximum(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
190
public void TrackBarAccessibilityObject_GetChildCount_ReturnsMinusOne_IfHandleIsNotCreated(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
201
public void TrackBarAccessibilityObject_GetChild_ReturnsExpected_ButtonsAreDisplayed(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
216
public void TrackBarAccessibilityObject_GetChild_ReturnsExpected_FirstButtonIsHidden(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
230
public void TrackBarAccessibilityObject_GetChild_ReturnsExpected_LastButtonIsHidden(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
245
public void TrackBarAccessibilityObject_GetChild_ReturnsNull_IfHandleNotCreated(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
343
public void TrackBarAccessibilityObject_FragmentNavigate_Child_ReturnsExpected_ButtonsAreDisplayed(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
355
public void TrackBarAccessibilityObject_FragmentNavigate_Child_ReturnsExpected_IfFirstButtonIsHidden(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
367
public void TrackBarAccessibilityObject_FragmentNavigate_Child_ReturnsExpected_IfLastButtonIsHidden(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
379
public void TrackBarAccessibilityObject_FragmentNavigate_Child_ReturnsNull_IfHandleNotCreated(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
476
private TrackBar GetTrackBar(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int value, int minimum, int maximum)
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (50)
14
public void TrackBarFirstButtonAccessibleObject_Bounds_ReturnsNotEmptyRectangle_IfButtonIsDisplayed(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
25
public void TrackBarFirstButtonAccessibleObject_Bounds_ReturnsEmptyRectangle_IfButtonIsHidden(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
36
public void TrackBarFirstButtonAccessibleObject_Bounds_ReturnsEmptyRectangle_IfHandleIsNotCreated(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
47
public void TrackBarFirstButtonAccessibleObject_DefaultAction_ReturnActionPress(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
58
public void TrackBarFirstButtonAccessibleObject_Help_ReturnExpected(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
69
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
73
if (rightToLeft ==
RightToLeft
.Yes && !rightToLeftLayout)
91
public void TrackBarFirstButtonAccessibleObject_Name_ReturnDescreaseName(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
104
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
108
if (orientation == Orientation.Vertical || (rightToLeft ==
RightToLeft
.Yes && !rightToLeftLayout))
125
public void TrackBarFirstButtonAccessibleObject_Name_ReturnIncreaseName(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
136
public void TrackBarFirstButtonAccessibleObject_Role_ReturnExpected(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
148
public void TrackBarFirstButtonAccessibleObject_State_ReturnExpected(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
162
public void TrackBarFirstButtonAccessibleObject_FragmentNavigate_ReturnsNull_IfFirstButtonIsHidden(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
178
public void TrackBarFirstButtonAccessibleObject_FragmentNavigate_ReturnsNull_MinimumEqualsMaximum(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
194
public void TrackBarFirstButtonAccessibleObject_FragmentNavigate_ReturnsExpected_IfFirstButtonIsDisplayed(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
210
public void TrackBarFirstButtonAccessibleObject_FragmentNavigate_ReturnsNull_IfHandleIsNotCreated(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
225
public void TrackBarFirstButtonAccessibleObject_GetChildCount_ReturnExpected(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
236
public void TrackBarFirstButtonAccessibleObject_GetChild_ReturnExpected(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
248
[InlineData(Orientation.Vertical,
RightToLeft
.Yes, true)]
249
[InlineData(Orientation.Vertical,
RightToLeft
.Yes, false)]
250
[InlineData(Orientation.Vertical,
RightToLeft
.No, true)]
251
[InlineData(Orientation.Vertical,
RightToLeft
.No, false)]
252
[InlineData(Orientation.Horizontal,
RightToLeft
.Yes, false)]
253
public void TrackBarFirstButtonAccessibleObject_Invoke_Increase_WorkCorrectly(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout)
275
[InlineData(Orientation.Horizontal,
RightToLeft
.No, true)]
276
[InlineData(Orientation.Horizontal,
RightToLeft
.No, false)]
277
[InlineData(Orientation.Horizontal,
RightToLeft
.Yes, true)]
278
public void TrackBarFirstButtonAccessibleObject_Invoke_Decrease_WorkCorrectly(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout)
301
public void TrackBarFirstButtonAccessibleObject_Invoke_DoesNotWork_IfHandleIsNotCreated(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
316
public void TrackBarFirstButtonAccessibleObject_InvokePattern_DoesNotSupport(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
327
public void TrackBarFirstButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsTrue_OwnerEnabled(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
339
public void TrackBarFirstButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsFalse_OwnerDisabled(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
351
public void TrackBarFirstButtonAccessibleObject_IsDisplayed_ReturnsTrue_OwnerVisible(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
363
public void TrackBarFirstButtonAccessibleObject_IsDisplayed_ReturnsFalse_OwnerInvisible(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
373
private TrackBar GetTrackBar(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int value, int minimum, int maximum)
402
[InlineData(Orientation.Horizontal,
RightToLeft
.No, false)]
403
[InlineData(Orientation.Horizontal,
RightToLeft
.Yes, true)]
404
public void TrackBarFirstButtonAccessibleObject_Name_ReturnsDecreaseName_IfHorizontalAndNotMirrored(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout)
414
[InlineData(Orientation.Vertical,
RightToLeft
.Yes, true)]
415
[InlineData(Orientation.Vertical,
RightToLeft
.Yes, false)]
416
[InlineData(Orientation.Vertical,
RightToLeft
.No, true)]
417
[InlineData(Orientation.Vertical,
RightToLeft
.No, false)]
418
public void TrackBarFirstButtonAccessibleObject_Name_ReturnsIncreaseName_IfVertical(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout)
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (42)
14
public void TrackBarLastButtonAccessibleObject_Bounds_ReturnsNotEmptyRectangle_IfButtonIsDisplayed(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
25
public void TrackBarLastButtonAccessibleObject_Bounds_ReturnsEmptyRectangle_IfButtonIsHidden(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
36
public void TrackBarLastButtonAccessibleObject_Bounds_ReturnsEmptyRectangle_IfHandleIsNotCreated(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
47
public void TrackBarLastButtonAccessibleObject_DefaultAction_ReturnActionPress(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
58
public void TrackBarLastButtonAccessibleObject_Help_ReturnExpected(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
69
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
73
if (rightToLeft ==
RightToLeft
.Yes && !rightToLeftLayout)
91
public void TrackBarFirstButtonAccessibleObject_Name_ReturnIncreaseName(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
104
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
108
if (orientation == Orientation.Vertical || (rightToLeft ==
RightToLeft
.Yes && !rightToLeftLayout))
125
public void TrackBarLLastButtonAccessibleObject_Name_ReturnDecreaseName(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
136
public void TrackBarLastButtonAccessibleObject_Role_ReturnExpected(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
148
public void TrackBarLastButtonAccessibleObject_State_ReturnExpected(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
163
public void TrackBarLastButtonAccessibleObject_FragmentNavigate_ReturnsNull_IfButtonIsHidden(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
179
public void TrackBarLastButtonAccessibleObject_FragmentNavigate_ReturnsNull_MinimumEqualsMaximum(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
195
public void TrackBarLastButtonAccessibleObject_FragmentNavigate_ReturnsNull_IfHandleIsNotCreated(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
210
public void TrackBarLastButtonAccessibleObject_FragmentNavigate_ReturnsExpected_IfButtonIsDisplayed(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
226
public void TrackBarLastButtonAccessibleObject_GetChildCount_ReturnExpected(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
237
public void TrackBarLastButtonAccessibleObject_GetChild_ReturnExpected(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
249
[InlineData(Orientation.Vertical,
RightToLeft
.Yes, true)]
250
[InlineData(Orientation.Vertical,
RightToLeft
.Yes, false)]
251
[InlineData(Orientation.Vertical,
RightToLeft
.No, true)]
252
[InlineData(Orientation.Vertical,
RightToLeft
.No, false)]
253
[InlineData(Orientation.Horizontal,
RightToLeft
.Yes, false)]
254
public void TrackBarLastButtonAccessibleObject_Invoke_Decrease_WorkCorrectly(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout)
276
[InlineData(Orientation.Horizontal,
RightToLeft
.No, true)]
277
[InlineData(Orientation.Horizontal,
RightToLeft
.No, false)]
278
[InlineData(Orientation.Horizontal,
RightToLeft
.Yes, true)]
279
public void TrackBarLastButtonAccessibleObject_Invoke_Increase_WorkCorrectly(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout)
302
public void TrackBarLastButtonAccessibleObject_Invoke_DoesNotWork_IfHandleIsNotCreated(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
317
public void TrackBarLastButtonAccessibleObject_InvokePattern_DoesNotSupport(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
328
public void TrackBarLastButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsTrue_OwnerEnabled(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
340
public void TrackBarLastButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsFalse_OwnerDisabled(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
352
public void TrackBarLastButtonAccessibleObject_IsDisplayed_ReturnsTrue_OwnerVisible(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
364
public void TrackBarLastButtonAccessibleObject_IsDisplayed_ReturnsFalse_OwnerInvisible(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
374
private TrackBar GetTrackBar(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int value, int minimum, int maximum)
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarThumbAccessibleObjectTests.cs (19)
14
public void TrackBarThumbAccessibleObject_Bounds_ReturnsEmptyRectangle_IfHandleIsNotCreated(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
25
public void TrackBarThumbAccessibleObject_Bounds_ReturnsRectangle_IfHandleIsCreated(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
36
public void TrackBarThumbAccessibleObject_DefaultAction_ReturnActionPress(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
47
public void TrackBarThumbAccessibleObject_Help_ReturnExpected(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
58
public void TrackBarThumbAccessibleObject_Name_ReturnExpected(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
69
public void TrackBarThumbAccessibleObject_Role_ReturnExpected(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
81
public void TrackBarThumbAccessibleObject_State_ReturnExpected(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
91
public void TrackBarThumbAccessibleObject_FragmentNavigate_ReturnExpected_IfButtonsIsDisplayed(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
107
public void TrackBarThumbAccessibleObject_FragmentNavigate_ReturnExpected_IfFirstButtonIsDisplayed(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
123
public void TrackBarThumbAccessibleObject_FragmentNavigate_ReturnExpected_IfLastButtonIsDisplayed(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
139
public void TrackBarThumbAccessibleObject_FragmentNavigate_ReturnNull_IfHandleIsNotCreated(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
155
public void TrackBarThumbAccessibleObject_GetChildCount_ReturnExpected(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
166
public void TrackBarThumbAccessibleObject_GetChild_ReturnExpected(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
179
public void TrackBarThumbAccessibleObject_InvokePattern_DoesNotSupport(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
190
public void TrackBarThumbAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsTrue_OwnerEnabled(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
202
public void TrackBarThumbAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsFalse_OwnerDisabled(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
214
public void TrackBarThumbAccessibleObject_IsDisplayed_ReturnsTrue_OwnerVisible(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
226
public void TrackBarThumbAccessibleObject_IsDisplayed_ReturnsFalse_OwnerInvisible(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
236
private TrackBar GetTrackBar(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, bool createControl, int value, int minimum, int maximum)
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (30)
15
public void VScrollBarFirstLineButtonAccessibleObject_GetChild_ReturnNull(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
28
public void VScrollBarFirstLineButtonAccessibleObject_GetChildCount_ReturnMinusOne(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
39
public void VScrollBarFirstLineButtonAccessibleObject_DefaultAction_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
50
public void VScrollBarFirstLineButtonAccessibleObject_DefaultAction_ReturnNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
61
public void VScrollBarFirstLineButtonAccessibleObject_Description_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
72
public void VScrollBarFirstLineButtonAccessibleObject_Description_ReturnNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
83
public void VScrollBarFirstLineButtonAccessibleObject_State_ReturnExpected(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
94
public void VScrollBarFirstLineButtonAccessibleObject_Name_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
105
public void VScrollBarFirstLineButtonAccessibleObject_Name_ReturnNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
116
public void VScrollBarFirstLineButtonAccessibleObject_Role_ReturnNotNull(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
128
public void VScrollBarFirstLineButtonAccessibleObject_InvokePattern_Supported(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
139
public void VScrollBarFirstLineButtonAccessibleObject_FragmentNavigate_ReturnExpected_FirstPageButtonIsDisplayed(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
155
public void VScrollBarFirstLineButtonAccessibleObject_FragmentNavigate_ReturnExpected_FirstPageButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
171
public void VScrollBarFirstLineButtonAccessibleObject_FragmentNavigate_ReturnExpected_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
187
public void VScrollBarFirstLineButtonAccessibleObject_FragmentNavigate_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
202
[InlineData(
RightToLeft
.Yes)]
203
[InlineData(
RightToLeft
.No)]
204
public void VScrollBarFirstLineButtonAccessibleObject_Invoke_DecreaseValue(
RightToLeft
rightToLeft)
222
[InlineData(
RightToLeft
.No, 0, 100)]
223
[InlineData(
RightToLeft
.No, 0, 0)]
224
[InlineData(
RightToLeft
.Yes, 0, 100)]
225
[InlineData(
RightToLeft
.Yes, 0, 0)]
226
public void VScrollBarFirstLineButtonAccessibleObject_Invoke_DoesNotWork_OutOfRange(
RightToLeft
rightToLeft, int value, int maximum)
241
public void VScrollBarFirstLineButtonAccessibleObject_Invoke_DoesNotWork_IfHandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
256
public void VScrollBarLineButtonAccessibleObject_Invoke_DoesNotWork_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
271
public void VScrollBarLineButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsTrue_OwnerEnabled(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
283
public void VScrollBarLineButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsFalse_OwnerDisabled(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
295
public void VScrollBarFirstLineButtonAccessibleObject_IsDisplayed_ReturnsTrue_OwnerVisible(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
307
public void VScrollBarFirstLineButtonAccessibleObject_IsDisplayed_ReturnsFalse_OwnerInvisible(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
317
private VScrollBar GetVScrollBar(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (33)
15
public void VScrollBarFirstPageButtonAccessibleObject_GetChild_ReturnNull(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
28
public void VScrollBarFirstPageButtonAccessibleObject_GetChildCount_ReturnMinusOne(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
39
public void VScrollBarFirstPageButtonAccessibleObject_Bounds_ReturnEmptyRectangle_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
50
public void VScrollBarFirstPageButtonAccessibleObject_Bounds_ReturnEmptyRectangle_FirstPageButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
61
public void VScrollBarFirstPageButtonAccessibleObject_DefaultAction_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
72
public void VScrollBarFirstPageButtonAccessibleObject_DefaultAction_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
83
public void VScrollBarFirstPageButtonAccessibleObject_Description_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
94
public void VScrollBarFirstPageButtonAccessibleObject_Description_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
105
public void VScrollBarFirstPageButtonAccessibleObject_Name_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
116
public void VScrollBarFirstPageButtonAccessibleObject_Name_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
127
public void VScrollBarFirstPageButtonAccessibleObject_Role_ReturnNotNull(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
139
public void VScrollBarFirstPageButtonAccessibleObject_State_ReturnNone_IfHandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
150
public void VScrollBarFirstPageButtonAccessibleObject_InvokePattern_Supported(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
161
public void VScrollBarFirstPageButtonAccessibleObject_FragmentNavigate_ReturnsExpected_ButtonIsDisplayed(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
179
public void VScrollBarFirstPageButtonAccessibleObject_FragmentNavigate_ReturnsNull_ButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
195
public void VScrollBarFirstPageButtonAccessibleObject_FragmentNavigate_ReturnsNull_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
211
public void VScrollBarFirstPageButtonAccessibleObject_FragmentNavigate_ReturnsNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
225
[InlineData(
RightToLeft
.Yes)]
226
[InlineData(
RightToLeft
.No)]
227
public void VScrollBarFirstPageButtonAccessibleObject_Invoke_DecreaseValue(
RightToLeft
rightToLeft)
245
[InlineData(
RightToLeft
.No, 0, 100)]
246
[InlineData(
RightToLeft
.No, 0, 0)]
247
[InlineData(
RightToLeft
.Yes, 0, 100)]
248
[InlineData(
RightToLeft
.Yes, 0, 0)]
249
public void VScrollBarFirstPageButtonAccessibleObject_Invoke_DoesNotWork_OutOfRange(
RightToLeft
rightToLeft, int value, int maximum)
264
public void VScrollBarFirstPageButtonAccessibleObject_Invoke_DoesNotWork_IfHandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
279
public void VScrollBarFirstPageButtonAccessibleObject_Invoke_DoesNotWork_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
294
public void VScrollBarFirstPageButtonAccessibleObject_Invoke_DoesNotWork_FirstPageButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
309
public void VScrollBarFirstPageButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsTrue_OwnerEnabled(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
321
public void VScrollBarFirstPageButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsFalse_OwnerDisabled(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
333
public void VScrollBarFirstLineButtonAccessibleObject_IsDisplayed_ReturnsTrue_OwnerVisible(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
345
public void VScrollBarFirstLineButtonAccessibleObject_IsDisplayed_ReturnsFalse_OwnerInvisible(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
355
private VScrollBar GetVScrollBar(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (31)
15
public void VScrollBarLastLineButtonAccessibleObject_GetChild_ReturnNull(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
28
public void VScrollBarLastLineButtonAccessibleObject_GetChildCount_ReturnMinusOne(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
39
public void VScrollBarLastLineButtonAccessibleObject_DefaultAction_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
50
public void VScrollBarLastLineButtonAccessibleObject_DefaultAction_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
61
public void VScrollBarLastLineButtonAccessibleObject_Description_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
72
public void VScrollBarLastLineButtonAccessibleObject_Description_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
83
public void VScrollBarLastLineButtonAccessibleObject_Name_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
94
public void VScrollBarLastLineButtonAccessibleObject_Name_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
105
public void VScrollBarLastLineButtonAccessibleObject_State_ReturnExpected(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
116
public void VScrollBarLastLineButtonAccessibleObject_Role_ReturnPushButton_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
127
public void VScrollBarLastLineButtonAccessibleObject_Role_ReturnNone_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
138
public void VScrollBarLastLineButtonAccessibleObject_InvokePattern_Supported(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
149
public void VScrollBarLastLineButtonAccessibleObject_FragmentNavigate_ReturnsExpected_LastPageButtonIsDisplayed(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
165
public void VScrollBarLastLineButtonAccessibleObject_FragmentNavigate_ReturnsExpected_LastPageButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
181
public void VScrollBarLastLineButtonAccessibleObject_FragmentNavigate_ReturnsExpected_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
197
public void VScrollBarLastLineButtonAccessibleObject_FragmentNavigate_ReturnsExpected_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
212
[InlineData(
RightToLeft
.Yes)]
213
[InlineData(
RightToLeft
.No)]
214
public void VScrollBarLastLineButtonAccessibleObject_Invoke_IncreaseValue(
RightToLeft
rightToLeft)
232
[InlineData(
RightToLeft
.No, 99, 100)]
233
[InlineData(
RightToLeft
.No, 0, 0)]
234
[InlineData(
RightToLeft
.Yes, 99, 100)]
235
[InlineData(
RightToLeft
.Yes, 0, 0)]
236
public void VScrollBarLastLineButtonAccessibleObject_Invoke_DoesNotWork_OutOfRange(
RightToLeft
rightToLeft, int value, int maximum)
251
public void VScrollBarLastLineButtonAccessibleObject_Invoke_DoesNotWork_IfHandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
266
public void VScrollBarLinePageButtonAccessibleObject_Invoke_DoesNotWork_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
281
public void VScrollBarLastLineButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsTrue_OwnerEnabled(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
293
public void VScrollBarLastLineButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsFalse_OwnerDisabled(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
305
public void VScrollBarLastLineButtonAccessibleObject_IsDisplayed_ReturnsTrue_OwnerVisible(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
317
public void VScrollBarLastLineButtonAccessibleObject_IsDisplayed_ReturnsFalse_OwnerInvisible(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
327
private VScrollBar GetVScrollBar(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (32)
15
public void VScrollBarLastPageButtonAccessibleObject_GetChild_ReturnNull(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
28
public void VScrollBarLastPageButtonAccessibleObject_GetChildCount_ReturnMinusOne(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
39
public void VScrollBarLastPageButtonAccessibleObject_Bounds_ReturnEmptyRectangle_IfHandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
50
public void VScrollBarLastPageButtonAccessibleObject_DefaultAction_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
61
public void VScrollBarLastPageButtonAccessibleObject_DefaultAction_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
72
public void VScrollBarLastPageButtonAccessibleObject_Description_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
83
public void VScrollBarLastPageButtonAccessibleObject_Description_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
94
public void VScrollBarLastPageButtonAccessibleObject_Name_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
105
public void VScrollBarLastPageButtonAccessibleObject_Name_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
116
public void VScrollBarLastPageButtonAccessibleObject_Role_ReturnNotNull(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
128
public void VScrollBarLastPageButtonAccessibleObject_State_ReturnNone_IfHandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
139
public void VScrollBarLastPageButtonAccessibleObject_InvokePattern_Supported(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
150
public void VScrollBarLastPageButtonAccessibleObject_FragmentNavigate_ReturnExpected_LastPageButtonIsDisplayed(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
166
public void VScrollBarLastPageButtonAccessibleObject_FragmentNavigate_ReturnNull_LastPageButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
182
public void VScrollBarLastPageButtonAccessibleObject_FragmentNavigate_ReturnNull_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
198
public void VScrollBarLastPageButtonAccessibleObject_FragmentNavigate_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
212
[InlineData(
RightToLeft
.Yes)]
213
[InlineData(
RightToLeft
.No)]
214
public void VScrollBarLastPageButtonAccessibleObject_Invoke_IncreaseValue(
RightToLeft
rightToLeft)
232
[InlineData(
RightToLeft
.No, 99, 100)]
233
[InlineData(
RightToLeft
.No, 0, 0)]
234
[InlineData(
RightToLeft
.Yes, 99, 100)]
235
[InlineData(
RightToLeft
.Yes, 0, 0)]
236
public void VScrollBarLastPageButtonAccessibleObject_Invoke_DoesNotWork_OutOfRange(
RightToLeft
rightToLeft, int value, int maximum)
251
public void VScrollBarLastPageButtonAccessibleObject_Invoke_DoesNotWork_IfHandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
266
public void VScrollBarLastPageButtonAccessibleObject_Invoke_DoesNotWork_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
281
public void VScrollBarLastPageButtonAccessibleObject_Invoke_DoesNotWork_LastPageButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
296
public void VScrollBarLastPageButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsTrue_OwnerEnabled(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
308
public void VScrollBarLastPageButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsFalse_OwnerDisabled(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
320
public void VScrollBarLastPageButtonAccessibleObject_IsDisplayed_ReturnsTrue_OwnerVisible(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
332
public void VScrollBarLastPageButtonAccessibleObject_IsDisplayed_ReturnsFalse_OwnerInvisible(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
342
private VScrollBar GetVScrollBar(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarThumbAccessibleObjectTests.cs (21)
15
public void VScrollBarThumbAccessibleObject_GetChild_ReturnNull(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
28
public void VScrollBarThumbAccessibleObject_GetChildCount_ReturnMinusOne(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
39
public void VScrollBarThumbAccessibleObject_DefaultAction_ReturnNotNull(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
50
public void VScrollBarThumbAccessibleObject_Description_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
61
public void VScrollBarThumbAccessibleObject_Description_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
72
public void VScrollBarThumbAccessibleObject_Name_ReturnNotNull_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
83
public void VScrollBarThumbAccessibleObject_Name_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
94
public void VScrollBarThumbAccessibleObject_Role_ReturnIndicator_HandleIsCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
105
public void VScrollBarThumbAccessibleObject_Role_ReturnNone_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
116
public void VScrollBarThumbAccessibleObject_State_ReturnExpected(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
127
public void VScrollBarThumbAccessibleObject_InvokePattern_Supported(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
138
public void VScrollBarThumbAccessibleObject_FragmentNavigate_ReturnExpected_BothPageButtonsAreDisplayed(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
154
public void VScrollBarThumbAccessibleObject_FragmentNavigate_ReturnExpected_FirstPageButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
170
public void VScrollBarThumbAccessibleObject_FragmentNavigate_ReturnExpected_LastPageButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
186
public void VScrollBarThumbAccessibleObject_FragmentNavigate_ReturnExpected_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
202
public void VScrollBarThumbAccessibleObject_FragmentNavigate_ReturnNull_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
217
public void VScrollBarThumbAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsTrue_OwnerEnabled(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
229
public void VScrollBarThumbAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsFalse_OwnerDisabled(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
241
public void VScrollBarThumbAccessibleObject_IsDisplayed_ReturnsTrue_OwnerVisible(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
253
public void VScrollBarThumbAccessibleObject_IsDisplayed_ReturnsFalse_OwnerInvisible(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
263
private VScrollBar GetVScrollBar(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
System\Windows\Forms\AccessibleObjects\VScrollBar.VScrollBarAccessibleObjectTests.cs (11)
111
public void VScrollBarAccessibleObject_FragmentNavigate_Child_ReturnExpected(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
123
public void VScrollBarAccessibleObject_GetChildCount_ReturnsFive_AllButtonsAreDisplayed(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
134
public void VScrollBarAccessibleObject_GetChildCount_ReturnsFour_FirstPageButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
145
public void VScrollBarAccessibleObject_GetChildCount_ReturnsFour_LastPageButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
156
public void VScrollBarAccessibleObject_GetChildCount_ReturnsThree_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
167
public void VScrollBarAccessibleObject_GetChild_ReturnExpected_AllButtonsAreDisplayed(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
183
public void VScrollBarAccessibleObject_GetChild_ReturnExpected_FirstButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
199
public void VScrollBarAccessibleObject_GetChild_ReturnExpected_LastButtonIsHidden(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
215
public void VScrollBarAccessibleObject_GetChild_ReturnExpected_MinimumEqualsMaximum(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
231
public void VScrollBarAccessibleObject_GetChild_ReturnExpected_HandleIsNotCreated(
RightToLeft
rightToLeft, int minimum, int maximum, int value)
259
private VScrollBar GetVScrollBar(bool createControl,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
System\Windows\Forms\AxHostTests.cs (2)
102
Assert.Equal(
RightToLeft
.No, ((Control)control).RightToLeft);
196
Assert.Equal(
RightToLeft
.No, ((Control)control).RightToLeft);
System\Windows\Forms\ButtonBaseTests.cs (32)
103
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
184
yield return new object[] { flatStyle,
RightToLeft
.Yes, textAlign, 0x56010000, 0x7000 };
185
yield return new object[] { flatStyle,
RightToLeft
.No, textAlign, 0x56010000, 0 };
186
yield return new object[] { flatStyle,
RightToLeft
.Inherit, textAlign, 0x56010000, 0 };
190
yield return new object[] { FlatStyle.System,
RightToLeft
.Yes, ContentAlignment.BottomLeft, 0x56012A00, 0x6000 };
191
yield return new object[] { FlatStyle.System,
RightToLeft
.Yes, ContentAlignment.BottomCenter, 0x56012B00, 0x6000 };
192
yield return new object[] { FlatStyle.System,
RightToLeft
.Yes, ContentAlignment.BottomRight, 0x56012900, 0x6000 };
193
yield return new object[] { FlatStyle.System,
RightToLeft
.Yes, ContentAlignment.MiddleLeft, 0x56012E00, 0x6000 };
194
yield return new object[] { FlatStyle.System,
RightToLeft
.Yes, ContentAlignment.MiddleCenter, 0x56012F00, 0x6000 };
195
yield return new object[] { FlatStyle.System,
RightToLeft
.Yes, ContentAlignment.MiddleRight, 0x56012D00, 0x6000 };
196
yield return new object[] { FlatStyle.System,
RightToLeft
.Yes, ContentAlignment.TopLeft, 0x56012600, 0x6000 };
197
yield return new object[] { FlatStyle.System,
RightToLeft
.Yes, ContentAlignment.TopCenter, 0x56012700, 0x6000 };
198
yield return new object[] { FlatStyle.System,
RightToLeft
.Yes, ContentAlignment.TopRight, 0x56012500, 0x6000 };
200
yield return new object[] { FlatStyle.System,
RightToLeft
.No, ContentAlignment.BottomLeft, 0x56012900, 0 };
201
yield return new object[] { FlatStyle.System,
RightToLeft
.No, ContentAlignment.BottomCenter, 0x56012B00, 0 };
202
yield return new object[] { FlatStyle.System,
RightToLeft
.No, ContentAlignment.BottomRight, 0x56012A00, 0 };
203
yield return new object[] { FlatStyle.System,
RightToLeft
.No, ContentAlignment.MiddleLeft, 0x56012D00, 0 };
204
yield return new object[] { FlatStyle.System,
RightToLeft
.No, ContentAlignment.MiddleCenter, 0x56012F00, 0 };
205
yield return new object[] { FlatStyle.System,
RightToLeft
.No, ContentAlignment.MiddleRight, 0x56012E00, 0 };
206
yield return new object[] { FlatStyle.System,
RightToLeft
.No, ContentAlignment.TopLeft, 0x56012500, 0 };
207
yield return new object[] { FlatStyle.System,
RightToLeft
.No, ContentAlignment.TopCenter, 0x56012700, 0 };
208
yield return new object[] { FlatStyle.System,
RightToLeft
.No, ContentAlignment.TopRight, 0x56012600, 0 };
210
yield return new object[] { FlatStyle.System,
RightToLeft
.Inherit, ContentAlignment.BottomLeft, 0x56012900, 0 };
211
yield return new object[] { FlatStyle.System,
RightToLeft
.Inherit, ContentAlignment.BottomCenter, 0x56012B00, 0 };
212
yield return new object[] { FlatStyle.System,
RightToLeft
.Inherit, ContentAlignment.BottomRight, 0x56012A00, 0 };
213
yield return new object[] { FlatStyle.System,
RightToLeft
.Inherit, ContentAlignment.MiddleLeft, 0x56012D00, 0 };
214
yield return new object[] { FlatStyle.System,
RightToLeft
.Inherit, ContentAlignment.MiddleCenter, 0x56012F00, 0 };
215
yield return new object[] { FlatStyle.System,
RightToLeft
.Inherit, ContentAlignment.MiddleRight, 0x56012E00, 0 };
216
yield return new object[] { FlatStyle.System,
RightToLeft
.Inherit, ContentAlignment.TopLeft, 0x56012500, 0 };
217
yield return new object[] { FlatStyle.System,
RightToLeft
.Inherit, ContentAlignment.TopCenter, 0x56012700, 0 };
218
yield return new object[] { FlatStyle.System,
RightToLeft
.Inherit, ContentAlignment.TopRight, 0x56012600, 0 };
223
public void ButtonBase_CreateParams_GetTextAlign_ReturnsExpected(FlatStyle flatStyle,
RightToLeft
rightToLeft, ContentAlignment textAlign, int expectedStyle, int expectedExStyle)
System\Windows\Forms\ButtonTests.cs (32)
101
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
206
yield return new object[] { flatStyle,
RightToLeft
.Yes, textAlign, 0x5601000B, 0x7000 };
207
yield return new object[] { flatStyle,
RightToLeft
.No, textAlign, 0x5601000B, 0 };
208
yield return new object[] { flatStyle,
RightToLeft
.Inherit, textAlign, 0x5601000B, 0 };
212
yield return new object[] { FlatStyle.System,
RightToLeft
.Yes, ContentAlignment.BottomLeft, 0x56012A00, 0x6000 };
213
yield return new object[] { FlatStyle.System,
RightToLeft
.Yes, ContentAlignment.BottomCenter, 0x56012B00, 0x6000 };
214
yield return new object[] { FlatStyle.System,
RightToLeft
.Yes, ContentAlignment.BottomRight, 0x56012900, 0x6000 };
215
yield return new object[] { FlatStyle.System,
RightToLeft
.Yes, ContentAlignment.MiddleLeft, 0x56012E00, 0x6000 };
216
yield return new object[] { FlatStyle.System,
RightToLeft
.Yes, ContentAlignment.MiddleCenter, 0x56012F00, 0x6000 };
217
yield return new object[] { FlatStyle.System,
RightToLeft
.Yes, ContentAlignment.MiddleRight, 0x56012D00, 0x6000 };
218
yield return new object[] { FlatStyle.System,
RightToLeft
.Yes, ContentAlignment.TopLeft, 0x56012600, 0x6000 };
219
yield return new object[] { FlatStyle.System,
RightToLeft
.Yes, ContentAlignment.TopCenter, 0x56012700, 0x6000 };
220
yield return new object[] { FlatStyle.System,
RightToLeft
.Yes, ContentAlignment.TopRight, 0x56012500, 0x6000 };
222
yield return new object[] { FlatStyle.System,
RightToLeft
.No, ContentAlignment.BottomLeft, 0x56012900, 0 };
223
yield return new object[] { FlatStyle.System,
RightToLeft
.No, ContentAlignment.BottomCenter, 0x56012B00, 0 };
224
yield return new object[] { FlatStyle.System,
RightToLeft
.No, ContentAlignment.BottomRight, 0x56012A00, 0 };
225
yield return new object[] { FlatStyle.System,
RightToLeft
.No, ContentAlignment.MiddleLeft, 0x56012D00, 0 };
226
yield return new object[] { FlatStyle.System,
RightToLeft
.No, ContentAlignment.MiddleCenter, 0x56012F00, 0 };
227
yield return new object[] { FlatStyle.System,
RightToLeft
.No, ContentAlignment.MiddleRight, 0x56012E00, 0 };
228
yield return new object[] { FlatStyle.System,
RightToLeft
.No, ContentAlignment.TopLeft, 0x56012500, 0 };
229
yield return new object[] { FlatStyle.System,
RightToLeft
.No, ContentAlignment.TopCenter, 0x56012700, 0 };
230
yield return new object[] { FlatStyle.System,
RightToLeft
.No, ContentAlignment.TopRight, 0x56012600, 0 };
232
yield return new object[] { FlatStyle.System,
RightToLeft
.Inherit, ContentAlignment.BottomLeft, 0x56012900, 0 };
233
yield return new object[] { FlatStyle.System,
RightToLeft
.Inherit, ContentAlignment.BottomCenter, 0x56012B00, 0 };
234
yield return new object[] { FlatStyle.System,
RightToLeft
.Inherit, ContentAlignment.BottomRight, 0x56012A00, 0 };
235
yield return new object[] { FlatStyle.System,
RightToLeft
.Inherit, ContentAlignment.MiddleLeft, 0x56012D00, 0 };
236
yield return new object[] { FlatStyle.System,
RightToLeft
.Inherit, ContentAlignment.MiddleCenter, 0x56012F00, 0 };
237
yield return new object[] { FlatStyle.System,
RightToLeft
.Inherit, ContentAlignment.MiddleRight, 0x56012E00, 0 };
238
yield return new object[] { FlatStyle.System,
RightToLeft
.Inherit, ContentAlignment.TopLeft, 0x56012500, 0 };
239
yield return new object[] { FlatStyle.System,
RightToLeft
.Inherit, ContentAlignment.TopCenter, 0x56012700, 0 };
240
yield return new object[] { FlatStyle.System,
RightToLeft
.Inherit, ContentAlignment.TopRight, 0x56012600, 0 };
245
public void Button_CreateParams_GetTextAlign_ReturnsExpected(FlatStyle flatStyle,
RightToLeft
rightToLeft, ContentAlignment textAlign, int expectedStyle, int expectedExStyle)
System\Windows\Forms\CheckBoxTests.cs (1)
103
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\ColumnHeaderTests.cs (8)
1020
[InlineData(
RightToLeft
.No, true, HorizontalAlignment.Left)]
1021
[InlineData(
RightToLeft
.Yes, true, HorizontalAlignment.Left)]
1022
[InlineData(
RightToLeft
.Inherit, true, HorizontalAlignment.Left)]
1023
[InlineData(
RightToLeft
.No, false, HorizontalAlignment.Left)]
1024
[InlineData(
RightToLeft
.Yes, false, HorizontalAlignment.Right)]
1025
[InlineData(
RightToLeft
.Inherit, false, HorizontalAlignment.Left)]
1026
public void ColumnHeader_TextAlign_GetWithListView_ReturnsExpected(
RightToLeft
rightToLeft, bool rightToLeftLayout, HorizontalAlignment expected)
1045
listView.RightToLeft =
RightToLeft
.No;
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (10)
117
[InlineData(ComboBoxStyle.DropDown,
RightToLeft
.Yes, true)]
118
[InlineData(ComboBoxStyle.DropDown,
RightToLeft
.No, false)]
119
[InlineData(ComboBoxStyle.Simple,
RightToLeft
.Yes, true)]
120
[InlineData(ComboBoxStyle.Simple,
RightToLeft
.No, false)]
121
public void ComboBoxUiaTextProvider_IsReadingRTL_ReturnsCorrectValue(ComboBoxStyle dropDownStyle,
RightToLeft
rightToLeft, bool expectedResult)
133
[InlineData(ComboBoxStyle.DropDown,
RightToLeft
.Yes)]
134
[InlineData(ComboBoxStyle.DropDown,
RightToLeft
.No)]
135
[InlineData(ComboBoxStyle.Simple,
RightToLeft
.Yes)]
136
[InlineData(ComboBoxStyle.Simple,
RightToLeft
.No)]
137
public void ComboBoxUiaTextProvider_IsReadingRTL_ReturnsFalse_WithoutHandle(ComboBoxStyle dropDownStyle,
RightToLeft
rightToLeft)
System\Windows\Forms\ComboBoxTests.cs (13)
113
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
1261
public void ComboBox_RightToLeft_Set_GetReturnsExpected(
RightToLeft
value,
RightToLeft
expected)
1290
control.RightToLeft =
RightToLeft
.Yes;
1291
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
1295
control.RightToLeft =
RightToLeft
.Yes;
1296
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
1300
control.RightToLeft =
RightToLeft
.Inherit;
1301
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
1306
control.RightToLeft =
RightToLeft
.Yes;
1307
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
1312
[InvalidEnumData<
RightToLeft
>]
1313
public void ComboBox_RightToLeft_SetInvalid_ThrowsInvalidEnumArgumentException(
RightToLeft
value)
System\Windows\Forms\ContainerControlTests.cs (1)
106
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\ControlTests.ControlCollection.cs (28)
577
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
621
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
656
owner.RightToLeft =
RightToLeft
.Yes;
657
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
766
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
806
owner.RightToLeft =
RightToLeft
.Yes;
807
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
925
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
959
owner.RightToLeft =
RightToLeft
.Yes;
960
Assert.Equal(
RightToLeft
.No, ((Control)control).RightToLeft);
1002
Assert.Equal(
RightToLeft
.Yes, ((Control)control).RightToLeft);
1032
owner.RightToLeft =
RightToLeft
.Yes;
1033
Assert.Equal(
RightToLeft
.No, ((Control)control).RightToLeft);
1082
Assert.Equal(
RightToLeft
.Yes, ((Control)control).RightToLeft);
2274
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
2321
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
2359
owner.RightToLeft =
RightToLeft
.Yes;
2360
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
2465
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
2503
owner.RightToLeft =
RightToLeft
.Yes;
2504
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
2598
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
2635
owner.RightToLeft =
RightToLeft
.Yes;
2636
Assert.Equal(
RightToLeft
.Yes, ((Control)control).RightToLeft);
2671
Assert.Equal(
RightToLeft
.No, ((Control)control).RightToLeft);
2699
owner.RightToLeft =
RightToLeft
.Yes;
2700
Assert.Equal(
RightToLeft
.Yes, ((Control)control).RightToLeft);
2749
Assert.Equal(
RightToLeft
.No, ((Control)control).RightToLeft);
System\Windows\Forms\ControlTests.cs (30)
84
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
173
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
269
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
365
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
461
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
642
[InlineData(
RightToLeft
.Inherit, 0)]
643
[InlineData(
RightToLeft
.Yes, 0x7000)]
644
[InlineData(
RightToLeft
.No, 0)]
645
public void Control_CreateParams_GetRightToLeft_ReturnsExpected(
RightToLeft
rightToLeft, int expectedExStyle)
779
[InlineData(
RightToLeft
.No)]
780
[InlineData(
RightToLeft
.Yes)]
781
public void Control_GetNextItem_Buttons_CycleForwardExpected(
RightToLeft
rightToLeft)
798
[InlineData(
RightToLeft
.No)]
799
[InlineData(
RightToLeft
.Yes)]
800
public void Control_GetNextItem_Buttons_CycleBackwardExpected(
RightToLeft
rightToLeft)
817
[InlineData(
RightToLeft
.No)]
818
[InlineData(
RightToLeft
.Yes)]
819
public void Control_GetNextSelectableControl_Buttons_CycleForwardExpected(
RightToLeft
rightToLeft)
838
[InlineData(
RightToLeft
.No)]
839
[InlineData(
RightToLeft
.Yes)]
840
public void Control_GetNextSelectableControl_Buttons_CycleBackwardExpected(
RightToLeft
rightToLeft)
859
[InlineData(
RightToLeft
.No)]
860
[InlineData(
RightToLeft
.Yes)]
861
public void Control_GetNextSelectableControl_MultipleComplexControls_CycleBackwardExpected(
RightToLeft
rightToLeft)
921
[InlineData(
RightToLeft
.No)]
922
[InlineData(
RightToLeft
.Yes)]
923
public void Control_SelectNextControl_ToolStrips_CycleForwardExpected(
RightToLeft
rightToLeft)
978
[InlineData(
RightToLeft
.No)]
979
[InlineData(
RightToLeft
.Yes)]
980
public void Control_SelectNextControl_ToolStrips_CycleBackwardExpected(
RightToLeft
rightToLeft)
System\Windows\Forms\ControlTests.Handlers.cs (3)
5032
RightToLeft =
RightToLeft
.Inherit
5081
RightToLeft =
RightToLeft
.Yes
5085
RightToLeft =
RightToLeft
.No
System\Windows\Forms\ControlTests.Methods.cs (30)
6537
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
6540
control.RightToLeft =
RightToLeft
.Yes;
6542
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
6546
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
6859
public void Control_RtlTranslateAlignment_InvokeContentAlignment_ReturnsExpected(
RightToLeft
rightToLeft, ContentAlignment align, ContentAlignment expected)
6875
public void Control_RtlTranslateAlignment_InvokeLeftRightAlignment_ReturnsExpected(
RightToLeft
rightToLeft, LeftRightAlignment align, LeftRightAlignment expected)
6891
public void Control_RtlTranslateAlignment_InvokeHorizontalAlignment_ReturnsExpected(
RightToLeft
rightToLeft, HorizontalAlignment align, HorizontalAlignment expected)
6909
yield return new object[] {
RightToLeft
.No, align, align };
6910
yield return new object[] {
RightToLeft
.Inherit, align, align };
6913
yield return new object[] {
RightToLeft
.Yes, ContentAlignment.BottomCenter, ContentAlignment.BottomCenter };
6914
yield return new object[] {
RightToLeft
.Yes, ContentAlignment.BottomLeft, ContentAlignment.BottomRight };
6915
yield return new object[] {
RightToLeft
.Yes, ContentAlignment.BottomRight, ContentAlignment.BottomLeft };
6916
yield return new object[] {
RightToLeft
.Yes, ContentAlignment.MiddleCenter, ContentAlignment.MiddleCenter };
6917
yield return new object[] {
RightToLeft
.Yes, ContentAlignment.MiddleLeft, ContentAlignment.MiddleRight };
6918
yield return new object[] {
RightToLeft
.Yes, ContentAlignment.MiddleRight, ContentAlignment.MiddleLeft };
6919
yield return new object[] {
RightToLeft
.Yes, ContentAlignment.TopCenter, ContentAlignment.TopCenter };
6920
yield return new object[] {
RightToLeft
.Yes, ContentAlignment.TopLeft, ContentAlignment.TopRight };
6921
yield return new object[] {
RightToLeft
.Yes, ContentAlignment.TopRight, ContentAlignment.TopLeft };
6926
public void Control_RtlTranslateContent_Invoke_ReturnsExpected(
RightToLeft
rightToLeft, ContentAlignment align, ContentAlignment expected)
6944
yield return new object[] {
RightToLeft
.No, align, align };
6945
yield return new object[] {
RightToLeft
.Inherit, align, align };
6948
yield return new object[] {
RightToLeft
.Yes, LeftRightAlignment.Left, LeftRightAlignment.Right };
6949
yield return new object[] {
RightToLeft
.Yes, LeftRightAlignment.Right, LeftRightAlignment.Left };
6954
public void Control_RtlTranslateLeftRight_Invoke_ReturnsExpected(
RightToLeft
rightToLeft, LeftRightAlignment align, LeftRightAlignment expected)
6972
yield return new object[] {
RightToLeft
.No, align, align };
6973
yield return new object[] {
RightToLeft
.Inherit, align, align };
6976
yield return new object[] {
RightToLeft
.Yes, HorizontalAlignment.Center, HorizontalAlignment.Center };
6977
yield return new object[] {
RightToLeft
.Yes, HorizontalAlignment.Left, HorizontalAlignment.Right };
6978
yield return new object[] {
RightToLeft
.Yes, HorizontalAlignment.Right, HorizontalAlignment.Left };
6983
public void Control_RtlTranslateHorizontal_Invoke_ReturnsExpected(
RightToLeft
rightToLeft, HorizontalAlignment align, HorizontalAlignment expected)
System\Windows\Forms\ControlTests.Properties.cs (97)
10055
public void Control_RightToLeft_Set_GetReturnsExpected(
RightToLeft
value,
RightToLeft
expected)
10072
public void Control_RightToLeft_SetWithOldValue_GetReturnsExpected(
RightToLeft
value,
RightToLeft
expected)
10076
RightToLeft =
RightToLeft
.Yes
10091
public void Control_RightToLeft_SetWithChildren_GetReturnsExpected(
RightToLeft
value,
RightToLeft
expected)
10115
public void Control_RightToLeft_SetWithChildrenWithRightToLeft_GetReturnsExpected(
RightToLeft
value,
RightToLeft
expected)
10119
RightToLeft =
RightToLeft
.Yes
10123
RightToLeft =
RightToLeft
.No
10131
Assert.Equal(
RightToLeft
.Yes, child1.RightToLeft);
10132
Assert.Equal(
RightToLeft
.No, child2.RightToLeft);
10138
Assert.Equal(
RightToLeft
.Yes, child1.RightToLeft);
10139
Assert.Equal(
RightToLeft
.No, child2.RightToLeft);
10144
[InlineData(
RightToLeft
.Yes,
RightToLeft
.Yes, 1)]
10145
[InlineData(
RightToLeft
.No,
RightToLeft
.No, 0)]
10146
[InlineData(
RightToLeft
.Inherit,
RightToLeft
.No, 0)]
10147
public void Control_RightToLeft_SetWithHandle_GetReturnsExpected(
RightToLeft
value,
RightToLeft
expected, int expectedCreatedCallCount)
10175
[InlineData(
RightToLeft
.Yes,
RightToLeft
.Yes, 0)]
10176
[InlineData(
RightToLeft
.No,
RightToLeft
.No, 1)]
10177
[InlineData(
RightToLeft
.Inherit,
RightToLeft
.No, 1)]
10178
public void Control_RightToLeft_SetWithOldValueWithHandle_GetReturnsExpected(
RightToLeft
value,
RightToLeft
expected, int expectedCreatedCallCount)
10182
RightToLeft =
RightToLeft
.Yes
10222
control.RightToLeft =
RightToLeft
.Yes;
10223
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
10227
control.RightToLeft =
RightToLeft
.Yes;
10228
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
10232
control.RightToLeft =
RightToLeft
.Inherit;
10233
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
10238
control.RightToLeft =
RightToLeft
.Yes;
10239
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
10257
control.RightToLeft =
RightToLeft
.Yes;
10258
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
10274
RightToLeft =
RightToLeft
.Inherit
10312
control.RightToLeft =
RightToLeft
.Yes;
10313
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
10314
Assert.Equal(
RightToLeft
.Yes, child1.RightToLeft);
10315
Assert.Equal(
RightToLeft
.Yes, child2.RightToLeft);
10321
control.RightToLeft =
RightToLeft
.Yes;
10322
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
10323
Assert.Equal(
RightToLeft
.Yes, child1.RightToLeft);
10324
Assert.Equal(
RightToLeft
.Yes, child2.RightToLeft);
10330
control.RightToLeft =
RightToLeft
.Inherit;
10331
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
10332
Assert.Equal(
RightToLeft
.No, child1.RightToLeft);
10333
Assert.Equal(
RightToLeft
.No, child2.RightToLeft);
10342
control.RightToLeft =
RightToLeft
.Yes;
10343
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
10344
Assert.Equal(
RightToLeft
.Yes, child1.RightToLeft);
10345
Assert.Equal(
RightToLeft
.Yes, child2.RightToLeft);
10356
RightToLeft =
RightToLeft
.Yes
10360
RightToLeft =
RightToLeft
.No
10392
control.RightToLeft =
RightToLeft
.Yes;
10393
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
10394
Assert.Equal(
RightToLeft
.Yes, child1.RightToLeft);
10395
Assert.Equal(
RightToLeft
.No, child2.RightToLeft);
10401
control.RightToLeft =
RightToLeft
.Yes;
10402
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
10403
Assert.Equal(
RightToLeft
.Yes, child1.RightToLeft);
10404
Assert.Equal(
RightToLeft
.No, child2.RightToLeft);
10410
control.RightToLeft =
RightToLeft
.Inherit;
10411
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
10412
Assert.Equal(
RightToLeft
.Yes, child1.RightToLeft);
10413
Assert.Equal(
RightToLeft
.No, child2.RightToLeft);
10422
control.RightToLeft =
RightToLeft
.Yes;
10423
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
10424
Assert.Equal(
RightToLeft
.Yes, child1.RightToLeft);
10425
Assert.Equal(
RightToLeft
.No, child2.RightToLeft);
10432
[InvalidEnumData<
RightToLeft
>]
10433
public void Control_RightToLeft_SetInvalid_ThrowsInvalidEnumArgumentException(
RightToLeft
value)
10446
control.RightToLeft =
RightToLeft
.Yes;
10447
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
10450
control.RightToLeft =
RightToLeft
.No;
10451
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
10454
control.RightToLeft =
RightToLeft
.Inherit;
10455
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
10458
control.RightToLeft =
RightToLeft
.No;
10459
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
10463
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
10474
control.RightToLeft =
RightToLeft
.Yes;
10475
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
10478
control.RightToLeft =
RightToLeft
.No;
10479
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
10482
control.RightToLeft =
RightToLeft
.Inherit;
10483
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
10486
control.RightToLeft =
RightToLeft
.No;
10487
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
10491
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\DataGridViewCellTests.cs (1)
3273
RightToLeft =
RightToLeft
.Yes
System\Windows\Forms\DataGridViewRowTests.cs (65)
3381
true, true,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.Inset, true, true, isFirstDisplayedRow, true,
3388
false, true,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.Inset, true, true, true, true,
3393
false, true,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.Inset, true, true, false, true,
3398
true, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.Inset, true, true, true, true,
3403
true, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.Inset, true, true, false, true,
3408
false, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.Inset, true, true, true, true,
3413
false, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.Inset, true, true, false, true,
3422
true, true,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.InsetDouble, true, true, isFirstDisplayedRow, true,
3427
true, true,
RightToLeft
.Yes, DataGridViewAdvancedCellBorderStyle.InsetDouble, true, true, isFirstDisplayedRow, true,
3432
false, true,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.InsetDouble, true, true, isFirstDisplayedRow, true,
3437
false, true,
RightToLeft
.Yes, DataGridViewAdvancedCellBorderStyle.InsetDouble, true, true, isFirstDisplayedRow, true,
3444
true, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.InsetDouble, true, true, false, true,
3449
true, false,
RightToLeft
.Yes, DataGridViewAdvancedCellBorderStyle.InsetDouble, true, true, true, true,
3454
false, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.InsetDouble, true, true, true, true,
3459
false, false,
RightToLeft
.Yes, DataGridViewAdvancedCellBorderStyle.InsetDouble, true, true, true, true,
3464
false, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.InsetDouble, true, true, true, true,
3469
false, false,
RightToLeft
.Yes, DataGridViewAdvancedCellBorderStyle.InsetDouble, true, true, false, true,
3478
true, true,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.Outset, true, true, isFirstDisplayedRow, true,
3485
false, true,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.Outset, true, true, true, true,
3490
false, true,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.Outset, true, true, false, true,
3495
true, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.Outset, true, true, true, true,
3500
true, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.Outset, true, true, false, true,
3505
false, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.Outset, true, true, true, true,
3510
false, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.Outset, true, true, false, true,
3519
true, true,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.OutsetDouble, true, true, isFirstDisplayedRow, true,
3524
true, true,
RightToLeft
.Yes, DataGridViewAdvancedCellBorderStyle.OutsetDouble, true, true, isFirstDisplayedRow, true,
3529
false, true,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.OutsetDouble, true, true, isFirstDisplayedRow, true,
3534
false, true,
RightToLeft
.Yes, DataGridViewAdvancedCellBorderStyle.OutsetDouble, true, true, isFirstDisplayedRow, true,
3541
true, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.OutsetDouble, true, true, false, true,
3546
true, false,
RightToLeft
.Yes, DataGridViewAdvancedCellBorderStyle.OutsetDouble, true, true, true, true,
3551
false, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.OutsetDouble, true, true, true, true,
3556
false, false,
RightToLeft
.Yes, DataGridViewAdvancedCellBorderStyle.OutsetDouble, true, true, true, true,
3561
false, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.OutsetDouble, true, true, true, true,
3566
false, false,
RightToLeft
.Yes, DataGridViewAdvancedCellBorderStyle.OutsetDouble, true, true, false, true,
3577
true, true,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, isFirstDisplayedRow, isLastVisibleRow,
3582
true, true,
RightToLeft
.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, isFirstDisplayedRow, isLastVisibleRow,
3592
true, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, false, isLastVisibleRow,
3597
true, false,
RightToLeft
.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, true, isLastVisibleRow,
3604
false, true,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, true, true,
3609
false, true,
RightToLeft
.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, true, true,
3614
false, true,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, true, false,
3619
false, true,
RightToLeft
.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, true, false,
3624
false, true,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, false, true,
3629
false, true,
RightToLeft
.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, false, true,
3634
false, true,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, false, false,
3639
false, true,
RightToLeft
.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, false, false,
3644
false, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, true, true,
3649
false, false,
RightToLeft
.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, true, true,
3654
false, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, true, false,
3659
false, false,
RightToLeft
.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, false, false,
3668
true, true,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.Single, true, true, isFirstDisplayedRow, true,
3673
false, true,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.Single, true, true, isFirstDisplayedRow, true,
3680
true, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.Single, true, true, true, true,
3685
true, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.Single, true, true, false, true,
3690
false, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.Single, true, true, true, true,
3695
false, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.Single, true, true, false, true,
3702
true, true,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.None, true, true, true, true,
3707
true, false,
RightToLeft
.No, DataGridViewAdvancedCellBorderStyle.None, true, true, true, true,
3714
public void DataGridViewRow_AdjustRowHeaderBorderStyle_InvokeWithDataGridView_ReturnsExpected(bool enableHeadersVisualStyles, bool rowHeadersVisible,
RightToLeft
rightToLeft, DataGridViewAdvancedCellBorderStyle all, bool singleVerticalBorderAdded, bool singleHorizontalBorderAdded, bool isFirstDisplayedColumn, bool isFirstDisplayedRow, bool returnsAdvanced, DataGridViewAdvancedCellBorderStyle expectedLeft, DataGridViewAdvancedCellBorderStyle expectedRight, DataGridViewAdvancedCellBorderStyle expectedTop, DataGridViewAdvancedCellBorderStyle expectedBottom)
4662
RightToLeft =
RightToLeft
.Yes
4759
RightToLeft =
RightToLeft
.Yes
5108
RightToLeft =
RightToLeft
.Yes
5205
RightToLeft =
RightToLeft
.Yes
5428
RightToLeft =
RightToLeft
.Yes
5525
RightToLeft =
RightToLeft
.Yes
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (28)
107
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
1018
yield return new object[] {
RightToLeft
.Yes, valueChanged, multiline, acceptsReturn, Keys.Right, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1019
yield return new object[] {
RightToLeft
.No, valueChanged, multiline, acceptsReturn, Keys.Right, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1020
yield return new object[] {
RightToLeft
.Yes, valueChanged, multiline, acceptsReturn, Keys.Left, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1021
yield return new object[] {
RightToLeft
.No, valueChanged, multiline, acceptsReturn, Keys.Left, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1022
yield return new object[] {
RightToLeft
.Yes, valueChanged, multiline, acceptsReturn, Keys.Down, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1023
yield return new object[] {
RightToLeft
.No, valueChanged, multiline, acceptsReturn, Keys.Down, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1024
yield return new object[] {
RightToLeft
.Yes, valueChanged, multiline, acceptsReturn, Keys.Up, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1025
yield return new object[] {
RightToLeft
.No, valueChanged, multiline, acceptsReturn, Keys.Up, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1026
yield return new object[] {
RightToLeft
.Yes, valueChanged, multiline, acceptsReturn, Keys.Home, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1027
yield return new object[] {
RightToLeft
.No, valueChanged, multiline, acceptsReturn, Keys.Home, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1028
yield return new object[] {
RightToLeft
.Yes, valueChanged, multiline, acceptsReturn, Keys.End, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1029
yield return new object[] {
RightToLeft
.No, valueChanged, multiline, acceptsReturn, Keys.End, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1030
yield return new object[] {
RightToLeft
.Yes, valueChanged, multiline, acceptsReturn, Keys.Prior, dataGridViewWantsInputKey, !dataGridViewWantsInputKey || valueChanged };
1031
yield return new object[] {
RightToLeft
.No, valueChanged, multiline, acceptsReturn, Keys.Prior, dataGridViewWantsInputKey, !dataGridViewWantsInputKey || valueChanged };
1032
yield return new object[] {
RightToLeft
.Yes, valueChanged, multiline, acceptsReturn, Keys.Next, dataGridViewWantsInputKey, !dataGridViewWantsInputKey || valueChanged };
1033
yield return new object[] {
RightToLeft
.No, valueChanged, multiline, acceptsReturn, Keys.Next, dataGridViewWantsInputKey, !dataGridViewWantsInputKey || valueChanged };
1034
yield return new object[] {
RightToLeft
.Yes, valueChanged, multiline, acceptsReturn, Keys.Delete, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1035
yield return new object[] {
RightToLeft
.No, valueChanged, multiline, acceptsReturn, Keys.Delete, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1036
yield return new object[] {
RightToLeft
.Yes, valueChanged, multiline, acceptsReturn, Keys.Enter, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1037
yield return new object[] {
RightToLeft
.No, valueChanged, multiline, acceptsReturn, Keys.Enter, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1038
yield return new object[] {
RightToLeft
.Yes, valueChanged, multiline, acceptsReturn, Keys.Enter | Keys.Shift | Keys.Control, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1039
yield return new object[] {
RightToLeft
.No, valueChanged, multiline, acceptsReturn, Keys.Enter | Keys.Shift | Keys.Control, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1040
yield return new object[] {
RightToLeft
.Yes, valueChanged, multiline, acceptsReturn, Keys.Enter | Keys.Shift, dataGridViewWantsInputKey, !dataGridViewWantsInputKey || (multiline && acceptsReturn) };
1041
yield return new object[] {
RightToLeft
.No, valueChanged, multiline, acceptsReturn, Keys.Enter | Keys.Shift, dataGridViewWantsInputKey, !dataGridViewWantsInputKey || (multiline && acceptsReturn) };
1042
yield return new object[] {
RightToLeft
.Yes, valueChanged, multiline, acceptsReturn, Keys.A, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1043
yield return new object[] {
RightToLeft
.No, valueChanged, multiline, acceptsReturn, Keys.A, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1052
public void DataGridViewTextBoxEditingDataGridViewTextBoxEditingControl_EditingControlWantsInputKey_InvokeEmpty_ReturnsExpected(
RightToLeft
rightToLeft, bool valueChanged, bool multiline, bool acceptsReturn, Keys keyData, bool dataGridViewWantsInputKey, bool expected)
System\Windows\Forms\DateTimePickerTests.cs (1)
105
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
138
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
108
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\DomainUpDownTests.cs (1)
130
_sub.RightToLeft.Should().Be(
RightToLeft
.No);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
100
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\FormTests.cs (1)
140
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\GroupBoxTests.cs (5)
88
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
1827
foreach (
RightToLeft
rightToLeft in Enum.GetValues(typeof(
RightToLeft
)))
1847
public void GroupBox_OnPaint_Invoke_CallsPaint(Size size, bool enabled, bool useCompatibleTextRendering,
RightToLeft
rightToLeft, Color foreColor, string text)
1885
public void GroupBox_OnPaint_InvokeWithHandle_CallsPaint(Size size, bool enabled, bool useCompatibleTextRendering,
RightToLeft
rightToLeft, Color foreColor, string text)
System\Windows\Forms\HScrollBarTests.cs (13)
99
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
142
public void HScrollBar_RightToLeft_Set_GetReturnsExpected(
RightToLeft
value,
RightToLeft
expected)
171
control.RightToLeft =
RightToLeft
.Yes;
172
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
176
control.RightToLeft =
RightToLeft
.Yes;
177
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
181
control.RightToLeft =
RightToLeft
.Inherit;
182
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
187
control.RightToLeft =
RightToLeft
.Yes;
188
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
193
[InvalidEnumData<
RightToLeft
>]
194
public void HScrollBar_RightToLeft_SetInvalid_ThrowsInvalidEnumArgumentException(
RightToLeft
value)
System\Windows\Forms\LabelTests.cs (1)
97
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\ListBoxTests.cs (13)
106
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
2175
public void ListBox_RightToLeft_Set_GetReturnsExpected(
RightToLeft
value,
RightToLeft
expected)
2204
control.RightToLeft =
RightToLeft
.Yes;
2205
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
2209
control.RightToLeft =
RightToLeft
.Yes;
2210
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
2214
control.RightToLeft =
RightToLeft
.Inherit;
2215
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
2220
control.RightToLeft =
RightToLeft
.Yes;
2221
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
2226
[InvalidEnumData<
RightToLeft
>]
2227
public void ListBox_RightToLeft_SetInvalid_ThrowsInvalidEnumArgumentException(
RightToLeft
value)
System\Windows\Forms\ListControlTests.cs (1)
94
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (10)
659
[InlineData(true, true,
RightToLeft
.Yes, true)]
660
[InlineData(true, true,
RightToLeft
.No, false)]
661
[InlineData(true, true,
RightToLeft
.Inherit, false)]
662
[InlineData(true, false,
RightToLeft
.Yes, true)]
663
[InlineData(true, false,
RightToLeft
.No, false)]
664
[InlineData(true, false,
RightToLeft
.Inherit, false)]
665
[InlineData(false, true,
RightToLeft
.Yes, false)]
669
RightToLeft
rightToLeft,
807
RightToLeft
rightToLeft =
RightToLeft
.No,
System\Windows\Forms\ListViewTests.cs (1)
122
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\MdiClientTests.cs (65)
73
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
326
[EnumData<
RightToLeft
>]
327
public void MdiClient_Handle_Get_Success(
RightToLeft
rightToLeft)
338
[InlineData(
RightToLeft
.Inherit, true)]
339
[InlineData(
RightToLeft
.No, true)]
340
[InlineData(
RightToLeft
.Yes, true)]
341
public void MdiClient_Handle_GetDesignMode_Success(
RightToLeft
rightToleft, bool designMode)
363
[InlineData(
RightToLeft
.Inherit,
RightToLeft
.Inherit)]
364
[InlineData(
RightToLeft
.Inherit,
RightToLeft
.No)]
365
[InlineData(
RightToLeft
.Inherit,
RightToLeft
.Yes)]
366
[InlineData(
RightToLeft
.No,
RightToLeft
.Inherit)]
367
[InlineData(
RightToLeft
.No,
RightToLeft
.No)]
368
[InlineData(
RightToLeft
.No,
RightToLeft
.Yes)]
369
[InlineData(
RightToLeft
.Yes,
RightToLeft
.Inherit)]
370
[InlineData(
RightToLeft
.Yes,
RightToLeft
.No)]
371
[InlineData(
RightToLeft
.Yes,
RightToLeft
.Yes)]
372
public void MdiClient_Handle_GetWithParent_Success(
RightToLeft
parentRightToLeft,
RightToLeft
rightToLeft)
388
[InlineData(
RightToLeft
.Inherit,
RightToLeft
.Inherit, true)]
389
[InlineData(
RightToLeft
.Inherit,
RightToLeft
.Inherit, false)]
390
[InlineData(
RightToLeft
.Inherit,
RightToLeft
.No, true)]
391
[InlineData(
RightToLeft
.Inherit,
RightToLeft
.No, false)]
392
[InlineData(
RightToLeft
.Inherit,
RightToLeft
.Yes, true)]
393
[InlineData(
RightToLeft
.Inherit,
RightToLeft
.Yes, false)]
394
[InlineData(
RightToLeft
.No,
RightToLeft
.Inherit, true)]
395
[InlineData(
RightToLeft
.No,
RightToLeft
.Inherit, false)]
396
[InlineData(
RightToLeft
.No,
RightToLeft
.No, true)]
397
[InlineData(
RightToLeft
.No,
RightToLeft
.No, false)]
398
[InlineData(
RightToLeft
.No,
RightToLeft
.Yes, true)]
399
[InlineData(
RightToLeft
.No,
RightToLeft
.Yes, false)]
400
[InlineData(
RightToLeft
.Yes,
RightToLeft
.Inherit, true)]
401
[InlineData(
RightToLeft
.Yes,
RightToLeft
.Inherit, false)]
402
[InlineData(
RightToLeft
.Yes,
RightToLeft
.No, true)]
403
[InlineData(
RightToLeft
.Yes,
RightToLeft
.No, false)]
404
[InlineData(
RightToLeft
.Yes,
RightToLeft
.Yes, true)]
405
[InlineData(
RightToLeft
.Yes,
RightToLeft
.Yes, false)]
406
public void MdiClient_Handle_GetParentDesignMode_SetsDisabled(
RightToLeft
parentRightToLeft,
RightToLeft
rightToLeft, bool designMode)
System\Windows\Forms\MdiControlStripTests.cs (10)
131
Assert.Equal(
RightToLeft
.No, mdiControlStrip.RightToLeft);
194
[InlineData(
RightToLeft
.No)]
195
[InlineData(
RightToLeft
.Yes)]
196
public void MdiControlStrip_MaximizedChildWindow_NextSibling_ReturnsControlBoxButtonsAsExpected(
RightToLeft
rightToLeft)
240
[InlineData(
RightToLeft
.No)]
241
[InlineData(
RightToLeft
.Yes)]
242
public void MdiControlStrip_MaximizedChildWindow_PreviousSibling_ReturnsControlBoxButtonsAsExpected(
RightToLeft
rightToLeft)
285
[InlineData(
RightToLeft
.No)]
286
[InlineData(
RightToLeft
.Yes)]
287
public void MdiControlStrip_MaximizedChildWindow_ControlbBoxButtons_AreNotCloned(
RightToLeft
rightToLeft)
System\Windows\Forms\MenuStripTests.cs (1)
129
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\MonthCalendarTests.cs (31)
111
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
1717
[InlineData(
RightToLeft
.Yes, true, 1)]
1718
[InlineData(
RightToLeft
.Yes, false, 0)]
1719
[InlineData(
RightToLeft
.No, true, 1)]
1720
[InlineData(
RightToLeft
.No, false, 0)]
1721
[InlineData(
RightToLeft
.Inherit, true, 1)]
1722
[InlineData(
RightToLeft
.Inherit, false, 0)]
1723
public void MonthCalendar_RightToLeftLayout_Set_GetReturnsExpected(
RightToLeft
rightToLeft, bool value, int expectedLayoutCallCount)
1757
[InlineData(
RightToLeft
.Yes, true, 1, 1, 2)]
1758
[InlineData(
RightToLeft
.Yes, false, 0, 0, 1)]
1759
[InlineData(
RightToLeft
.No, true, 1, 0, 0)]
1760
[InlineData(
RightToLeft
.No, false, 0, 0, 0)]
1761
[InlineData(
RightToLeft
.Inherit, true, 1, 0, 0)]
1762
[InlineData(
RightToLeft
.Inherit, false, 0, 0, 0)]
1763
public void MonthCalendar_RightToLeftLayout_SetWithHandle_GetReturnsExpected(
RightToLeft
rightToLeft, bool value, int expectedLayoutCallCount, int expectedCreatedCallCount1, int expectedCreatedCallCount2)
1855
RightToLeft =
RightToLeft
.Yes
3783
yield return new object[] {
RightToLeft
.Yes, null };
3784
yield return new object[] {
RightToLeft
.Yes, new EventArgs() };
3785
yield return new object[] {
RightToLeft
.No, null };
3786
yield return new object[] {
RightToLeft
.No, new EventArgs() };
3787
yield return new object[] {
RightToLeft
.Inherit, null };
3788
yield return new object[] {
RightToLeft
.Inherit, new EventArgs() };
3793
public void MonthCalendar_OnRightToLeftLayoutChanged_Invoke_CallsRightToLeftLayoutChanged(
RightToLeft
rightToLeft, EventArgs eventArgs)
3822
yield return new object[] {
RightToLeft
.Yes, null, 1 };
3823
yield return new object[] {
RightToLeft
.Yes, new EventArgs(), 1 };
3824
yield return new object[] {
RightToLeft
.No, null, 0 };
3825
yield return new object[] {
RightToLeft
.No, new EventArgs(), 0 };
3826
yield return new object[] {
RightToLeft
.Inherit, null, 0 };
3827
yield return new object[] {
RightToLeft
.Inherit, new EventArgs(), 0 };
3832
public void MonthCalendar_OnRightToLeftLayoutChanged_InvokeWithHandle_CallsRightToLeftLayoutChanged(
RightToLeft
rightToLeft, EventArgs eventArgs, int expectedCreatedCallCount)
3877
RightToLeft =
RightToLeft
.Yes
System\Windows\Forms\PanelTests.cs (1)
100
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\PictureBoxTests.cs (13)
95
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
1219
public void PictureBox_RightToLeft_Set_GetReturnsExpected(
RightToLeft
value,
RightToLeft
expected)
1248
control.RightToLeft =
RightToLeft
.Yes;
1249
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
1253
control.RightToLeft =
RightToLeft
.Yes;
1254
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
1258
control.RightToLeft =
RightToLeft
.Inherit;
1259
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
1264
control.RightToLeft =
RightToLeft
.Yes;
1265
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
1270
[InvalidEnumData<
RightToLeft
>]
1271
public void PictureBox_RightToLeft_SetInvalid_ThrowsInvalidEnumArgumentException(
RightToLeft
value)
System\Windows\Forms\ProgressBarTests.cs (38)
85
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
165
[InlineData(
RightToLeft
.Inherit, true, 0x56010000, 0x0)]
166
[InlineData(
RightToLeft
.No, true, 0x56010000, 0x0)]
167
[InlineData(
RightToLeft
.Yes, true, 0x56010000, 0x400000)]
168
[InlineData(
RightToLeft
.Inherit, false, 0x56010000, 0x0)]
169
[InlineData(
RightToLeft
.No, false, 0x56010000, 0x0)]
170
[InlineData(
RightToLeft
.Yes, false, 0x56010000, 0x7000)]
171
public void ProgressBar_CreateParams_GetRightToLeft_ReturnsExpected(
RightToLeft
rightToLeft, bool rightToLeftLayout, int expectedStyle, int expectedExStyle)
1182
[InlineData(
RightToLeft
.Yes, true, 1)]
1183
[InlineData(
RightToLeft
.Yes, false, 0)]
1184
[InlineData(
RightToLeft
.No, true, 1)]
1185
[InlineData(
RightToLeft
.No, false, 0)]
1186
[InlineData(
RightToLeft
.Inherit, true, 1)]
1187
[InlineData(
RightToLeft
.Inherit, false, 0)]
1188
public void ProgressBar_RightToLeftLayout_Set_GetReturnsExpected(
RightToLeft
rightToLeft, bool value, int expectedLayoutCallCount)
1222
[InlineData(
RightToLeft
.Yes, true, 1, 1, 2)]
1223
[InlineData(
RightToLeft
.Yes, false, 0, 0, 1)]
1224
[InlineData(
RightToLeft
.No, true, 1, 0, 0)]
1225
[InlineData(
RightToLeft
.No, false, 0, 0, 0)]
1226
[InlineData(
RightToLeft
.Inherit, true, 1, 0, 0)]
1227
[InlineData(
RightToLeft
.Inherit, false, 0, 0, 0)]
1228
public void ProgressBar_RightToLeftLayout_SetWithHandle_GetReturnsExpected(
RightToLeft
rightToLeft, bool value, int expectedLayoutCallCount, int expectedCreatedCallCount1, int expectedCreatedCallCount2)
1320
RightToLeft =
RightToLeft
.Yes
2370
yield return new object[] {
RightToLeft
.Yes, null };
2371
yield return new object[] {
RightToLeft
.Yes, new EventArgs() };
2372
yield return new object[] {
RightToLeft
.No, null };
2373
yield return new object[] {
RightToLeft
.No, new EventArgs() };
2374
yield return new object[] {
RightToLeft
.Inherit, null };
2375
yield return new object[] {
RightToLeft
.Inherit, new EventArgs() };
2380
public void ProgressBar_OnRightToLeftLayoutChanged_Invoke_CallsRightToLeftLayoutChanged(
RightToLeft
rightToLeft, EventArgs eventArgs)
2409
yield return new object[] {
RightToLeft
.Yes, null, 1 };
2410
yield return new object[] {
RightToLeft
.Yes, new EventArgs(), 1 };
2411
yield return new object[] {
RightToLeft
.No, null, 0 };
2412
yield return new object[] {
RightToLeft
.No, new EventArgs(), 0 };
2413
yield return new object[] {
RightToLeft
.Inherit, null, 0 };
2414
yield return new object[] {
RightToLeft
.Inherit, new EventArgs(), 0 };
2419
public void ProgressBar_OnRightToLeftLayoutChanged_InvokeWithHandle_CallsRightToLeftLayoutChanged(
RightToLeft
rightToLeft, EventArgs eventArgs, int expectedCreatedCallCount)
2464
RightToLeft =
RightToLeft
.Yes
System\Windows\Forms\PropertyGridTests.cs (1)
138
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\RadioButtonTests.cs (1)
101
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\RichTextBoxTests.cs (1)
116
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\ScrollableControlTests.cs (17)
99
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
853
public void ScrollableControl_RightToLeft_Set_GetReturnsExpected(
RightToLeft
value,
RightToLeft
expected)
982
foreach (
RightToLeft
rightToLeft in Enum.GetValues(typeof(
RightToLeft
)))
1024
public void ScrollableControl_AdjustFormScrollbars_Invoke_Success(
RightToLeft
rightToLeft, bool hScroll, int hValue, bool vScroll, int vValue, bool displayScrollbars, bool expectedHScroll, int expectedHValue, bool expectedVScroll, int expectedVValue)
1048
public void ScrollableControl_AdjustFormScrollbars_InvokeAutoScroll_Success(
RightToLeft
rightToLeft, bool hScroll, int hValue, bool vScroll, int vValue, bool displayScrollbars, bool expectedHScroll, int expectedHValue, bool expectedVScroll, int expectedVValue)
1073
foreach (
RightToLeft
rightToLeft in Enum.GetValues(typeof(
RightToLeft
)))
1115
public void ScrollableControl_AdjustFormScrollbars_InvokeAutoScrollMinSize_Success(
RightToLeft
rightToLeft, bool hScroll, int hValue, bool vScroll, int vValue, bool displayScrollbars, bool expectedHScroll, int expectedHValue, bool expectedVScroll, int expectedVValue)
1140
foreach (
RightToLeft
rightToLeft in Enum.GetValues(typeof(
RightToLeft
)))
1182
public void ScrollableControl_AdjustFormScrollbars_InvokeWithHandle_Success(
RightToLeft
rightToLeft, bool hScroll, int hValue, bool vScroll, int vValue, bool displayScrollbars, bool expectedHScroll, int expectedHValue, bool expectedVScroll, int expectedVValue, int expectedInvalidatedCallCount)
1216
public void ScrollableControl_AdjustFormScrollbars_InvokeWithHandleAutoScroll_Success(
RightToLeft
rightToLeft, bool hScroll, int hValue, bool vScroll, int vValue, bool displayScrollbars, bool expectedHScroll, int expectedHValue, bool expectedVScroll, int expectedVValue, int expectedInvalidatedCallCount)
1251
foreach (
RightToLeft
rightToLeft in Enum.GetValues(typeof(
RightToLeft
)))
1293
public void ScrollableControl_AdjustFormScrollbars_InvokeWithHandleAutoScrollMinSize_Success(
RightToLeft
rightToLeft, bool hScroll, int hValue, bool vScroll, int vValue, bool displayScrollbars, bool expectedHScroll, int expectedHValue, bool expectedVScroll, int expectedVValue, int expectedInvalidatedCallCount)
System\Windows\Forms\ScrollBarTests.cs (234)
88
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
594
[InlineData(
RightToLeft
.Inherit)]
595
[InlineData(
RightToLeft
.No)]
596
[InlineData(
RightToLeft
.Yes)]
597
public unsafe void ScrollBar_Handle_GetDefault_ReturnsExpected(
RightToLeft
rightToLeft)
1182
public void ScrollBar_RightToLeft_Set_GetReturnsExpected(
RightToLeft
value,
RightToLeft
expected)
1211
control.RightToLeft =
RightToLeft
.Yes;
1212
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
1216
control.RightToLeft =
RightToLeft
.Yes;
1217
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
1221
control.RightToLeft =
RightToLeft
.Inherit;
1222
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
1227
control.RightToLeft =
RightToLeft
.Yes;
1228
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
1233
[InvalidEnumData<
RightToLeft
>]
1234
public void ScrollBar_RightToLeft_SetInvalid_ThrowsInvalidEnumArgumentException(
RightToLeft
value)
2229
yield return new object[] {
RightToLeft
.No, 10, -119, new List<ScrollEventArgs>(), 10 };
2230
yield return new object[] {
RightToLeft
.No, 10, 0, new List<ScrollEventArgs>(), 10 };
2231
yield return new object[] {
RightToLeft
.No, 10, 119, new List<ScrollEventArgs>(), 10 };
2232
yield return new object[] {
RightToLeft
.Yes, 10, -119, new List<ScrollEventArgs>(), 10 };
2233
yield return new object[] {
RightToLeft
.Yes, 10, 0, new List<ScrollEventArgs>(), 10 };
2234
yield return new object[] {
RightToLeft
.Yes, 10, 119, new List<ScrollEventArgs>(), 10 };
2239
RightToLeft
.No, 10, 120,
2248
RightToLeft
.No, 10, 121,
2257
RightToLeft
.No, 10, 240,
2267
RightToLeft
.No, 1, 120,
2276
RightToLeft
.No, 1, 240,
2286
RightToLeft
.No, 100, 240,
2297
RightToLeft
.Yes, 10, -120,
2306
RightToLeft
.Yes, 10, -121,
2315
RightToLeft
.Yes, 10, -240,
2325
RightToLeft
.Yes, 1, -120,
2334
RightToLeft
.Yes, 1, -240,
2344
RightToLeft
.Yes, 100, -240,
2356
RightToLeft
.No, 10, -120,
2365
RightToLeft
.No, 10, -121,
2374
RightToLeft
.No, 10, -240,
2384
RightToLeft
.No, 90, -120,
2393
RightToLeft
.No, 99, -120,
2402
RightToLeft
.No, 99, -240,
2413
RightToLeft
.Yes, 10, 120,
2422
RightToLeft
.Yes, 10, 121,
2431
RightToLeft
.Yes, 10, 240,
2441
RightToLeft
.Yes, 90, 120,
2450
RightToLeft
.Yes, 99, 120,
2459
RightToLeft
.Yes, 99, 240,
2471
public void ScrollBar_OnMouseWheel_InvokeWithScroll_CallsScroll(
RightToLeft
rightToLeft, int originalValue, int delta, IList<ScrollEventArgs> expected, int expectedValue)
2646
RightToLeft =
RightToLeft
.Yes
2710
yield return new object[] { msg,
RightToLeft
.No, 100, ScrollEventType.SmallIncrement, 91, ScrollEventType.SmallIncrement };
2711
yield return new object[] { msg,
RightToLeft
.No, 99, ScrollEventType.SmallIncrement, 91, ScrollEventType.SmallIncrement };
2712
yield return new object[] { msg,
RightToLeft
.No, 91, ScrollEventType.SmallIncrement, 91, ScrollEventType.SmallIncrement };
2713
yield return new object[] { msg,
RightToLeft
.No, 85, ScrollEventType.SmallIncrement, 86, ScrollEventType.SmallIncrement };
2714
yield return new object[] { msg,
RightToLeft
.No, 15, ScrollEventType.SmallIncrement, 16, ScrollEventType.SmallIncrement };
2715
yield return new object[] { msg,
RightToLeft
.No, 10, ScrollEventType.SmallIncrement, 11, ScrollEventType.SmallIncrement };
2716
yield return new object[] { msg,
RightToLeft
.No, 1, ScrollEventType.SmallIncrement, 2, ScrollEventType.SmallIncrement };
2717
yield return new object[] { msg,
RightToLeft
.No, 0, ScrollEventType.SmallIncrement, 1, ScrollEventType.SmallIncrement };
2718
yield return new object[] { msg,
RightToLeft
.Yes, 100, ScrollEventType.SmallDecrement, 91, ScrollEventType.SmallIncrement };
2719
yield return new object[] { msg,
RightToLeft
.Yes, 99, ScrollEventType.SmallDecrement, 91, ScrollEventType.SmallIncrement };
2720
yield return new object[] { msg,
RightToLeft
.Yes, 91, ScrollEventType.SmallDecrement, 91, ScrollEventType.SmallIncrement };
2721
yield return new object[] { msg,
RightToLeft
.Yes, 85, ScrollEventType.SmallDecrement, 86, ScrollEventType.SmallIncrement };
2722
yield return new object[] { msg,
RightToLeft
.Yes, 15, ScrollEventType.SmallDecrement, 16, ScrollEventType.SmallIncrement };
2723
yield return new object[] { msg,
RightToLeft
.Yes, 10, ScrollEventType.SmallDecrement, 11, ScrollEventType.SmallIncrement };
2724
yield return new object[] { msg,
RightToLeft
.Yes, 1, ScrollEventType.SmallDecrement, 2, ScrollEventType.SmallIncrement };
2725
yield return new object[] { msg,
RightToLeft
.Yes, 0, ScrollEventType.SmallDecrement, 1, ScrollEventType.SmallIncrement };
2727
yield return new object[] { msg,
RightToLeft
.No, 100, ScrollEventType.LargeIncrement, 91, ScrollEventType.LargeIncrement };
2728
yield return new object[] { msg,
RightToLeft
.No, 99, ScrollEventType.LargeIncrement, 91, ScrollEventType.LargeIncrement };
2729
yield return new object[] { msg,
RightToLeft
.No, 91, ScrollEventType.LargeIncrement, 91, ScrollEventType.LargeIncrement };
2730
yield return new object[] { msg,
RightToLeft
.No, 85, ScrollEventType.LargeIncrement, 91, ScrollEventType.LargeIncrement };
2731
yield return new object[] { msg,
RightToLeft
.No, 15, ScrollEventType.LargeIncrement, 25, ScrollEventType.LargeIncrement };
2732
yield return new object[] { msg,
RightToLeft
.No, 10, ScrollEventType.LargeIncrement, 20, ScrollEventType.LargeIncrement };
2733
yield return new object[] { msg,
RightToLeft
.No, 1, ScrollEventType.LargeIncrement, 11, ScrollEventType.LargeIncrement };
2734
yield return new object[] { msg,
RightToLeft
.No, 0, ScrollEventType.LargeIncrement, 10, ScrollEventType.LargeIncrement };
2735
yield return new object[] { msg,
RightToLeft
.Yes, 100, ScrollEventType.LargeDecrement, 91, ScrollEventType.LargeIncrement };
2736
yield return new object[] { msg,
RightToLeft
.Yes, 99, ScrollEventType.LargeDecrement, 91, ScrollEventType.LargeIncrement };
2737
yield return new object[] { msg,
RightToLeft
.Yes, 91, ScrollEventType.LargeDecrement, 91, ScrollEventType.LargeIncrement };
2738
yield return new object[] { msg,
RightToLeft
.Yes, 85, ScrollEventType.LargeDecrement, 91, ScrollEventType.LargeIncrement };
2739
yield return new object[] { msg,
RightToLeft
.Yes, 15, ScrollEventType.LargeDecrement, 25, ScrollEventType.LargeIncrement };
2740
yield return new object[] { msg,
RightToLeft
.Yes, 10, ScrollEventType.LargeDecrement, 20, ScrollEventType.LargeIncrement };
2741
yield return new object[] { msg,
RightToLeft
.Yes, 1, ScrollEventType.LargeDecrement, 11, ScrollEventType.LargeIncrement };
2742
yield return new object[] { msg,
RightToLeft
.Yes, 0, ScrollEventType.LargeDecrement, 10, ScrollEventType.LargeIncrement };
2744
yield return new object[] { msg,
RightToLeft
.No, 100, ScrollEventType.SmallDecrement, 99, ScrollEventType.SmallDecrement };
2745
yield return new object[] { msg,
RightToLeft
.No, 99, ScrollEventType.SmallDecrement, 98, ScrollEventType.SmallDecrement };
2746
yield return new object[] { msg,
RightToLeft
.No, 91, ScrollEventType.SmallDecrement, 90, ScrollEventType.SmallDecrement };
2747
yield return new object[] { msg,
RightToLeft
.No, 85, ScrollEventType.SmallDecrement, 84, ScrollEventType.SmallDecrement };
2748
yield return new object[] { msg,
RightToLeft
.No, 15, ScrollEventType.SmallDecrement, 14, ScrollEventType.SmallDecrement };
2749
yield return new object[] { msg,
RightToLeft
.No, 10, ScrollEventType.SmallDecrement, 9, ScrollEventType.SmallDecrement };
2750
yield return new object[] { msg,
RightToLeft
.No, 1, ScrollEventType.SmallDecrement, 0, ScrollEventType.SmallDecrement };
2751
yield return new object[] { msg,
RightToLeft
.No, 0, ScrollEventType.SmallDecrement, 0, ScrollEventType.SmallDecrement };
2752
yield return new object[] { msg,
RightToLeft
.Yes, 100, ScrollEventType.SmallIncrement, 99, ScrollEventType.SmallDecrement };
2753
yield return new object[] { msg,
RightToLeft
.Yes, 99, ScrollEventType.SmallIncrement, 98, ScrollEventType.SmallDecrement };
2754
yield return new object[] { msg,
RightToLeft
.Yes, 91, ScrollEventType.SmallIncrement, 90, ScrollEventType.SmallDecrement };
2755
yield return new object[] { msg,
RightToLeft
.Yes, 85, ScrollEventType.SmallIncrement, 84, ScrollEventType.SmallDecrement };
2756
yield return new object[] { msg,
RightToLeft
.Yes, 15, ScrollEventType.SmallIncrement, 14, ScrollEventType.SmallDecrement };
2757
yield return new object[] { msg,
RightToLeft
.Yes, 10, ScrollEventType.SmallIncrement, 9, ScrollEventType.SmallDecrement };
2758
yield return new object[] { msg,
RightToLeft
.Yes, 1, ScrollEventType.SmallIncrement, 0, ScrollEventType.SmallDecrement };
2759
yield return new object[] { msg,
RightToLeft
.Yes, 0, ScrollEventType.SmallIncrement, 0, ScrollEventType.SmallDecrement };
2761
yield return new object[] { msg,
RightToLeft
.No, 100, ScrollEventType.LargeDecrement, 90, ScrollEventType.LargeDecrement };
2762
yield return new object[] { msg,
RightToLeft
.No, 99, ScrollEventType.LargeDecrement, 89, ScrollEventType.LargeDecrement };
2763
yield return new object[] { msg,
RightToLeft
.No, 91, ScrollEventType.LargeDecrement, 81, ScrollEventType.LargeDecrement };
2764
yield return new object[] { msg,
RightToLeft
.No, 85, ScrollEventType.LargeDecrement, 75, ScrollEventType.LargeDecrement };
2765
yield return new object[] { msg,
RightToLeft
.No, 15, ScrollEventType.LargeDecrement, 5, ScrollEventType.LargeDecrement };
2766
yield return new object[] { msg,
RightToLeft
.No, 10, ScrollEventType.LargeDecrement, 0, ScrollEventType.LargeDecrement };
2767
yield return new object[] { msg,
RightToLeft
.No, 1, ScrollEventType.LargeDecrement, 0, ScrollEventType.LargeDecrement };
2768
yield return new object[] { msg,
RightToLeft
.No, 0, ScrollEventType.LargeDecrement, 0, ScrollEventType.LargeDecrement };
2769
yield return new object[] { msg,
RightToLeft
.Yes, 100, ScrollEventType.LargeIncrement, 90, ScrollEventType.LargeDecrement };
2770
yield return new object[] { msg,
RightToLeft
.Yes, 99, ScrollEventType.LargeIncrement, 89, ScrollEventType.LargeDecrement };
2771
yield return new object[] { msg,
RightToLeft
.Yes, 91, ScrollEventType.LargeIncrement, 81, ScrollEventType.LargeDecrement };
2772
yield return new object[] { msg,
RightToLeft
.Yes, 85, ScrollEventType.LargeIncrement, 75, ScrollEventType.LargeDecrement };
2773
yield return new object[] { msg,
RightToLeft
.Yes, 15, ScrollEventType.LargeIncrement, 5, ScrollEventType.LargeDecrement };
2774
yield return new object[] { msg,
RightToLeft
.Yes, 10, ScrollEventType.LargeIncrement, 0, ScrollEventType.LargeDecrement };
2775
yield return new object[] { msg,
RightToLeft
.Yes, 1, ScrollEventType.LargeIncrement, 0, ScrollEventType.LargeDecrement };
2776
yield return new object[] { msg,
RightToLeft
.Yes, 0, ScrollEventType.LargeIncrement, 0, ScrollEventType.LargeDecrement };
2778
yield return new object[] { msg,
RightToLeft
.No, 100, ScrollEventType.First, 0, ScrollEventType.First };
2779
yield return new object[] { msg,
RightToLeft
.No, 99, ScrollEventType.First, 0, ScrollEventType.First };
2780
yield return new object[] { msg,
RightToLeft
.No, 91, ScrollEventType.First, 0, ScrollEventType.First };
2781
yield return new object[] { msg,
RightToLeft
.No, 85, ScrollEventType.First, 0, ScrollEventType.First };
2782
yield return new object[] { msg,
RightToLeft
.No, 15, ScrollEventType.First, 0, ScrollEventType.First };
2783
yield return new object[] { msg,
RightToLeft
.No, 10, ScrollEventType.First, 0, ScrollEventType.First };
2784
yield return new object[] { msg,
RightToLeft
.No, 1, ScrollEventType.First, 0, ScrollEventType.First };
2785
yield return new object[] { msg,
RightToLeft
.No, 0, ScrollEventType.First, 0, ScrollEventType.First };
2786
yield return new object[] { msg,
RightToLeft
.Yes, 100, ScrollEventType.Last, 0, ScrollEventType.First };
2787
yield return new object[] { msg,
RightToLeft
.Yes, 99, ScrollEventType.Last, 0, ScrollEventType.First };
2788
yield return new object[] { msg,
RightToLeft
.Yes, 91, ScrollEventType.Last, 0, ScrollEventType.First };
2789
yield return new object[] { msg,
RightToLeft
.Yes, 85, ScrollEventType.Last, 0, ScrollEventType.First };
2790
yield return new object[] { msg,
RightToLeft
.Yes, 15, ScrollEventType.Last, 0, ScrollEventType.First };
2791
yield return new object[] { msg,
RightToLeft
.Yes, 10, ScrollEventType.Last, 0, ScrollEventType.First };
2792
yield return new object[] { msg,
RightToLeft
.Yes, 1, ScrollEventType.Last, 0, ScrollEventType.First };
2793
yield return new object[] { msg,
RightToLeft
.Yes, 0, ScrollEventType.Last, 0, ScrollEventType.First };
2795
yield return new object[] { msg,
RightToLeft
.No, 100, ScrollEventType.Last, 91, ScrollEventType.Last };
2796
yield return new object[] { msg,
RightToLeft
.No, 99, ScrollEventType.Last, 91, ScrollEventType.Last };
2797
yield return new object[] { msg,
RightToLeft
.No, 91, ScrollEventType.Last, 91, ScrollEventType.Last };
2798
yield return new object[] { msg,
RightToLeft
.No, 85, ScrollEventType.Last, 91, ScrollEventType.Last };
2799
yield return new object[] { msg,
RightToLeft
.No, 15, ScrollEventType.Last, 91, ScrollEventType.Last };
2800
yield return new object[] { msg,
RightToLeft
.No, 10, ScrollEventType.Last, 91, ScrollEventType.Last };
2801
yield return new object[] { msg,
RightToLeft
.No, 1, ScrollEventType.Last, 91, ScrollEventType.Last };
2802
yield return new object[] { msg,
RightToLeft
.No, 0, ScrollEventType.Last, 91, ScrollEventType.Last };
2803
yield return new object[] { msg,
RightToLeft
.Yes, 100, ScrollEventType.First, 91, ScrollEventType.Last };
2804
yield return new object[] { msg,
RightToLeft
.Yes, 99, ScrollEventType.First, 91, ScrollEventType.Last };
2805
yield return new object[] { msg,
RightToLeft
.Yes, 91, ScrollEventType.First, 91, ScrollEventType.Last };
2806
yield return new object[] { msg,
RightToLeft
.Yes, 85, ScrollEventType.First, 91, ScrollEventType.Last };
2807
yield return new object[] { msg,
RightToLeft
.Yes, 15, ScrollEventType.First, 91, ScrollEventType.Last };
2808
yield return new object[] { msg,
RightToLeft
.Yes, 10, ScrollEventType.First, 91, ScrollEventType.Last };
2809
yield return new object[] { msg,
RightToLeft
.Yes, 1, ScrollEventType.First, 91, ScrollEventType.Last };
2810
yield return new object[] { msg,
RightToLeft
.Yes, 0, ScrollEventType.First, 91, ScrollEventType.Last };
2812
yield return new object[] { msg,
RightToLeft
.No, 10, ScrollEventType.EndScroll, 10, ScrollEventType.EndScroll };
2813
yield return new object[] { msg,
RightToLeft
.Yes, 10, ScrollEventType.EndScroll, 10, ScrollEventType.EndScroll };
2814
yield return new object[] { msg,
RightToLeft
.No, 10, ScrollEventType.ThumbPosition, 10, ScrollEventType.ThumbPosition };
2815
yield return new object[] { msg,
RightToLeft
.Yes, 10, ScrollEventType.ThumbPosition, 10, ScrollEventType.ThumbPosition };
2816
yield return new object[] { msg,
RightToLeft
.No, 10, ScrollEventType.ThumbTrack, 10, ScrollEventType.ThumbTrack };
2817
yield return new object[] { msg,
RightToLeft
.Yes, 10, ScrollEventType.ThumbTrack, 10, ScrollEventType.ThumbTrack };
2818
yield return new object[] { msg,
RightToLeft
.No, 10, ScrollEventType.SmallDecrement - 1, 10, (ScrollEventType)ushort.MaxValue };
2819
yield return new object[] { msg,
RightToLeft
.Yes, 10, ScrollEventType.SmallDecrement - 1, 10, (ScrollEventType)ushort.MaxValue };
2820
yield return new object[] { msg,
RightToLeft
.No, 10, ScrollEventType.EndScroll + 1, 10, ScrollEventType.EndScroll + 1 };
2821
yield return new object[] { msg,
RightToLeft
.Yes, 10, ScrollEventType.EndScroll + 1, 10, ScrollEventType.EndScroll + 1 };
2827
public void ScrollBar_WndProc_InvokeScroll_Success(int msg,
RightToLeft
rightToLeft, int originalValue, ScrollEventType eventType, int expectedValue, ScrollEventType expectedEventType)
2930
[InlineData(
RightToLeft
.Yes, 0)]
2931
[InlineData(
RightToLeft
.Yes, 50)]
2932
[InlineData(
RightToLeft
.No, 50)]
2933
[InlineData(
RightToLeft
.No, 100)]
2934
public void HScrollBarFirstPageButtonAccessibleObject_Bounds_ReturnRectangle(
RightToLeft
rightToLeft, int value)
2944
[InlineData(
RightToLeft
.Yes, 100, 100)]
2945
[InlineData(
RightToLeft
.No, 0, 0)]
2946
[InlineData(
RightToLeft
.Yes, 0, 0)]
2947
[InlineData(
RightToLeft
.No, 100, 0)]
2948
public void HScrollBarFirstPageButtonAccessibleObject_Bounds_ReturnEmptyRectangle(
RightToLeft
rightToLeft, int maximum, int value)
2957
[InlineData(
RightToLeft
.No, 100, 0, AccessibleStates.Invisible)]
2958
[InlineData(
RightToLeft
.No, 100, 50, AccessibleStates.None)]
2959
[InlineData(
RightToLeft
.No, 100, 100, AccessibleStates.None)]
2960
[InlineData(
RightToLeft
.Yes, 100, 0, AccessibleStates.None)]
2961
[InlineData(
RightToLeft
.Yes, 100, 50, AccessibleStates.None)]
2962
[InlineData(
RightToLeft
.Yes, 100, 100, AccessibleStates.Invisible)]
2963
[InlineData(
RightToLeft
.No, 0, 0, AccessibleStates.Invisible)]
2964
[InlineData(
RightToLeft
.Yes, 0, 0, AccessibleStates.Invisible)]
2965
public void HScrollBarFirstPageButtonAccessibleObject_State_ReturnExpected(
RightToLeft
rightToLeft, int maximum, int value, AccessibleStates accessibleState)
2974
[InlineData(
RightToLeft
.No, 0)]
2975
[InlineData(
RightToLeft
.No, 50)]
2976
[InlineData(
RightToLeft
.Yes, 100)]
2977
[InlineData(
RightToLeft
.Yes, 50)]
2978
public void HScrollBarLastPageButtonAccessibleObject_Bounds_ReturnRectangle(
RightToLeft
rightToLeft, int value)
2988
[InlineData(
RightToLeft
.No, 100, 100)]
2989
[InlineData(
RightToLeft
.Yes, 100, 0)]
2990
[InlineData(
RightToLeft
.No, 0, 0)]
2991
[InlineData(
RightToLeft
.Yes, 0, 0)]
2992
public void HScrollBarLastPageButtonAccessibleObject_Bounds_ReturnEmptyRectangle(
RightToLeft
rightToLeft, int maximum, int value)
3001
[InlineData(
RightToLeft
.No, 100, 0, AccessibleStates.None)]
3002
[InlineData(
RightToLeft
.No, 100, 50, AccessibleStates.None)]
3003
[InlineData(
RightToLeft
.No, 100, 100, AccessibleStates.Invisible)]
3004
[InlineData(
RightToLeft
.Yes, 100, 0, AccessibleStates.Invisible)]
3005
[InlineData(
RightToLeft
.Yes, 100, 50, AccessibleStates.None)]
3006
[InlineData(
RightToLeft
.Yes, 100, 100, AccessibleStates.None)]
3007
[InlineData(
RightToLeft
.No, 0, 0, AccessibleStates.Invisible)]
3008
[InlineData(
RightToLeft
.Yes, 0, 0, AccessibleStates.Invisible)]
3009
public void HScrollBarLastPageButtonAccessibleObject_State_ReturnExpected(
RightToLeft
rightToLeft, int maximum, int value, AccessibleStates accessibleState)
3018
[InlineData(
RightToLeft
.No, 100, 0)]
3019
[InlineData(
RightToLeft
.Yes, 100, 0)]
3020
[InlineData(
RightToLeft
.No, 0, 0)]
3021
[InlineData(
RightToLeft
.Yes, 0, 0)]
3022
public void VScrollBarFirstPageButtonAccessibleObject_Bounds_ReturnEmptyRectangle(
RightToLeft
rightToLeft, int maximum, int value)
3031
[InlineData(
RightToLeft
.No, 0)]
3032
[InlineData(
RightToLeft
.No, 50)]
3033
[InlineData(
RightToLeft
.Yes, 0)]
3034
[InlineData(
RightToLeft
.Yes, 50)]
3035
public void VScrollBarLastPageButtonAccessibleObject_Bounds_ReturnRectangle(
RightToLeft
rightToLeft, int value)
3045
[InlineData(
RightToLeft
.No, 100, 100)]
3046
[InlineData(
RightToLeft
.Yes, 100, 100)]
3047
[InlineData(
RightToLeft
.No, 0, 0)]
3048
[InlineData(
RightToLeft
.Yes, 0, 0)]
3049
public void VScrollBarLastPageButtonAccessibleObject_Bounds_ReturnEmptyRectangle(
RightToLeft
rightToLeft, int maximum, int value)
3058
[InlineData(
RightToLeft
.No, 100, 0, AccessibleStates.None)]
3059
[InlineData(
RightToLeft
.No, 100, 50, AccessibleStates.None)]
3060
[InlineData(
RightToLeft
.No, 100, 100, AccessibleStates.Invisible)]
3061
[InlineData(
RightToLeft
.Yes, 100, 0, AccessibleStates.None)]
3062
[InlineData(
RightToLeft
.Yes, 100, 50, AccessibleStates.None)]
3063
[InlineData(
RightToLeft
.Yes, 100, 100, AccessibleStates.Invisible)]
3064
[InlineData(
RightToLeft
.No, 0, 0, AccessibleStates.Invisible)]
3065
[InlineData(
RightToLeft
.Yes, 0, 0, AccessibleStates.Invisible)]
3066
public void VScrollBarLastPageButtonAccessibleObject_State_ReturnsExpected(
RightToLeft
rightToLeft, int maximum, int value, AccessibleStates accessibleState)
3075
[InlineData(
RightToLeft
.No, 50)]
3076
[InlineData(
RightToLeft
.Yes, 50)]
3077
[InlineData(
RightToLeft
.No, 100)]
3078
[InlineData(
RightToLeft
.Yes, 100)]
3079
public void VScrollBarFirstPageButtonAccessibleObject_Bounds_ReturnRectangle(
RightToLeft
rightToLeft, int value)
3089
[InlineData(
RightToLeft
.No, 100, 0, AccessibleStates.Invisible)]
3090
[InlineData(
RightToLeft
.No, 100, 50, AccessibleStates.None)]
3091
[InlineData(
RightToLeft
.No, 100, 100, AccessibleStates.None)]
3092
[InlineData(
RightToLeft
.Yes, 100, 0, AccessibleStates.Invisible)]
3093
[InlineData(
RightToLeft
.Yes, 100, 50, AccessibleStates.None)]
3094
[InlineData(
RightToLeft
.Yes, 100, 100, AccessibleStates.None)]
3095
[InlineData(
RightToLeft
.No, 0, 0, AccessibleStates.Invisible)]
3096
[InlineData(
RightToLeft
.Yes, 0, 0, AccessibleStates.Invisible)]
3097
public void VScrollBarFirstPageButtonAccessibleObject_State_ReturnsExpected(
RightToLeft
rightToLeft, int maximum, int value, AccessibleStates accessibleState)
3105
private void SetVScrollBar(VScrollBar vScrollBar,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
3124
private void SetHScrollBar(HScrollBar hScrollBar,
RightToLeft
rightToLeft, int minimum, int maximum, int value)
System\Windows\Forms\SplitterPanelTests.cs (1)
89
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\SplitterTests.cs (1)
88
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\StatusStripTests.cs (63)
130
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
203
yield return new object[] { ToolStripLayoutStyle.Flow,
RightToLeft
.Yes, new Padding(14, 0, 1, 0) };
204
yield return new object[] { ToolStripLayoutStyle.Flow,
RightToLeft
.No, new Padding(1, 0, 14, 0) };
205
yield return new object[] { ToolStripLayoutStyle.Flow,
RightToLeft
.Inherit, new Padding(1, 0, 14, 0) };
207
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow,
RightToLeft
.Yes, new Padding(14, 0, 1, 0) };
208
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow,
RightToLeft
.No, new Padding(1, 0, 14, 0) };
209
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow,
RightToLeft
.Inherit, new Padding(1, 0, 14, 0) };
211
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
RightToLeft
.Yes, new Padding(14, 0, 1, 0) };
212
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
RightToLeft
.No, new Padding(1, 0, 14, 0) };
213
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
RightToLeft
.Inherit, new Padding(1, 0, 14, 0) };
215
yield return new object[] { ToolStripLayoutStyle.Table,
RightToLeft
.Yes, new Padding(14, 0, 1, 0) };
216
yield return new object[] { ToolStripLayoutStyle.Table,
RightToLeft
.No, new Padding(1, 0, 14, 0) };
217
yield return new object[] { ToolStripLayoutStyle.Table,
RightToLeft
.Inherit, new Padding(1, 0, 14, 0) };
219
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow,
RightToLeft
.Yes, new Padding(1, 3, 1, 22) };
220
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow,
RightToLeft
.No, new Padding(1, 3, 1, 22) };
221
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow,
RightToLeft
.Inherit, new Padding(1, 3, 1, 22) };
226
public void StatusStrip_DefaultPadding_Get_ReturnsExpected(ToolStripLayoutStyle layoutStyle,
RightToLeft
rightToLeft, Padding expected)
621
yield return new object[] { true, layoutStyle,
RightToLeft
.Yes, new Rectangle(0, 0, 12, 22) };
622
yield return new object[] { true, layoutStyle,
RightToLeft
.No, new Rectangle(188, 0, 12, 22) };
623
yield return new object[] { true, layoutStyle,
RightToLeft
.Inherit, new Rectangle(188, 0, 12, 22) };
624
yield return new object[] { false, layoutStyle,
RightToLeft
.Yes, Rectangle.Empty };
625
yield return new object[] { false, layoutStyle,
RightToLeft
.No, Rectangle.Empty };
626
yield return new object[] { false, layoutStyle,
RightToLeft
.Inherit, Rectangle.Empty };
632
public void StatusStrip_SizeGripBounds_Get_ReturnsExpected(bool sizingGrip, ToolStripLayoutStyle layoutStyle,
RightToLeft
rightToLeft, Rectangle expected)
647
yield return new object[] { true, layoutStyle,
RightToLeft
.Yes, new Rectangle(0, 10, 12, 22) };
648
yield return new object[] { true, layoutStyle,
RightToLeft
.No, new Rectangle(198, 10, 12, 22) };
649
yield return new object[] { true, layoutStyle,
RightToLeft
.Inherit, new Rectangle(198, 10, 12, 22) };
650
yield return new object[] { false, layoutStyle,
RightToLeft
.Yes, Rectangle.Empty };
651
yield return new object[] { false, layoutStyle,
RightToLeft
.No, Rectangle.Empty };
652
yield return new object[] { false, layoutStyle,
RightToLeft
.Inherit, Rectangle.Empty };
658
public void StatusStrip_SizeGripBounds_GetLargeSize_ReturnsExpected(bool sizingGrip, ToolStripLayoutStyle layoutStyle,
RightToLeft
rightToLeft, Rectangle expected)
674
yield return new object[] { true, layoutStyle,
RightToLeft
.Yes, new Rectangle(0, 0, 12, 12) };
675
yield return new object[] { true, layoutStyle,
RightToLeft
.No, new Rectangle(178, 0, 12, 12) };
676
yield return new object[] { true, layoutStyle,
RightToLeft
.Inherit, new Rectangle(178, 0, 12, 12) };
677
yield return new object[] { false, layoutStyle,
RightToLeft
.Yes, Rectangle.Empty };
678
yield return new object[] { false, layoutStyle,
RightToLeft
.No, Rectangle.Empty };
679
yield return new object[] { false, layoutStyle,
RightToLeft
.Inherit, Rectangle.Empty };
685
public void StatusStrip_SizeGripBounds_GetSmallSize_ReturnsExpected(bool sizingGrip, ToolStripLayoutStyle layoutStyle,
RightToLeft
rightToLeft, Rectangle expected)
724
yield return new object[] {
RightToLeft
.Yes, true, 1, 0 };
725
yield return new object[] {
RightToLeft
.No, true, 0, 0 };
726
yield return new object[] {
RightToLeft
.Inherit, true, 0, 0 };
728
yield return new object[] {
RightToLeft
.Yes, false, 0, 1 };
729
yield return new object[] {
RightToLeft
.No, false, 0, 0 };
730
yield return new object[] {
RightToLeft
.Inherit, false, 0, 0 };
735
public void StatusStrip_SizingGrip_SetRightToLeft_GetReturnsExpected(
RightToLeft
rightToLeft, bool value, int expectedChildrenCallCount1, int expectedChildrenCallCount2)
761
foreach (
RightToLeft
rightToLeft in Enum.GetValues(typeof(
RightToLeft
)))
770
public void StatusStrip_SizingGrip_SetRightToLeftNonReadOnlyControls_GetReturnsExpected(
RightToLeft
rightToLeft, bool value)
892
foreach (
RightToLeft
rightToLeft in Enum.GetValues(typeof(
RightToLeft
)))
901
public void StatusStrip_Dispose_Invoke_Success(
RightToLeft
rightToLeft, bool sizingGrip)
954
public void StatusStrip_Dispose_InvokeDisposing_Success(
RightToLeft
rightToLeft, bool sizingGrip)
1007
yield return new object[] {
RightToLeft
.Yes, true, 1 };
1008
yield return new object[] {
RightToLeft
.No, true, 0 };
1009
yield return new object[] {
RightToLeft
.Inherit, true, 0 };
1011
yield return new object[] {
RightToLeft
.Yes, false, 0 };
1012
yield return new object[] {
RightToLeft
.No, false, 0 };
1013
yield return new object[] {
RightToLeft
.Inherit, false, 0 };
1018
public void StatusStrip_Dispose_InvokeNotDisposing_Success(
RightToLeft
rightToLeft, bool sizingGrip, int expectedChildrenCallCount1)
1173
RightToLeft =
RightToLeft
.Yes
1199
foreach (
RightToLeft
rightToLeft in Enum.GetValues(typeof(
RightToLeft
)))
1208
public void StatusStrip_OnPaintBackground_Invoke_Success(
RightToLeft
rightToLeft, bool sizingGrip)
System\Windows\Forms\TabControlTests.cs (38)
92
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
333
[InlineData(
RightToLeft
.Inherit, true, 0x56010800, 0x0)]
334
[InlineData(
RightToLeft
.No, true, 0x56010800, 0x0)]
335
[InlineData(
RightToLeft
.Yes, true, 0x56010800, 0x500000)]
336
[InlineData(
RightToLeft
.Inherit, false, 0x56010800, 0x0)]
337
[InlineData(
RightToLeft
.No, false, 0x56010800, 0x0)]
338
[InlineData(
RightToLeft
.Yes, false, 0x56010800, 0x7000)]
339
public void TabControl_CreateParams_GetRightToLeft_ReturnsExpected(
RightToLeft
rightToLeft, bool rightToLeftLayout, int expectedStyle, int expectedExStyle)
1826
[InlineData(
RightToLeft
.Yes, true, 1)]
1827
[InlineData(
RightToLeft
.Yes, false, 0)]
1828
[InlineData(
RightToLeft
.No, true, 1)]
1829
[InlineData(
RightToLeft
.No, false, 0)]
1830
[InlineData(
RightToLeft
.Inherit, true, 1)]
1831
[InlineData(
RightToLeft
.Inherit, false, 0)]
1832
public void TabControl_RightToLeftLayout_Set_GetReturnsExpected(
RightToLeft
rightToLeft, bool value, int expectedLayoutCallCount)
1866
[InlineData(
RightToLeft
.Yes, true, 1, 1, 2)]
1867
[InlineData(
RightToLeft
.Yes, false, 0, 0, 1)]
1868
[InlineData(
RightToLeft
.No, true, 1, 0, 0)]
1869
[InlineData(
RightToLeft
.No, false, 0, 0, 0)]
1870
[InlineData(
RightToLeft
.Inherit, true, 1, 0, 0)]
1871
[InlineData(
RightToLeft
.Inherit, false, 0, 0, 0)]
1872
public void TabControl_RightToLeftLayout_SetWithHandle_GetReturnsExpected(
RightToLeft
rightToLeft, bool value, int expectedLayoutCallCount, int expectedCreatedCallCount1, int expectedCreatedCallCount2)
1964
RightToLeft =
RightToLeft
.Yes
4495
yield return new object[] {
RightToLeft
.Yes, null };
4496
yield return new object[] {
RightToLeft
.Yes, new EventArgs() };
4497
yield return new object[] {
RightToLeft
.No, null };
4498
yield return new object[] {
RightToLeft
.No, new EventArgs() };
4499
yield return new object[] {
RightToLeft
.Inherit, null };
4500
yield return new object[] {
RightToLeft
.Inherit, new EventArgs() };
4505
public void TabControl_OnRightToLeftLayoutChanged_Invoke_CallsRightToLeftLayoutChanged(
RightToLeft
rightToLeft, EventArgs eventArgs)
4534
yield return new object[] {
RightToLeft
.Yes, null, 1 };
4535
yield return new object[] {
RightToLeft
.Yes, new EventArgs(), 1 };
4536
yield return new object[] {
RightToLeft
.No, null, 0 };
4537
yield return new object[] {
RightToLeft
.No, new EventArgs(), 0 };
4538
yield return new object[] {
RightToLeft
.Inherit, null, 0 };
4539
yield return new object[] {
RightToLeft
.Inherit, new EventArgs(), 0 };
4544
public void TabControl_OnRightToLeftLayoutChanged_InvokeWithHandle_CallsRightToLeftLayoutChanged(
RightToLeft
rightToLeft, EventArgs eventArgs, int expectedCreatedCallCount)
4589
RightToLeft =
RightToLeft
.Yes
System\Windows\Forms\TableLayoutPanelTests.cs (5)
108
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
1410
foreach (
RightToLeft
rightToLeft in Enum.GetValues(typeof(
RightToLeft
)))
1427
public void TableLayoutPanel_OnPaintBackground_InvokeEmpty_Success(
RightToLeft
rightToLeft, TableLayoutPanelCellBorderStyle cellBorderStyle, bool hScroll, bool vScroll)
1467
public void TableLayoutPanel_OnPaintBackground_InvokeNotEmpty_Success(
RightToLeft
rightToLeft, TableLayoutPanelCellBorderStyle cellBorderStyle, bool hScroll, bool vScroll)
System\Windows\Forms\TabPageTests.cs (2)
105
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
214
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (6)
87
[InlineData(
RightToLeft
.Yes, true)]
88
[InlineData(
RightToLeft
.No, false)]
89
public void TextBoxBaseUiaTextProvider_IsReadingRTL_ReturnsCorrectValue(
RightToLeft
rightToLeft, bool expectedResult)
101
[InlineData(
RightToLeft
.Yes)]
102
[InlineData(
RightToLeft
.No)]
103
public void TextBoxBaseUiaTextProvider_IsReadingRTL_ReturnsFalse_WithoutHandle(
RightToLeft
rightToLeft)
System\Windows\Forms\ToolStripButtonTests.cs (38)
78
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
159
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
246
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
336
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
424
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
522
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
1225
yield return new object[] { ContentAlignment.MiddleCenter,
RightToLeft
.No, ToolStripItemDisplayStyle.None, 0, 0, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1226
yield return new object[] { ContentAlignment.MiddleCenter,
RightToLeft
.No, ToolStripItemDisplayStyle.Image, 1, 0, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1227
yield return new object[] { ContentAlignment.MiddleCenter,
RightToLeft
.No, ToolStripItemDisplayStyle.ImageAndText, 1, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1229
yield return new object[] { ContentAlignment.TopLeft,
RightToLeft
.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Top | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1230
yield return new object[] { ContentAlignment.TopLeft,
RightToLeft
.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Top | TextFormatFlags.HidePrefix };
1231
yield return new object[] { ContentAlignment.TopLeft,
RightToLeft
.No, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Top | TextFormatFlags.HidePrefix };
1232
yield return new object[] { ContentAlignment.TopCenter,
RightToLeft
.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Top | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1233
yield return new object[] { ContentAlignment.TopCenter,
RightToLeft
.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Top | TextFormatFlags.HidePrefix };
1234
yield return new object[] { ContentAlignment.TopCenter,
RightToLeft
.No, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Top | TextFormatFlags.HidePrefix };
1235
yield return new object[] { ContentAlignment.TopRight,
RightToLeft
.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Top | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1236
yield return new object[] { ContentAlignment.TopRight,
RightToLeft
.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Top | TextFormatFlags.HidePrefix };
1237
yield return new object[] { ContentAlignment.TopRight,
RightToLeft
.No, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Top | TextFormatFlags.HidePrefix };
1239
yield return new object[] { ContentAlignment.MiddleLeft,
RightToLeft
.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1240
yield return new object[] { ContentAlignment.MiddleLeft,
RightToLeft
.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1241
yield return new object[] { ContentAlignment.MiddleLeft,
RightToLeft
.No, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1242
yield return new object[] { ContentAlignment.MiddleCenter,
RightToLeft
.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1243
yield return new object[] { ContentAlignment.MiddleCenter,
RightToLeft
.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1244
yield return new object[] { ContentAlignment.MiddleCenter,
RightToLeft
.No, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1245
yield return new object[] { ContentAlignment.MiddleRight,
RightToLeft
.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1246
yield return new object[] { ContentAlignment.MiddleRight,
RightToLeft
.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1247
yield return new object[] { ContentAlignment.MiddleRight,
RightToLeft
.No, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1249
yield return new object[] { ContentAlignment.BottomLeft,
RightToLeft
.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1250
yield return new object[] { ContentAlignment.BottomLeft,
RightToLeft
.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix };
1251
yield return new object[] { ContentAlignment.BottomLeft,
RightToLeft
.No, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix };
1252
yield return new object[] { ContentAlignment.BottomCenter,
RightToLeft
.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1253
yield return new object[] { ContentAlignment.BottomCenter,
RightToLeft
.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix };
1254
yield return new object[] { ContentAlignment.BottomCenter,
RightToLeft
.No, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix };
1255
yield return new object[] { ContentAlignment.BottomRight,
RightToLeft
.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1256
yield return new object[] { ContentAlignment.BottomRight,
RightToLeft
.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix };
1257
yield return new object[] { ContentAlignment.BottomRight,
RightToLeft
.No, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix };
1262
public void ToolStripButton_OnPaint_InvokeWithOwner_DoesNotCallPaint(ContentAlignment textAlign,
RightToLeft
rightToLeft, ToolStripItemDisplayStyle displayStyle, int expectedRenderItemImageCallCount, int expectedRenderItemTextCallCount, TextFormatFlags expectedTextFormat)
1353
public void ToolStripButton_OnPaint_InvokeWithOwnerCantShowKeyboardCues_DoesNotCallPaint(ContentAlignment textAlign,
RightToLeft
rightToLeft, ToolStripItemDisplayStyle displayStyle, int expectedRenderItemImageCallCount, int expectedRenderItemTextCallCount, TextFormatFlags expectedTextFormat)
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
105
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\ToolStripControlHostTests.cs (41)
34
RightToLeft =
RightToLeft
.Yes,
643
c.RightToLeft =
RightToLeft
.Yes;
644
Assert.Equal(
RightToLeft
.Yes, c.RightToLeft);
645
Assert.Equal(
RightToLeft
.Yes, item.RightToLeft);
1550
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
1554
[EnumData<
RightToLeft
>]
1555
public void ToolStripControlHost_RightToLeft_SetDisposed_Nop(
RightToLeft
value)
1562
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
1563
Assert.Equal(
RightToLeft
.No, c.RightToLeft);
1568
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
1569
Assert.Equal(
RightToLeft
.No, c.RightToLeft);
1575
public void ToolStripControlHost_RightToLeft_Set_GetReturnsExpected(
RightToLeft
value,
RightToLeft
expected)
1608
item.RightToLeft =
RightToLeft
.Yes;
1609
Assert.Equal(
RightToLeft
.Yes, item.RightToLeft);
1613
item.RightToLeft =
RightToLeft
.Yes;
1614
Assert.Equal(
RightToLeft
.Yes, item.RightToLeft);
1618
item.RightToLeft =
RightToLeft
.No;
1619
Assert.Equal(
RightToLeft
.No, item.RightToLeft);
1624
item.RightToLeft =
RightToLeft
.Yes;
1625
Assert.Equal(
RightToLeft
.Yes, item.RightToLeft);
1630
[InvalidEnumData<
RightToLeft
>]
1631
public void ToolStripControlHost_RightToLeft_SetInvalid_ThrowsInvalidEnumArgumentException(
RightToLeft
value)
1646
item.RightToLeft =
RightToLeft
.Yes;
1647
Assert.Equal(
RightToLeft
.Yes, item.RightToLeft);
1650
item.RightToLeft =
RightToLeft
.No;
1651
Assert.Equal(
RightToLeft
.No, item.RightToLeft);
1654
item.RightToLeft =
RightToLeft
.Inherit;
1655
Assert.Equal(
RightToLeft
.No, item.RightToLeft);
1658
item.RightToLeft =
RightToLeft
.No;
1659
Assert.Equal(
RightToLeft
.No, item.RightToLeft);
1663
Assert.Equal(
RightToLeft
.No, item.RightToLeft);
1689
item.RightToLeft =
RightToLeft
.Yes;
1690
Assert.Equal(
RightToLeft
.Yes, item.RightToLeft);
1693
item.RightToLeft =
RightToLeft
.No;
1694
Assert.Equal(
RightToLeft
.No, item.RightToLeft);
1697
item.RightToLeft =
RightToLeft
.Inherit;
1698
Assert.Equal(
RightToLeft
.No, item.RightToLeft);
1701
item.RightToLeft =
RightToLeft
.No;
1702
Assert.Equal(
RightToLeft
.No, item.RightToLeft);
1706
Assert.Equal(
RightToLeft
.No, item.RightToLeft);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
78
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
167
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
266
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
374
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
System\Windows\Forms\ToolStripDropDownTests.cs (195)
137
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
1112
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1113
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1114
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1115
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1116
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1117
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1118
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1119
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1120
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1121
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1122
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1123
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1124
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1125
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1126
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1128
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1129
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1130
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1131
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1132
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1133
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1134
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1135
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1136
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1137
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1138
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1139
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1140
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1141
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1142
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1144
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1145
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1146
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1147
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1148
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1149
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1150
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1151
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1152
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1153
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1154
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1155
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1156
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1157
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1158
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1160
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1161
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1162
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1163
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1164
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1165
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1166
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1167
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1168
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1169
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1170
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1171
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1172
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1173
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1174
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1176
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1177
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1178
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1179
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1180
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1181
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1182
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1183
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1184
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1185
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1186
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1187
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1188
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1189
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1190
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1195
public void ToolStripDropDown_DefaultDropDownDirection_Get_ReturnsExpected(ToolStripLayoutStyle layoutStyle, DockStyle dock,
RightToLeft
rightToLeft, ToolStripDropDownDirection expected)
1208
public void ToolStripDropDown_DefaultDropDownDirection_GetDesignMode_ReturnsExpected(ToolStripLayoutStyle layoutStyle, DockStyle dock,
RightToLeft
rightToLeft, ToolStripDropDownDirection expected)
1237
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1238
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1239
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1240
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Left,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1241
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Left,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1242
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Left,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1243
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Right,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1244
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Right,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1245
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Right,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1246
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Top,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1247
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Top,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1248
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Top,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1249
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Bottom,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1250
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Bottom,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1251
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Bottom,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1253
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1254
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1255
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1256
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1257
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1258
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1259
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1260
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1261
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1262
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1263
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1264
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1265
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1266
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1267
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1269
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1270
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1271
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1272
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1273
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1274
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1275
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1276
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1277
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1278
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1279
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1280
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1281
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1282
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1283
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1285
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1286
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1287
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1288
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Right,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1289
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Right,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1290
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Right,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1291
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Left,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1292
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Left,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1293
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Left,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1294
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Top,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1295
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Top,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1296
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Top,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1297
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Bottom,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1298
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Bottom,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1299
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Bottom,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1301
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1302
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1303
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1304
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1305
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1306
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1307
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1308
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1309
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1310
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1311
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1312
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1313
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1314
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1315
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1321
public void ToolStripDropDown_DefaultDropDownDirection_GetWithParent_ReturnsExpected(DockStyle parentDock, ToolStripLayoutStyle layoutStyle, DockStyle dock,
RightToLeft
rightToLeft, ToolStripDropDownDirection expected)
1340
public void ToolStripDropDown_DefaultDropDownDirection_GetDesignModeWithParent_ReturnsExpected(DockStyle parentDock, ToolStripLayoutStyle layoutStyle, DockStyle dock,
RightToLeft
rightToLeft, ToolStripDropDownDirection expected)
2329
RightToLeft =
RightToLeft
.Yes
2333
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
2335
control.RightToLeft =
RightToLeft
.No;
2336
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
2344
RightToLeft =
RightToLeft
.Yes
2350
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
2352
control.RightToLeft =
RightToLeft
.No;
2353
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
2361
RightToLeft =
RightToLeft
.Yes
2365
RightToLeft =
RightToLeft
.No
2372
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
2376
[InlineData(
RightToLeft
.Yes,
RightToLeft
.Yes, 1)]
2377
[InlineData(
RightToLeft
.No,
RightToLeft
.No, 0)]
2378
[InlineData(
RightToLeft
.Inherit,
RightToLeft
.No, 0)]
2379
public void ToolStripDropDown_RightToLeft_Set_GetReturnsExpected(
RightToLeft
value,
RightToLeft
expected, int expectedLayoutCallCount)
2417
control.RightToLeft =
RightToLeft
.Yes;
2418
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
2422
control.RightToLeft =
RightToLeft
.Yes;
2423
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
2427
control.RightToLeft =
RightToLeft
.Inherit;
2428
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
2433
control.RightToLeft =
RightToLeft
.Yes;
2434
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
2439
[InvalidEnumData<
RightToLeft
>]
2440
public void ToolStripDropDown_RightToLeft_SetInvalid_ThrowsInvalidEnumArgumentException(
RightToLeft
value)
3092
RightToLeft =
RightToLeft
.Yes
3105
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
3122
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
3135
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
3373
RightToLeft =
RightToLeft
.Yes
3386
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
3403
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
3416
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
3432
RightToLeft =
RightToLeft
.Yes
3449
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
3462
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (3)
38
RightToLeft =
RightToLeft
.Yes,
55
RightToLeft =
RightToLeft
.Yes
79
RightToLeft =
RightToLeft
.Yes,
System\Windows\Forms\ToolStripItemTests.cs (216)
77
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
162
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
257
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
6538
[InlineData(
RightToLeft
.Yes,
RightToLeft
.Yes,
RightToLeft
.Yes, 0)]
6539
[InlineData(
RightToLeft
.Yes,
RightToLeft
.No,
RightToLeft
.No, 0)]
6540
[InlineData(
RightToLeft
.Yes,
RightToLeft
.Inherit,
RightToLeft
.Yes, 1)]
6541
[InlineData(
RightToLeft
.No,
RightToLeft
.Yes,
RightToLeft
.Yes, 0)]
6542
[InlineData(
RightToLeft
.No,
RightToLeft
.No,
RightToLeft
.No, 0)]
6543
[InlineData(
RightToLeft
.No,
RightToLeft
.Inherit,
RightToLeft
.No, 1)]
6544
[InlineData(
RightToLeft
.Inherit,
RightToLeft
.Yes,
RightToLeft
.Yes, 0)]
6545
[InlineData(
RightToLeft
.Inherit,
RightToLeft
.No,
RightToLeft
.No, 0)]
6546
[InlineData(
RightToLeft
.Inherit,
RightToLeft
.Inherit,
RightToLeft
.No, 1)]
6547
public void ToolStripItem_Owner_SetWithRightToLeft_CallsRightToLeftChanged(
RightToLeft
ownerRightToLeft,
RightToLeft
rightToLeft,
RightToLeft
expectedRightToLeft, int expectedRightToLeftChangedCallCount)
7095
[InlineData(
RightToLeft
.Inherit,
RightToLeft
.No)]
7096
[InlineData(
RightToLeft
.Yes,
RightToLeft
.Yes)]
7097
[InlineData(
RightToLeft
.No,
RightToLeft
.No)]
7098
public void ToolStripItem_RightToLeft_GetWithOwner_ReturnsExpected(
RightToLeft
ownerRightToLeft,
RightToLeft
expected)
7112
[InlineData(
RightToLeft
.Inherit,
RightToLeft
.No)]
7113
[InlineData(
RightToLeft
.Yes,
RightToLeft
.Yes)]
7114
[InlineData(
RightToLeft
.No,
RightToLeft
.No)]
7115
public void ToolStripItem_RightToLeft_GetWithParent_ReturnsExpected(
RightToLeft
parentRightToLeft,
RightToLeft
expected)
7133
RightToLeft =
RightToLeft
.Yes
7137
RightToLeft =
RightToLeft
.No
7144
Assert.Equal(
RightToLeft
.Yes, item.RightToLeft);
7148
[EnumData<
RightToLeft
>]
7149
public void ToolStripItem_RightToLeft_Set_GetReturnsExpected(
RightToLeft
value)
7164
yield return new object[] {
RightToLeft
.Yes,
RightToLeft
.Yes,
RightToLeft
.Yes, 0 };
7165
yield return new object[] {
RightToLeft
.Yes,
RightToLeft
.No,
RightToLeft
.No, 1 };
7166
yield return new object[] {
RightToLeft
.Yes,
RightToLeft
.Inherit,
RightToLeft
.Yes, 0 };
7167
yield return new object[] {
RightToLeft
.No,
RightToLeft
.Yes,
RightToLeft
.Yes, 1 };
7168
yield return new object[] {
RightToLeft
.No,
RightToLeft
.No,
RightToLeft
.No, 0 };
7169
yield return new object[] {
RightToLeft
.No,
RightToLeft
.Inherit,
RightToLeft
.No, 0 };
7170
yield return new object[] {
RightToLeft
.Inherit,
RightToLeft
.Yes,
RightToLeft
.Yes, 1 };
7171
yield return new object[] {
RightToLeft
.Inherit,
RightToLeft
.No,
RightToLeft
.No, 0 };
7172
yield return new object[] {
RightToLeft
.Inherit,
RightToLeft
.Inherit,
RightToLeft
.No, 0 };
7177
public void ToolStripItem_RightToLeft_SetWithOwner_GetReturnsExpected(
RightToLeft
ownerRightToLeft,
RightToLeft
value,
RightToLeft
expected, int expectedOwnerLayoutCallCount)
7219
public void ToolStripItem_RightToLeft_SetWithOwnerWithHandle_GetReturnsExpected(
RightToLeft
ownerRightToLeft,
RightToLeft
value,
RightToLeft
expected, int expectedOwnerLayoutCallCount)
7274
yield return new object[] {
RightToLeft
.Yes,
RightToLeft
.Yes,
RightToLeft
.Yes };
7275
yield return new object[] {
RightToLeft
.Yes,
RightToLeft
.No,
RightToLeft
.No };
7276
yield return new object[] {
RightToLeft
.Yes,
RightToLeft
.Inherit,
RightToLeft
.Yes };
7277
yield return new object[] {
RightToLeft
.No,
RightToLeft
.Yes,
RightToLeft
.Yes };
7278
yield return new object[] {
RightToLeft
.No,
RightToLeft
.No,
RightToLeft
.No };
7279
yield return new object[] {
RightToLeft
.No,
RightToLeft
.Inherit,
RightToLeft
.No };
7280
yield return new object[] {
RightToLeft
.Inherit,
RightToLeft
.Yes,
RightToLeft
.Yes };
7281
yield return new object[] {
RightToLeft
.Inherit,
RightToLeft
.No,
RightToLeft
.No };
7282
yield return new object[] {
RightToLeft
.Inherit,
RightToLeft
.Inherit,
RightToLeft
.No };
7287
public void ToolStripItem_RightToLeft_SetWithParent_GetReturnsExpected(
RightToLeft
parentRightToLeft,
RightToLeft
value,
RightToLeft
expected)
7322
public void ToolStripItem_RightToLeft_SetWithParentWithHandle_GetReturnsExpected(
RightToLeft
parentRightToLeft,
RightToLeft
value,
RightToLeft
expected)
7382
item.RightToLeft =
RightToLeft
.Yes;
7383
Assert.Equal(
RightToLeft
.Yes, item.RightToLeft);
7387
item.RightToLeft =
RightToLeft
.Yes;
7388
Assert.Equal(
RightToLeft
.Yes, item.RightToLeft);
7392
item.RightToLeft =
RightToLeft
.No;
7393
Assert.Equal(
RightToLeft
.No, item.RightToLeft);
7398
item.RightToLeft =
RightToLeft
.Yes;
7399
Assert.Equal(
RightToLeft
.Yes, item.RightToLeft);
7404
[InvalidEnumData<
RightToLeft
>]
7405
public void ToolStripItem_RightToLeft_SetInvalid_ThrowsInvalidEnumArgumentException(
RightToLeft
value)
7418
item.RightToLeft =
RightToLeft
.Yes;
7419
Assert.Equal(
RightToLeft
.Yes, item.RightToLeft);
7422
item.RightToLeft =
RightToLeft
.No;
7423
Assert.Equal(
RightToLeft
.No, item.RightToLeft);
7426
item.RightToLeft =
RightToLeft
.Inherit;
7427
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
7430
item.RightToLeft =
RightToLeft
.No;
7431
Assert.Equal(
RightToLeft
.No, item.RightToLeft);
7435
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
7446
item.RightToLeft =
RightToLeft
.Yes;
7447
Assert.Equal(
RightToLeft
.Yes, item.RightToLeft);
7450
item.RightToLeft =
RightToLeft
.No;
7451
Assert.Equal(
RightToLeft
.No, item.RightToLeft);
7454
item.RightToLeft =
RightToLeft
.Inherit;
7455
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
7458
item.RightToLeft =
RightToLeft
.No;
7459
Assert.Equal(
RightToLeft
.No, item.RightToLeft);
7463
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
12174
yield return new object[] {
RightToLeft
.Yes,
RightToLeft
.Yes, null,
RightToLeft
.Yes, 0 };
12175
yield return new object[] {
RightToLeft
.Yes,
RightToLeft
.Yes, new EventArgs(),
RightToLeft
.Yes, 0 };
12177
yield return new object[] {
RightToLeft
.Yes,
RightToLeft
.No, null,
RightToLeft
.No, 0 };
12178
yield return new object[] {
RightToLeft
.Yes,
RightToLeft
.No, new EventArgs(),
RightToLeft
.No, 0 };
12180
yield return new object[] {
RightToLeft
.Yes,
RightToLeft
.Inherit, null,
RightToLeft
.Yes, 1 };
12181
yield return new object[] {
RightToLeft
.Yes,
RightToLeft
.Inherit, new EventArgs(),
RightToLeft
.Yes, 1 };
12183
yield return new object[] {
RightToLeft
.No,
RightToLeft
.Yes, null,
RightToLeft
.Yes, 0 };
12184
yield return new object[] {
RightToLeft
.No,
RightToLeft
.Yes, new EventArgs(),
RightToLeft
.Yes, 0 };
12186
yield return new object[] {
RightToLeft
.No,
RightToLeft
.No, null,
RightToLeft
.No, 0 };
12187
yield return new object[] {
RightToLeft
.No,
RightToLeft
.No, new EventArgs(),
RightToLeft
.No, 0 };
12189
yield return new object[] {
RightToLeft
.No,
RightToLeft
.Inherit, null,
RightToLeft
.No, 1 };
12190
yield return new object[] {
RightToLeft
.No,
RightToLeft
.Inherit, new EventArgs(),
RightToLeft
.No, 1 };
12192
yield return new object[] {
RightToLeft
.Inherit,
RightToLeft
.Yes, null,
RightToLeft
.Yes, 0 };
12193
yield return new object[] {
RightToLeft
.Inherit,
RightToLeft
.Yes, new EventArgs(),
RightToLeft
.Yes, 0 };
12195
yield return new object[] {
RightToLeft
.Inherit,
RightToLeft
.No, null,
RightToLeft
.No, 0 };
12196
yield return new object[] {
RightToLeft
.Inherit,
RightToLeft
.No, new EventArgs(),
RightToLeft
.No, 0 };
12198
yield return new object[] {
RightToLeft
.Inherit,
RightToLeft
.Inherit, null,
RightToLeft
.No, 1 };
12199
yield return new object[] {
RightToLeft
.Inherit,
RightToLeft
.Inherit, new EventArgs(),
RightToLeft
.No, 1 };
12204
public void ToolStripItem_OnOwnerChanged_InvokeWithRightToLeft_CallsHandler(
RightToLeft
ownerRightToLeft,
RightToLeft
rightToLeft, EventArgs eventArgs,
RightToLeft
expectedRightToLeft, int expectedRightToLeftChangedCallCount)
12637
yield return new object[] {
RightToLeft
.Inherit, null, 1 };
12638
yield return new object[] {
RightToLeft
.Inherit, new EventArgs(), 1 };
12639
yield return new object[] {
RightToLeft
.Yes, null, 0 };
12640
yield return new object[] {
RightToLeft
.Yes, new EventArgs(), 0 };
12641
yield return new object[] {
RightToLeft
.No, null, 0 };
12642
yield return new object[] {
RightToLeft
.No, new EventArgs(), 0 };
12647
public void ToolStripItem_OnParentRightToLeftChanged_InvokeWithRightToLeft_CallsRightToLeftChange(
RightToLeft
rightToLeft, EventArgs eventArgs, int expectedCallCount)
14222
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
14225
item.RightToLeft =
RightToLeft
.Yes;
14227
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
14231
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (2)
14
yield return new object[] { new ToolStripButton() { RightToLeft =
RightToLeft
.Yes }, "text", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, TextFormatFlags.Bottom };
40
yield return new object[] { new ToolStripButton() { RightToLeft =
RightToLeft
.Yes }, "text", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, (ContentAlignment)(-1), TextFormatFlags.Default | TextFormatFlags.Bottom | TextFormatFlags.Right | TextFormatFlags.RightToLeft | TextFormatFlags.HidePrefix };
System\Windows\Forms\ToolStripMenuItemTests.cs (2)
85
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
298
RightToLeft =
RightToLeft
.Yes,
System\Windows\Forms\ToolStripPanelTests.cs (1)
102
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\ToolStripRendererTests.cs (1)
478
yield return new object[] { new StatusStrip { RightToLeft =
RightToLeft
.Yes } };
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
75
Assert.Equal(
RightToLeft
.Inherit, item.RightToLeft);
System\Windows\Forms\ToolStripTests.cs (376)
145
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
300
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
1663
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1664
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1665
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1666
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1667
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1668
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1669
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1670
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right,
RightToLeft
.No, ToolStripDropDownDirection.Left };
1671
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right,
RightToLeft
.Inherit, ToolStripDropDownDirection.Left };
1672
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1673
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1674
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1675
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom,
RightToLeft
.Yes, ToolStripDropDownDirection.AboveLeft };
1676
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom,
RightToLeft
.No, ToolStripDropDownDirection.AboveRight };
1677
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom,
RightToLeft
.Inherit, ToolStripDropDownDirection.AboveRight };
1679
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1680
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1681
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1682
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1683
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1684
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1685
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1686
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1687
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1688
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1689
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1690
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1691
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.Yes, ToolStripDropDownDirection.AboveLeft };
1692
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.No, ToolStripDropDownDirection.AboveRight };
1693
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.Inherit, ToolStripDropDownDirection.AboveRight };
1695
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1696
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1697
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1698
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1699
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right,
RightToLeft
.No, ToolStripDropDownDirection.Left };
1700
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right,
RightToLeft
.Inherit, ToolStripDropDownDirection.Left };
1701
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1702
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1703
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1704
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1705
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1706
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1707
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom,
RightToLeft
.Yes, ToolStripDropDownDirection.AboveLeft };
1708
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom,
RightToLeft
.No, ToolStripDropDownDirection.AboveRight };
1709
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom,
RightToLeft
.Inherit, ToolStripDropDownDirection.AboveRight };
1711
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1712
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1713
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1714
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1715
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right,
RightToLeft
.No, ToolStripDropDownDirection.Left };
1716
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right,
RightToLeft
.Inherit, ToolStripDropDownDirection.Left };
1717
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1718
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1719
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1720
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1721
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1722
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1723
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom,
RightToLeft
.Yes, ToolStripDropDownDirection.AboveLeft };
1724
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom,
RightToLeft
.No, ToolStripDropDownDirection.AboveRight };
1725
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom,
RightToLeft
.Inherit, ToolStripDropDownDirection.AboveRight };
1727
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1728
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1729
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1730
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1731
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right,
RightToLeft
.No, ToolStripDropDownDirection.Left };
1732
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right,
RightToLeft
.Inherit, ToolStripDropDownDirection.Left };
1733
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1734
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1735
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1736
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1737
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1738
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1739
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1740
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1741
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1746
public void ToolStrip_DefaultDropDownDirection_Get_ReturnsExpected(ToolStripLayoutStyle layoutStyle, DockStyle dock,
RightToLeft
rightToLeft, ToolStripDropDownDirection expected)
1759
public void ToolStrip_DefaultDropDownDirection_GetDesignMode_ReturnsExpected(ToolStripLayoutStyle layoutStyle, DockStyle dock,
RightToLeft
rightToLeft, ToolStripDropDownDirection expected)
1788
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1789
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1790
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1791
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Left,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1792
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Left,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1793
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Left,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1794
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Right,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1795
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Right,
RightToLeft
.No, ToolStripDropDownDirection.Left };
1796
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Right,
RightToLeft
.Inherit, ToolStripDropDownDirection.Left };
1797
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Top,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1798
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Top,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1799
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Top,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1800
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Bottom,
RightToLeft
.Yes, ToolStripDropDownDirection.AboveLeft };
1801
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Bottom,
RightToLeft
.No, ToolStripDropDownDirection.AboveRight };
1802
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Bottom,
RightToLeft
.Inherit, ToolStripDropDownDirection.AboveRight };
1804
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1805
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1806
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1807
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1808
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1809
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1810
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1811
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1812
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1813
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1814
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1815
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1816
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.Yes, ToolStripDropDownDirection.AboveLeft };
1817
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.No, ToolStripDropDownDirection.AboveRight };
1818
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.Inherit, ToolStripDropDownDirection.AboveRight };
1820
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1821
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1822
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1823
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1824
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right,
RightToLeft
.No, ToolStripDropDownDirection.Left };
1825
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right,
RightToLeft
.Inherit, ToolStripDropDownDirection.Left };
1826
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1827
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1828
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1829
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1830
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1831
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1832
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom,
RightToLeft
.Yes, ToolStripDropDownDirection.AboveLeft };
1833
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom,
RightToLeft
.No, ToolStripDropDownDirection.AboveRight };
1834
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom,
RightToLeft
.Inherit, ToolStripDropDownDirection.AboveRight };
1836
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1837
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1838
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1839
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Right,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1840
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Right,
RightToLeft
.No, ToolStripDropDownDirection.Left };
1841
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Right,
RightToLeft
.Inherit, ToolStripDropDownDirection.Left };
1842
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Left,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1843
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Left,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1844
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Left,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1845
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Top,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1846
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Top,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1847
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Top,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1848
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Bottom,
RightToLeft
.Yes, ToolStripDropDownDirection.AboveLeft };
1849
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Bottom,
RightToLeft
.No, ToolStripDropDownDirection.AboveRight };
1850
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Bottom,
RightToLeft
.Inherit, ToolStripDropDownDirection.AboveRight };
1852
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1853
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1854
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1855
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1856
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right,
RightToLeft
.No, ToolStripDropDownDirection.Left };
1857
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right,
RightToLeft
.Inherit, ToolStripDropDownDirection.Left };
1858
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1859
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1860
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1861
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1862
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1863
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1864
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1865
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1866
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1872
public void ToolStrip_DefaultDropDownDirection_GetWithParent_ReturnsExpected(DockStyle parentDock, ToolStripLayoutStyle layoutStyle, DockStyle dock,
RightToLeft
rightToLeft, ToolStripDropDownDirection expected)
1890
public void ToolStrip_DefaultDropDownDirection_GetDesignModeWithParent_ReturnsExpected(DockStyle parentDock, ToolStripLayoutStyle layoutStyle, DockStyle dock,
RightToLeft
rightToLeft, ToolStripDropDownDirection expected)
1924
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1925
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1926
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1927
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1928
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1929
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1930
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1931
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1932
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1933
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1934
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1935
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1936
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.AboveLeft };
1937
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.AboveRight };
1938
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.AboveRight };
1940
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1941
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1942
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1943
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1944
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1945
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1946
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1947
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1948
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1949
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1950
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1951
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1952
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.AboveLeft };
1953
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.AboveRight };
1954
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.AboveRight };
1956
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1957
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1958
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1959
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1960
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.Left };
1961
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.Left };
1962
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1963
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1964
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1965
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1966
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1967
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1968
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.AboveLeft };
1969
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.AboveRight };
1970
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.AboveRight };
1972
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1973
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1974
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1975
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1976
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1977
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1978
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1979
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1980
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1981
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
1982
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
1983
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
1984
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.AboveLeft };
1985
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.No, ToolStripDropDownDirection.AboveRight };
1986
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.AboveRight };
1988
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1989
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1990
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1991
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
1992
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.Left };
1993
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.Left };
1994
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1995
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1996
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
1997
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
1998
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.Right };
1999
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
2000
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
2001
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.Right };
2002
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
2008
public void ToolStrip_DefaultDropDownDirection_GetWithToolStripPanelParent_ReturnsExpected(DockStyle parentDock, ToolStripLayoutStyle layoutStyle, DockStyle dock,
RightToLeft
rightToLeft, ToolStripDropDownDirection expected)
2028
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
2029
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
2030
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
2031
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
2032
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
2033
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
2034
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
2035
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
2036
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
2037
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
2038
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
2039
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
2040
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.AboveLeft };
2041
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.AboveRight };
2042
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.AboveRight };
2044
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
2045
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
2046
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
2047
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
2048
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
2049
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
2050
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
2051
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
2052
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
2053
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
2054
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
2055
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
2056
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.AboveLeft };
2057
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.AboveRight };
2058
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.AboveRight };
2060
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
2061
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
2062
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
2063
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
2064
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.Left };
2065
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.Left };
2066
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
2067
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.Right };
2068
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
2069
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
2070
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
2071
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
2072
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.AboveLeft };
2073
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.AboveRight };
2074
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.AboveRight };
2076
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
2077
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
2078
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
2079
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
2080
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
2081
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
2082
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
2083
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
2084
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
2085
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.BelowLeft };
2086
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.No, ToolStripDropDownDirection.BelowRight };
2087
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.BelowRight };
2088
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.AboveLeft };
2089
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.No, ToolStripDropDownDirection.AboveRight };
2090
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.AboveRight };
2092
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
2093
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.Right };
2094
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
2095
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.Left };
2096
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.Left };
2097
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.Left };
2098
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
2099
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.Right };
2100
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
2101
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
2102
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.Right };
2103
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
2104
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.Yes, ToolStripDropDownDirection.Right };
2105
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.No, ToolStripDropDownDirection.Right };
2106
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock,
RightToLeft
.Inherit, ToolStripDropDownDirection.Right };
2112
public void ToolStrip_DefaultDropDownDirection_GetDesignModeWithToolStripPanelParent_ReturnsExpected(DockStyle parentDock, ToolStripLayoutStyle layoutStyle, DockStyle dock,
RightToLeft
rightToLeft, ToolStripDropDownDirection expected)
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)
3444
[InlineData(
RightToLeft
.Yes,
RightToLeft
.Yes, 1)]
3445
[InlineData(
RightToLeft
.No,
RightToLeft
.No, 0)]
3446
[InlineData(
RightToLeft
.Inherit,
RightToLeft
.No, 0)]
3447
public void ToolStrip_RightToLeft_Set_GetReturnsExpected(
RightToLeft
value,
RightToLeft
expected, int expectedLayoutCallCount)
3473
public void ToolStrip_RightToLeft_SetWithChildren_GetReturnsExpected(
RightToLeft
value,
RightToLeft
expected)
3497
public void ToolStrip_RightToLeft_SetWithChildrenWithRightToLeft_GetReturnsExpected(
RightToLeft
value,
RightToLeft
expected)
3501
RightToLeft =
RightToLeft
.Yes
3505
RightToLeft =
RightToLeft
.No
3513
Assert.Equal(
RightToLeft
.Yes, item1.RightToLeft);
3514
Assert.Equal(
RightToLeft
.No, item2.RightToLeft);
3520
Assert.Equal(
RightToLeft
.Yes, item1.RightToLeft);
3521
Assert.Equal(
RightToLeft
.No, item2.RightToLeft);
3539
control.RightToLeft =
RightToLeft
.Yes;
3540
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
3544
control.RightToLeft =
RightToLeft
.Yes;
3545
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
3549
control.RightToLeft =
RightToLeft
.Inherit;
3550
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
3555
control.RightToLeft =
RightToLeft
.Yes;
3556
Assert.Equal(
RightToLeft
.Yes, control.RightToLeft);
3561
[InvalidEnumData<
RightToLeft
>]
3562
public void ToolStrip_RightToLeft_SetInvalid_ThrowsInvalidEnumArgumentException(
RightToLeft
value)
4794
foreach (
RightToLeft
rtl in Enum.GetValues(typeof(
RightToLeft
)))
4808
public void ToolStrip_GetNextItem_ReturnsForwardItem(
RightToLeft
rightToLeft, bool tabStop, bool useTabKey)
4829
public void ToolStrip_GetNextItem_CyclesForwardExpected(
RightToLeft
rightToLeft, bool tabStop, bool useTabKey)
4854
public void ToolStrip_GetNextItem_ReturnsBackwardItem(
RightToLeft
rightToLeft, bool tabStop, bool useTabKey)
4875
public void ToolStrip_GetNextItem_CyclesBackwardExpected(
RightToLeft
rightToLeft, bool tabStop, bool useTabKey)
6403
RightToLeft =
RightToLeft
.Inherit
6452
RightToLeft =
RightToLeft
.Yes
6456
RightToLeft =
RightToLeft
.No
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (5)
330
[InlineData(true,
RightToLeft
.Yes, true)]
331
[InlineData(true,
RightToLeft
.No, false)]
332
[InlineData(true,
RightToLeft
.Inherit, false)]
333
[InlineData(false,
RightToLeft
.Yes, false)]
336
RightToLeft
rightToLeft,
System\Windows\Forms\TreeViewTests.cs (38)
102
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
668
[InlineData(
RightToLeft
.Inherit, true, 0x56010007, 0x200)]
669
[InlineData(
RightToLeft
.No, true, 0x56010007, 0x200)]
670
[InlineData(
RightToLeft
.Yes, true, 0x56010007, 0x400200)]
671
[InlineData(
RightToLeft
.Inherit, false, 0x56010007, 0x200)]
672
[InlineData(
RightToLeft
.No, false, 0x56010007, 0x200)]
673
[InlineData(
RightToLeft
.Yes, false, 0x56010047, 0x7200)]
674
public void TreeView_CreateParams_GetRightToLeft_ReturnsExpected(
RightToLeft
rightToLeft, bool rightToLeftLayout, int expectedStyle, int expectedExStyle)
3068
[InlineData(
RightToLeft
.Yes, true, 1)]
3069
[InlineData(
RightToLeft
.Yes, false, 0)]
3070
[InlineData(
RightToLeft
.No, true, 1)]
3071
[InlineData(
RightToLeft
.No, false, 0)]
3072
[InlineData(
RightToLeft
.Inherit, true, 1)]
3073
[InlineData(
RightToLeft
.Inherit, false, 0)]
3074
public void TrackBar_RightToLeftLayout_Set_GetReturnsExpected(
RightToLeft
rightToLeft, bool value, int expectedLayoutCallCount)
3108
[InlineData(
RightToLeft
.Yes, true, 1, 1, 2)]
3109
[InlineData(
RightToLeft
.Yes, false, 0, 0, 1)]
3110
[InlineData(
RightToLeft
.No, true, 1, 0, 0)]
3111
[InlineData(
RightToLeft
.No, false, 0, 0, 0)]
3112
[InlineData(
RightToLeft
.Inherit, true, 1, 0, 0)]
3113
[InlineData(
RightToLeft
.Inherit, false, 0, 0, 0)]
3114
public void TrackBar_RightToLeftLayout_SetWithHandle_GetReturnsExpected(
RightToLeft
rightToLeft, bool value, int expectedLayoutCallCount, int expectedCreatedCallCount1, int expectedCreatedCallCount2)
3206
RightToLeft =
RightToLeft
.Yes
6502
yield return new object[] {
RightToLeft
.Yes, null };
6503
yield return new object[] {
RightToLeft
.Yes, new EventArgs() };
6504
yield return new object[] {
RightToLeft
.No, null };
6505
yield return new object[] {
RightToLeft
.No, new EventArgs() };
6506
yield return new object[] {
RightToLeft
.Inherit, null };
6507
yield return new object[] {
RightToLeft
.Inherit, new EventArgs() };
6512
public void TreeView_OnRightToLeftLayoutChanged_Invoke_CallsRightToLeftLayoutChanged(
RightToLeft
rightToLeft, EventArgs eventArgs)
6541
yield return new object[] {
RightToLeft
.Yes, null, 1 };
6542
yield return new object[] {
RightToLeft
.Yes, new EventArgs(), 1 };
6543
yield return new object[] {
RightToLeft
.No, null, 0 };
6544
yield return new object[] {
RightToLeft
.No, new EventArgs(), 0 };
6545
yield return new object[] {
RightToLeft
.Inherit, null, 0 };
6546
yield return new object[] {
RightToLeft
.Inherit, new EventArgs(), 0 };
6551
public void TreeView_OnRightToLeftLayoutChanged_InvokeWithHandle_CallsRightToLeftLayoutChanged(
RightToLeft
rightToLeft, EventArgs eventArgs, int expectedCreatedCallCount)
6596
RightToLeft =
RightToLeft
.Yes
System\Windows\Forms\UpDownBaseTests.cs (20)
115
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
1431
foreach (
RightToLeft
rightToLeft in Enum.GetValues(typeof(
RightToLeft
)))
1441
public void UpDownBase_UpDownAlign_Set_GetReturnsExpected(BorderStyle borderStyle,
RightToLeft
rightToLeft, LeftRightAlignment value)
1462
foreach (
RightToLeft
rightToLeft in Enum.GetValues(typeof(
RightToLeft
)))
1472
public void UpDownBase_UpDownAlign_SetWithHandle_GetReturnsExpected(BorderStyle borderStyle,
RightToLeft
rightToLeft, LeftRightAlignment value, int expectedInvalidatedCallCount)
1767
foreach (
RightToLeft
rightToLeft in Enum.GetValues(typeof(
RightToLeft
)))
1780
public void UpDownBase_OnFontChanged_Invoke_CallsFontChanged(BorderStyle borderStyle,
RightToLeft
rightToLeft, LeftRightAlignment upDownAlign, EventArgs eventArgs)
1817
foreach (
RightToLeft
rightToLeft in Enum.GetValues(typeof(
RightToLeft
)))
1830
public void UpDownBase_OnHandleCreated_Invoke_CallsHandleCreated(BorderStyle borderStyle,
RightToLeft
rightToLeft, LeftRightAlignment upDownAlign, EventArgs eventArgs)
1863
public void UpDownBase_OnHandleCreated_InvokeWithHandle_CallsHandleCreated(BorderStyle borderStyle,
RightToLeft
rightToLeft, LeftRightAlignment upDownAlign, EventArgs eventArgs)
1958
foreach (
RightToLeft
rightToLeft in Enum.GetValues(typeof(
RightToLeft
)))
1972
public void UpDownBase_OnLayout_Invoke_CallsLayout(BorderStyle borderStyle,
RightToLeft
rightToLeft, LeftRightAlignment upDownAlign, LayoutEventArgs eventArgs)
2502
foreach (
RightToLeft
rightToLeft in Enum.GetValues(typeof(
RightToLeft
)))
2517
public void UpDownBase_OnTextBoxResize_Invoke_CallsTextBoxResize(BorderStyle borderStyle,
RightToLeft
rightToLeft, LeftRightAlignment upDownAlign, object source, EventArgs eventArgs)
System\Windows\Forms\UserControlTests.cs (1)
106
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\VScrollBarTests.cs (14)
98
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
140
[EnumData<
RightToLeft
>]
141
[InvalidEnumData<
RightToLeft
>]
142
public void VScrollBar_RightToLeft_Set_GetReturnsNo(
RightToLeft
value)
148
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
152
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
169
control.RightToLeft =
RightToLeft
.Yes;
170
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
174
control.RightToLeft =
RightToLeft
.Yes;
175
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
179
control.RightToLeft =
RightToLeft
.Inherit;
180
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
185
control.RightToLeft =
RightToLeft
.Yes;
186
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
System\Windows\Forms\WebBrowserTests.cs (1)
84
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
TextBoxTests.cs (2)
100
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
435
RightToLeft =
RightToLeft
.Yes
TrackBarTests.cs (109)
91
Assert.Equal(
RightToLeft
.No, control.RightToLeft);
188
[InlineData(
RightToLeft
.Inherit, true, 0x0)]
189
[InlineData(
RightToLeft
.No, true, 0x0)]
190
[InlineData(
RightToLeft
.Yes, true, 0x500000)]
191
[InlineData(
RightToLeft
.Inherit, false, 0x0)]
192
[InlineData(
RightToLeft
.No, false, 0x0)]
193
[InlineData(
RightToLeft
.Yes, false, 0x7000)]
194
public void TrackBar_CreateParams_GetRightToLeft_ReturnsExpected(
RightToLeft
rightToLeft, bool rightToLeftLayout, int expectedExStyle)
795
[InlineData(
RightToLeft
.Inherit, true, 5)]
796
[InlineData(
RightToLeft
.No, true, 5)]
797
[InlineData(
RightToLeft
.Yes, true, 5)]
798
[InlineData(
RightToLeft
.Inherit, false, 5)]
799
[InlineData(
RightToLeft
.No, false, 5)]
800
[InlineData(
RightToLeft
.Yes, false, 5)]
801
public void TrackBar_Handle_GetWithValue_Success(
RightToLeft
rightToLeft, bool rightToLeftLayout, int expected)
1548
[InlineData(
RightToLeft
.Yes, true, 1)]
1549
[InlineData(
RightToLeft
.Yes, false, 0)]
1550
[InlineData(
RightToLeft
.No, true, 1)]
1551
[InlineData(
RightToLeft
.No, false, 0)]
1552
[InlineData(
RightToLeft
.Inherit, true, 1)]
1553
[InlineData(
RightToLeft
.Inherit, false, 0)]
1554
public void TrackBar_RightToLeftLayout_Set_GetReturnsExpected(
RightToLeft
rightToLeft, bool value, int expectedLayoutCallCount)
1588
[InlineData(
RightToLeft
.Yes, true, 1, 1, 2)]
1589
[InlineData(
RightToLeft
.Yes, false, 0, 0, 1)]
1590
[InlineData(
RightToLeft
.No, true, 1, 0, 0)]
1591
[InlineData(
RightToLeft
.No, false, 0, 0, 0)]
1592
[InlineData(
RightToLeft
.Inherit, true, 1, 0, 0)]
1593
[InlineData(
RightToLeft
.Inherit, false, 0, 0, 0)]
1594
public void TrackBar_RightToLeftLayout_SetWithHandle_GetReturnsExpected(
RightToLeft
rightToLeft, bool value, int expectedLayoutCallCount, int expectedCreatedCallCount1, int expectedCreatedCallCount2)
1686
RightToLeft =
RightToLeft
.Yes
1967
foreach (
RightToLeft
rightToLeft in Enum.GetValues(typeof(
RightToLeft
)))
1983
public void TrackBar_Value_Set_GetReturnsExpected(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int value)
2042
yield return new object[] { Orientation.Horizontal,
RightToLeft
.Yes, true, 0, 0 };
2043
yield return new object[] { Orientation.Horizontal,
RightToLeft
.Yes, false, 0, 10 };
2044
yield return new object[] { Orientation.Horizontal,
RightToLeft
.No, true, 0, 0 };
2045
yield return new object[] { Orientation.Horizontal,
RightToLeft
.No, false, 0, 0 };
2046
yield return new object[] { Orientation.Horizontal,
RightToLeft
.Inherit, true, 0, 0 };
2047
yield return new object[] { Orientation.Horizontal,
RightToLeft
.Inherit, false, 0, 0 };
2048
yield return new object[] { Orientation.Vertical,
RightToLeft
.Yes, true, 0, 10 };
2049
yield return new object[] { Orientation.Vertical,
RightToLeft
.Yes, false, 0, 10 };
2050
yield return new object[] { Orientation.Vertical,
RightToLeft
.No, true, 0, 10 };
2051
yield return new object[] { Orientation.Vertical,
RightToLeft
.No, false, 0, 10 };
2052
yield return new object[] { Orientation.Vertical,
RightToLeft
.Inherit, true, 0, 10 };
2053
yield return new object[] { Orientation.Vertical,
RightToLeft
.Inherit, false, 0, 10 };
2055
yield return new object[] { Orientation.Horizontal,
RightToLeft
.Yes, true, 1, 1 };
2056
yield return new object[] { Orientation.Horizontal,
RightToLeft
.Yes, false, 1, 9 };
2057
yield return new object[] { Orientation.Horizontal,
RightToLeft
.No, true, 1, 1 };
2058
yield return new object[] { Orientation.Horizontal,
RightToLeft
.No, false, 1, 1 };
2059
yield return new object[] { Orientation.Horizontal,
RightToLeft
.Inherit, true, 1, 1 };
2060
yield return new object[] { Orientation.Horizontal,
RightToLeft
.Inherit, false, 1, 1 };
2061
yield return new object[] { Orientation.Vertical,
RightToLeft
.Yes, true, 1, 9 };
2062
yield return new object[] { Orientation.Vertical,
RightToLeft
.Yes, false, 1, 9 };
2063
yield return new object[] { Orientation.Vertical,
RightToLeft
.No, true, 1, 9 };
2064
yield return new object[] { Orientation.Vertical,
RightToLeft
.No, false, 1, 9 };
2065
yield return new object[] { Orientation.Vertical,
RightToLeft
.Inherit, true, 1, 9 };
2066
yield return new object[] { Orientation.Vertical,
RightToLeft
.Inherit, false, 1, 9 };
2068
yield return new object[] { Orientation.Horizontal,
RightToLeft
.Yes, true, 5, 5 };
2069
yield return new object[] { Orientation.Horizontal,
RightToLeft
.Yes, false, 5, 5 };
2070
yield return new object[] { Orientation.Horizontal,
RightToLeft
.No, true, 5, 5 };
2071
yield return new object[] { Orientation.Horizontal,
RightToLeft
.No, false, 5, 5 };
2072
yield return new object[] { Orientation.Horizontal,
RightToLeft
.Inherit, true, 5, 5 };
2073
yield return new object[] { Orientation.Horizontal,
RightToLeft
.Inherit, false, 5, 5 };
2074
yield return new object[] { Orientation.Vertical,
RightToLeft
.Yes, true, 5, 5 };
2075
yield return new object[] { Orientation.Vertical,
RightToLeft
.Yes, false, 5, 5 };
2076
yield return new object[] { Orientation.Vertical,
RightToLeft
.No, true, 5, 5 };
2077
yield return new object[] { Orientation.Vertical,
RightToLeft
.No, false, 5, 5 };
2078
yield return new object[] { Orientation.Vertical,
RightToLeft
.Inherit, true, 5, 5 };
2079
yield return new object[] { Orientation.Vertical,
RightToLeft
.Inherit, false, 5, 5 };
2081
yield return new object[] { Orientation.Horizontal,
RightToLeft
.Yes, true, 9, 9 };
2082
yield return new object[] { Orientation.Horizontal,
RightToLeft
.Yes, false, 9, 1 };
2083
yield return new object[] { Orientation.Horizontal,
RightToLeft
.No, true, 9, 9 };
2084
yield return new object[] { Orientation.Horizontal,
RightToLeft
.No, false, 9, 9 };
2085
yield return new object[] { Orientation.Horizontal,
RightToLeft
.Inherit, true, 9, 9 };
2086
yield return new object[] { Orientation.Horizontal,
RightToLeft
.Inherit, false, 9, 9 };
2087
yield return new object[] { Orientation.Vertical,
RightToLeft
.Yes, true, 9, 1 };
2088
yield return new object[] { Orientation.Vertical,
RightToLeft
.Yes, false, 9, 1 };
2089
yield return new object[] { Orientation.Vertical,
RightToLeft
.No, true, 9, 1 };
2090
yield return new object[] { Orientation.Vertical,
RightToLeft
.No, false, 9, 1 };
2091
yield return new object[] { Orientation.Vertical,
RightToLeft
.Inherit, true, 9, 1 };
2092
yield return new object[] { Orientation.Vertical,
RightToLeft
.Inherit, false, 9, 1 };
2094
yield return new object[] { Orientation.Horizontal,
RightToLeft
.Yes, true, 10, 10 };
2095
yield return new object[] { Orientation.Horizontal,
RightToLeft
.Yes, false, 10, 0 };
2096
yield return new object[] { Orientation.Horizontal,
RightToLeft
.No, true, 10, 10 };
2097
yield return new object[] { Orientation.Horizontal,
RightToLeft
.No, false, 10, 10 };
2098
yield return new object[] { Orientation.Horizontal,
RightToLeft
.Inherit, true, 10, 10 };
2099
yield return new object[] { Orientation.Horizontal,
RightToLeft
.Inherit, false, 10, 10 };
2100
yield return new object[] { Orientation.Vertical,
RightToLeft
.Yes, true, 10, 0 };
2101
yield return new object[] { Orientation.Vertical,
RightToLeft
.Yes, false, 10, 0 };
2102
yield return new object[] { Orientation.Vertical,
RightToLeft
.No, true, 10, 0 };
2103
yield return new object[] { Orientation.Vertical,
RightToLeft
.No, false, 10, 0 };
2104
yield return new object[] { Orientation.Vertical,
RightToLeft
.Inherit, true, 10, 0 };
2105
yield return new object[] { Orientation.Vertical,
RightToLeft
.Inherit, false, 10, 0 };
2110
public void TrackBar_Value_SetWithHandle_GetReturnsExpected(Orientation orientation,
RightToLeft
rightToLeft, bool rightToLeftLayout, int value, int expectedPos)
2605
yield return new object[] {
RightToLeft
.Yes, null };
2606
yield return new object[] {
RightToLeft
.Yes, new EventArgs() };
2607
yield return new object[] {
RightToLeft
.No, null };
2608
yield return new object[] {
RightToLeft
.No, new EventArgs() };
2609
yield return new object[] {
RightToLeft
.Inherit, null };
2610
yield return new object[] {
RightToLeft
.Inherit, new EventArgs() };
2615
public void TrackBar_OnRightToLeftLayoutChanged_Invoke_CallsRightToLeftLayoutChanged(
RightToLeft
rightToLeft, EventArgs eventArgs)
2644
yield return new object[] {
RightToLeft
.Yes, null, 1 };
2645
yield return new object[] {
RightToLeft
.Yes, new EventArgs(), 1 };
2646
yield return new object[] {
RightToLeft
.No, null, 0 };
2647
yield return new object[] {
RightToLeft
.No, new EventArgs(), 0 };
2648
yield return new object[] {
RightToLeft
.Inherit, null, 0 };
2649
yield return new object[] {
RightToLeft
.Inherit, new EventArgs(), 0 };
2654
public void TrackBar_OnRightToLeftLayoutChanged_InvokeWithHandle_CallsRightToLeftLayoutChanged(
RightToLeft
rightToLeft, EventArgs eventArgs, int expectedCreatedCallCount)
2699
RightToLeft =
RightToLeft
.Yes
System.Windows.Forms.TestUtilities (102)
CommonTestHelperEx.cs (10)
64
public static TheoryData<
RightToLeft
,
RightToLeft
> GetRightToLeftTheoryData()
66
var data = new TheoryData<
RightToLeft
,
RightToLeft
>
68
{
RightToLeft
.Inherit,
RightToLeft
.No },
69
{
RightToLeft
.Yes,
RightToLeft
.Yes },
70
{
RightToLeft
.No,
RightToLeft
.No }
ScrollBarTestHelper.cs (52)
13
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
17
int value = rightToLeft ==
RightToLeft
.Yes ? Minumim : Maximum;
26
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
30
int value = rightToLeft ==
RightToLeft
.Yes ? Maximum : Minumim;
38
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
42
int value = rightToLeft ==
RightToLeft
.Yes ? Maximum : Minumim;
51
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
55
int value = rightToLeft ==
RightToLeft
.Yes ? Minumim : Maximum;
63
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
71
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
81
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
93
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
104
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
113
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
121
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
130
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
TrackBarTestHelper.cs (40)
20
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
34
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
38
bool isMirrored = rightToLeft ==
RightToLeft
.Yes && rightToLeftLayout;
42
int value = orientation == Orientation.Horizontal && (rightToLeft ==
RightToLeft
.No || isMirrored)
57
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
61
bool isMirrored = rightToLeft ==
RightToLeft
.Yes && rightToLeftLayout;
65
int value = orientation == Orientation.Horizontal && (rightToLeft ==
RightToLeft
.No || isMirrored)
79
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
83
bool isMirrored = rightToLeft ==
RightToLeft
.Yes && rightToLeftLayout;
87
int value = orientation == Orientation.Horizontal && (rightToLeft ==
RightToLeft
.No || isMirrored)
103
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
107
bool isMirrored = rightToLeft ==
RightToLeft
.Yes && rightToLeftLayout;
111
int value = orientation == Orientation.Horizontal && (rightToLeft ==
RightToLeft
.No || isMirrored)
125
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
139
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
159
foreach (
RightToLeft
rightToLeft in new
RightToLeft
[] {
RightToLeft
.Yes,
RightToLeft
.No })
System.Windows.Forms.UI.IntegrationTests (2)
ApplicationTests.cs (2)
22
using Form child = new() { RightToLeft =
RightToLeft
.No };
29
child.RightToLeft =
RightToLeft
.Yes;
WindowsFormsIntegration (12)
System\Windows\Integration\ElementHostPropertyMap.cs (4)
176
if (adapter != null && value is SWF.
RightToLeft
)
178
SWF.
RightToLeft
fromRTL = (SWF.
RightToLeft
)value;
179
SW.FlowDirection toFlowDirection = ((fromRTL == SWF.
RightToLeft
.Yes) ? SW.FlowDirection.RightToLeft : SW.FlowDirection.LeftToRight);
System\Windows\Integration\WindowsFormsHost.cs (6)
1074
private
RightToLeft
_rightToLeft =
RightToLeft
.Inherit;
1079
public override
RightToLeft
RightToLeft
1084
return _rightToLeft ==
RightToLeft
.Inherit ?
1085
RightToLeft
.No : _rightToLeft;
1092
bool fireRightToLeftChanged = _rightToLeft !=
RightToLeft
.Inherit || base.RightToLeft != value;
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (2)
115
adapter.RightToLeft = SWF.
RightToLeft
.Yes;
119
adapter.RightToLeft = SWF.
RightToLeft
.No;
WinFormsControlsTest (9)
MdiChild.cs (2)
98
MyParent.MainMenuStrip.RightToLeft = chkRightToLeft.Checked ?
RightToLeft
.Yes :
RightToLeft
.No;
ScrollBars.cs (2)
43
hScrollBar.RightToLeft = chbRightToLeft.Checked ?
RightToLeft
.Yes :
RightToLeft
.No;
TextBoxes.Designer.cs (3)
56
this.RTLTextBox.RightToLeft = System.Windows.Forms.
RightToLeft
.Yes;
90
this.RTLMultilineTextBox.RightToLeft = System.Windows.Forms.
RightToLeft
.Yes;
133
this.RTLRichTextBox.RightToLeft = System.Windows.Forms.
RightToLeft
.Yes;
TrackBars.cs (2)
56
trackBar1.RightToLeft = chbRightToLeft.Checked ?
RightToLeft
.Yes :
RightToLeft
.No;