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