933 references to Yes
Accessibility_Core_App (1)
CommonControl1.Designer.cs (1)
658this.dateTimePicker2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
PresentationUI (2)
MS\Internal\Documents\DialogBaseForm.cs (1)
155RightToLeft = RightToLeft.Yes;
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
625if (RightToLeft == RightToLeft.Yes)
System.Windows.Forms (126)
System\Windows\Forms\ActiveX\AxHost.cs (3)
360return rtol == Forms.RightToLeft.Yes; 362set => base.RightToLeft = (value) ? Forms.RightToLeft.Yes : Forms.RightToLeft.No; 2129if (control.RightToLeft == Forms.RightToLeft.Yes)
System\Windows\Forms\Control.cs (6)
1364if (RightToLeft == RightToLeft.Yes) 7362si.nPos = (RightToLeft == RightToLeft.Yes) ? si.nMax : si.nMin; 10498if (RightToLeft == RightToLeft.Yes) 10516if (RightToLeft == RightToLeft.Yes) 10534if (RightToLeft == RightToLeft.Yes) 12693TopLevelControlInternal is { } topLevelControl && topLevelControl.RightToLeft == RightToLeft.Yes && !IsMirrored;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
583LayoutRTL = rtl == RightToLeft.Yes, 610LayoutRTL = Control.RightToLeft == RightToLeft.Yes,
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
346layout.LayoutRTL = Control.RightToLeft == RightToLeft.Yes;
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (4)
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 (1)
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 (1)
338if (_owner.DataGridView.RightToLeft == RightToLeft.Yes)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (1)
36if (Owner.DataGridView.RightToLeft == RightToLeft.Yes)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (2)
135(RightToLeft == RightToLeft.Yes && !(SelectionLength == 0 && SelectionStart == 0))) 147(RightToLeft == RightToLeft.Yes && !(SelectionLength == 0 && SelectionStart == Text.Length)))
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\MonthCalendar\MonthCalendar.cs (2)
308if (RightToLeft == RightToLeft.Yes && RightToLeftLayout) 1474if (RightToLeft == RightToLeft.Yes)
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 (4)
214if (RightToLeft == RightToLeft.Yes) 269if (SizingGrip && RightToLeft == RightToLeft.Yes) 580if (RightToLeft == RightToLeft.Yes) 594if (RightToLeft != RightToLeft.Yes)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (5)
606direction = (RightToLeft == RightToLeft.Yes) ? ToolStripDropDownDirection.AboveLeft : ToolStripDropDownDirection.AboveRight; 611direction = (RightToLeft == RightToLeft.Yes) ? ToolStripDropDownDirection.BelowLeft : ToolStripDropDownDirection.BelowRight; 2028if (rtlAware && RightToLeft == RightToLeft.Yes) 3022if (RightToLeft == RightToLeft.Yes) 4182if (RightToLeft == RightToLeft.Yes)
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
365if (rightToLeft == RightToLeft.Yes)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
276? (RightToLeft == RightToLeft.Yes) ? ToolStripDropDownDirection.Left : ToolStripDropDownDirection.Right 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 (5)
147RightToLeft toggledRightToLeft = (RightToLeft == RightToLeft.Yes) ? RightToLeft.No : RightToLeft.Yes; 388bool rtl = (RightToLeft == RightToLeft.Yes); 667return (rightToLeft == RightToLeft.Yes) ? ToolStripDropDownDirection.Left : ToolStripDropDownDirection.Right; 671return (rightToLeft == RightToLeft.Yes) ? ToolStripDropDownDirection.BelowLeft : ToolStripDropDownDirection.BelowRight;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (3)
76int textPadding = (rightToLeft == RightToLeft.Yes) ? _textPadding.Right : _textPadding.Left; 80if (rightToLeft == RightToLeft.Yes) 434if (RightToLeft == RightToLeft.Yes)
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 (6)
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); 704FillWithDoubleGradient(begin, ColorTable.ImageMarginGradientMiddle, end, e.Graphics, bounds, _iconWellGradientWidth, _iconWellGradientWidth, LinearGradientMode.Horizontal, /*flipHorizontal=*/(e.ToolStrip.RightToLeft == RightToLeft.Yes)); 1126if (control.RightToLeft == RightToLeft.Yes) 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\ToolStripSplitStackDragDropHandler.cs (1)
102insertIndex = Math.Max(0, (_owner.RightToLeft == RightToLeft.Yes) ? insertIndex + 1 : insertIndex);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (1)
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\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\Form.cs (3)
841if (RightToLeft == RightToLeft.Yes && RightToLeftLayout) 4595if (RightToLeft == RightToLeft.Yes) 4606if (RightToLeft == RightToLeft.Yes)
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
1571_splitterRect.X = ((RightToLeft == RightToLeft.Yes) ? Width - _splitterDistance - SplitterWidthInternal : Location.X + _splitterDistance); 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 (2)
452if (RightToLeft == RightToLeft.Yes) 820if (RightToLeft == RightToLeft.Yes)
System\Windows\Forms\Rendering\ControlPaint.cs (3)
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\ToolTip\ToolTip.cs (2)
977if (TopLevelControl?.RightToLeft == RightToLeft.Yes && !control.IsMirrored) 992if (TopLevelControl?.RightToLeft == RightToLeft.Yes)
System.Windows.Forms.Design (19)
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 (1)
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)
1807if (ToolStrip.RightToLeft == RightToLeft.Yes)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (6)
301if (parent.RightToLeft == RightToLeft.Yes && (direction == ArrowDirection.Left || direction == ArrowDirection.Right)) 1790if ((ctl.RightToLeft != RightToLeft.Yes && !backwards) || (ctl.RightToLeft == RightToLeft.Yes && backwards)) 1881else if (item == parent.Items[0] && parent.RightToLeft != RightToLeft.Yes) 1931else if (item == parent.Items[0] && parent.RightToLeft == RightToLeft.Yes) 1962if (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 (1)
System\Windows\Forms\Design\FormatStringDialogTests.cs (1)
43_formatStringDialog.RightToLeft.Should().Be(RightToLeft.Yes);
System.Windows.Forms.Tests (745)
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (2)
32[InlineData(RightToLeft.Yes)] 64[InlineData(RightToLeft.Yes)]
System\Windows\Forms\AccessibleObjects\DataGridViewTopLeftHeaderCellAccessibleObjectTests.cs (1)
115yield return new object[] { RightToLeft.Yes, SR.DataGridView_AccTopLeftColumnHeaderCellNameRTL };
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (3)
204using HScrollBar scrollBar = GetHScrollBar(createControl: true, RightToLeft.Yes, minimum: 0, maximum: 100, value: 50); 240[InlineData(RightToLeft.Yes, 99, 100)] 241[InlineData(RightToLeft.Yes, 0, 0)]
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (3)
227using HScrollBar scrollBar = GetHScrollBar(createControl: true, RightToLeft.Yes, minimum: 0, maximum: 100, value: 50); 263[InlineData(RightToLeft.Yes, 99, 100)] 264[InlineData(RightToLeft.Yes, 0, 0)]
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (3)
214using HScrollBar scrollBar = GetHScrollBar(createControl: true, RightToLeft.Yes, minimum: 0, maximum: 100, value: 50); 250[InlineData(RightToLeft.Yes, 0, 100)] 251[InlineData(RightToLeft.Yes, 0, 0)]
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (3)
214using HScrollBar scrollBar = GetHScrollBar(createControl: true, RightToLeft.Yes, minimum: 0, maximum: 100, value: 50); 250[InlineData(RightToLeft.Yes, 0, 100)] 251[InlineData(RightToLeft.Yes, 0, 0)]
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (11)
69foreach (RightToLeft rightToLeft in new RightToLeft[] { RightToLeft.Yes, RightToLeft.No }) 73if (rightToLeft == RightToLeft.Yes && !rightToLeftLayout) 104foreach (RightToLeft rightToLeft in new RightToLeft[] { RightToLeft.Yes, RightToLeft.No }) 108if (orientation == Orientation.Vertical || (rightToLeft == RightToLeft.Yes && !rightToLeftLayout)) 248[InlineData(Orientation.Vertical, RightToLeft.Yes, true)] 249[InlineData(Orientation.Vertical, RightToLeft.Yes, false)] 252[InlineData(Orientation.Horizontal, RightToLeft.Yes, false)] 277[InlineData(Orientation.Horizontal, RightToLeft.Yes, true)] 403[InlineData(Orientation.Horizontal, RightToLeft.Yes, true)] 414[InlineData(Orientation.Vertical, RightToLeft.Yes, true)] 415[InlineData(Orientation.Vertical, RightToLeft.Yes, false)]
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (8)
69foreach (RightToLeft rightToLeft in new RightToLeft[] { RightToLeft.Yes, RightToLeft.No }) 73if (rightToLeft == RightToLeft.Yes && !rightToLeftLayout) 104foreach (RightToLeft rightToLeft in new RightToLeft[] { RightToLeft.Yes, RightToLeft.No }) 108if (orientation == Orientation.Vertical || (rightToLeft == RightToLeft.Yes && !rightToLeftLayout)) 249[InlineData(Orientation.Vertical, RightToLeft.Yes, true)] 250[InlineData(Orientation.Vertical, RightToLeft.Yes, false)] 253[InlineData(Orientation.Horizontal, RightToLeft.Yes, false)] 278[InlineData(Orientation.Horizontal, RightToLeft.Yes, true)]
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (3)
202[InlineData(RightToLeft.Yes)] 224[InlineData(RightToLeft.Yes, 0, 100)] 225[InlineData(RightToLeft.Yes, 0, 0)]
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (3)
225[InlineData(RightToLeft.Yes)] 247[InlineData(RightToLeft.Yes, 0, 100)] 248[InlineData(RightToLeft.Yes, 0, 0)]
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (3)
212[InlineData(RightToLeft.Yes)] 234[InlineData(RightToLeft.Yes, 99, 100)] 235[InlineData(RightToLeft.Yes, 0, 0)]
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (3)
212[InlineData(RightToLeft.Yes)] 234[InlineData(RightToLeft.Yes, 99, 100)] 235[InlineData(RightToLeft.Yes, 0, 0)]
System\Windows\Forms\ButtonBaseTests.cs (10)
184yield return new object[] { flatStyle, RightToLeft.Yes, textAlign, 0x56010000, 0x7000 }; 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 };
System\Windows\Forms\ButtonTests.cs (10)
206yield return new object[] { flatStyle, RightToLeft.Yes, textAlign, 0x5601000B, 0x7000 }; 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 };
System\Windows\Forms\ColumnHeaderTests.cs (2)
1021[InlineData(RightToLeft.Yes, true, HorizontalAlignment.Left)] 1024[InlineData(RightToLeft.Yes, false, HorizontalAlignment.Right)]
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (4)
117[InlineData(ComboBoxStyle.DropDown, RightToLeft.Yes, true)] 119[InlineData(ComboBoxStyle.Simple, RightToLeft.Yes, true)] 133[InlineData(ComboBoxStyle.DropDown, RightToLeft.Yes)] 135[InlineData(ComboBoxStyle.Simple, RightToLeft.Yes)]
System\Windows\Forms\ComboBoxTests.cs (6)
1290control.RightToLeft = RightToLeft.Yes; 1291Assert.Equal(RightToLeft.Yes, control.RightToLeft); 1295control.RightToLeft = RightToLeft.Yes; 1296Assert.Equal(RightToLeft.Yes, control.RightToLeft); 1306control.RightToLeft = RightToLeft.Yes; 1307Assert.Equal(RightToLeft.Yes, control.RightToLeft);
System\Windows\Forms\ControlTests.ControlCollection.cs (16)
656owner.RightToLeft = RightToLeft.Yes; 766Assert.Equal(RightToLeft.Yes, control.RightToLeft); 806owner.RightToLeft = RightToLeft.Yes; 925Assert.Equal(RightToLeft.Yes, control.RightToLeft); 959owner.RightToLeft = RightToLeft.Yes; 1002Assert.Equal(RightToLeft.Yes, ((Control)control).RightToLeft); 1032owner.RightToLeft = RightToLeft.Yes; 1082Assert.Equal(RightToLeft.Yes, ((Control)control).RightToLeft); 2359owner.RightToLeft = RightToLeft.Yes; 2360Assert.Equal(RightToLeft.Yes, control.RightToLeft); 2503owner.RightToLeft = RightToLeft.Yes; 2504Assert.Equal(RightToLeft.Yes, control.RightToLeft); 2635owner.RightToLeft = RightToLeft.Yes; 2636Assert.Equal(RightToLeft.Yes, ((Control)control).RightToLeft); 2699owner.RightToLeft = RightToLeft.Yes; 2700Assert.Equal(RightToLeft.Yes, ((Control)control).RightToLeft);
System\Windows\Forms\ControlTests.cs (8)
643[InlineData(RightToLeft.Yes, 0x7000)] 780[InlineData(RightToLeft.Yes)] 799[InlineData(RightToLeft.Yes)] 818[InlineData(RightToLeft.Yes)] 839[InlineData(RightToLeft.Yes)] 860[InlineData(RightToLeft.Yes)] 922[InlineData(RightToLeft.Yes)] 979[InlineData(RightToLeft.Yes)]
System\Windows\Forms\ControlTests.Handlers.cs (1)
5081RightToLeft = RightToLeft.Yes
System\Windows\Forms\ControlTests.Methods.cs (15)
6540control.RightToLeft = RightToLeft.Yes; 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 }; 6948yield return new object[] { RightToLeft.Yes, LeftRightAlignment.Left, LeftRightAlignment.Right }; 6949yield return new object[] { RightToLeft.Yes, LeftRightAlignment.Right, LeftRightAlignment.Left }; 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 };
System\Windows\Forms\ControlTests.Properties.cs (44)
10076RightToLeft = RightToLeft.Yes 10119RightToLeft = RightToLeft.Yes 10131Assert.Equal(RightToLeft.Yes, child1.RightToLeft); 10138Assert.Equal(RightToLeft.Yes, child1.RightToLeft); 10144[InlineData(RightToLeft.Yes, RightToLeft.Yes, 1)] 10175[InlineData(RightToLeft.Yes, RightToLeft.Yes, 0)] 10182RightToLeft = RightToLeft.Yes 10222control.RightToLeft = RightToLeft.Yes; 10223Assert.Equal(RightToLeft.Yes, control.RightToLeft); 10227control.RightToLeft = RightToLeft.Yes; 10228Assert.Equal(RightToLeft.Yes, control.RightToLeft); 10238control.RightToLeft = RightToLeft.Yes; 10239Assert.Equal(RightToLeft.Yes, control.RightToLeft); 10257control.RightToLeft = RightToLeft.Yes; 10258Assert.Equal(RightToLeft.Yes, control.RightToLeft); 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); 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 10392control.RightToLeft = RightToLeft.Yes; 10393Assert.Equal(RightToLeft.Yes, control.RightToLeft); 10394Assert.Equal(RightToLeft.Yes, child1.RightToLeft); 10401control.RightToLeft = RightToLeft.Yes; 10402Assert.Equal(RightToLeft.Yes, control.RightToLeft); 10403Assert.Equal(RightToLeft.Yes, child1.RightToLeft); 10412Assert.Equal(RightToLeft.Yes, child1.RightToLeft); 10422control.RightToLeft = RightToLeft.Yes; 10423Assert.Equal(RightToLeft.Yes, control.RightToLeft); 10424Assert.Equal(RightToLeft.Yes, child1.RightToLeft); 10446control.RightToLeft = RightToLeft.Yes; 10447Assert.Equal(RightToLeft.Yes, control.RightToLeft); 10474control.RightToLeft = RightToLeft.Yes; 10475Assert.Equal(RightToLeft.Yes, control.RightToLeft);
System\Windows\Forms\DataGridViewCellTests.cs (1)
3273RightToLeft = RightToLeft.Yes
System\Windows\Forms\DataGridViewRowTests.cs (24)
3427true, true, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.InsetDouble, true, true, isFirstDisplayedRow, true, 3437false, true, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.InsetDouble, true, true, isFirstDisplayedRow, true, 3449true, false, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.InsetDouble, true, true, true, true, 3459false, false, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.InsetDouble, true, true, true, true, 3469false, false, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.InsetDouble, true, true, false, true, 3524true, true, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetDouble, true, true, isFirstDisplayedRow, true, 3534false, true, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetDouble, true, true, isFirstDisplayedRow, true, 3546true, false, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetDouble, true, true, true, true, 3556false, false, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetDouble, true, true, true, true, 3566false, false, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetDouble, true, true, false, true, 3582true, true, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, isFirstDisplayedRow, isLastVisibleRow, 3597true, false, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, true, isLastVisibleRow, 3609false, true, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, true, true, 3619false, true, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, true, false, 3629false, true, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, false, true, 3639false, true, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, false, false, 3649false, false, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, true, true, 3659false, false, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, false, false, 4662RightToLeft = RightToLeft.Yes 4759RightToLeft = RightToLeft.Yes 5108RightToLeft = RightToLeft.Yes 5205RightToLeft = RightToLeft.Yes 5428RightToLeft = RightToLeft.Yes 5525RightToLeft = RightToLeft.Yes
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (13)
1018yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Right, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1020yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Left, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1022yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Down, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1024yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Up, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1026yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Home, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1028yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.End, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1030yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Prior, dataGridViewWantsInputKey, !dataGridViewWantsInputKey || valueChanged }; 1032yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Next, dataGridViewWantsInputKey, !dataGridViewWantsInputKey || valueChanged }; 1034yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Delete, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1036yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Enter, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1038yield return new object[] { RightToLeft.Yes, 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) }; 1042yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.A, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
System\Windows\Forms\HScrollBarTests.cs (6)
171control.RightToLeft = RightToLeft.Yes; 172Assert.Equal(RightToLeft.Yes, control.RightToLeft); 176control.RightToLeft = RightToLeft.Yes; 177Assert.Equal(RightToLeft.Yes, control.RightToLeft); 187control.RightToLeft = RightToLeft.Yes; 188Assert.Equal(RightToLeft.Yes, control.RightToLeft);
System\Windows\Forms\ListBoxTests.cs (6)
2204control.RightToLeft = RightToLeft.Yes; 2205Assert.Equal(RightToLeft.Yes, control.RightToLeft); 2209control.RightToLeft = RightToLeft.Yes; 2210Assert.Equal(RightToLeft.Yes, control.RightToLeft); 2220control.RightToLeft = RightToLeft.Yes; 2221Assert.Equal(RightToLeft.Yes, control.RightToLeft);
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (3)
659[InlineData(true, true, RightToLeft.Yes, true)] 662[InlineData(true, false, RightToLeft.Yes, true)] 665[InlineData(false, true, RightToLeft.Yes, false)]
System\Windows\Forms\MdiClientTests.cs (19)
340[InlineData(RightToLeft.Yes, true)] 365[InlineData(RightToLeft.Inherit, RightToLeft.Yes)] 368[InlineData(RightToLeft.No, RightToLeft.Yes)] 369[InlineData(RightToLeft.Yes, RightToLeft.Inherit)] 370[InlineData(RightToLeft.Yes, RightToLeft.No)] 371[InlineData(RightToLeft.Yes, RightToLeft.Yes)] 392[InlineData(RightToLeft.Inherit, RightToLeft.Yes, true)] 393[InlineData(RightToLeft.Inherit, RightToLeft.Yes, 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)]
System\Windows\Forms\MdiControlStripTests.cs (3)
195[InlineData(RightToLeft.Yes)] 241[InlineData(RightToLeft.Yes)] 286[InlineData(RightToLeft.Yes)]
System\Windows\Forms\MonthCalendarTests.cs (10)
1717[InlineData(RightToLeft.Yes, true, 1)] 1718[InlineData(RightToLeft.Yes, false, 0)] 1757[InlineData(RightToLeft.Yes, true, 1, 1, 2)] 1758[InlineData(RightToLeft.Yes, false, 0, 0, 1)] 1855RightToLeft = RightToLeft.Yes 3783yield return new object[] { RightToLeft.Yes, null }; 3784yield return new object[] { RightToLeft.Yes, new EventArgs() }; 3822yield return new object[] { RightToLeft.Yes, null, 1 }; 3823yield return new object[] { RightToLeft.Yes, new EventArgs(), 1 }; 3877RightToLeft = RightToLeft.Yes
System\Windows\Forms\PictureBoxTests.cs (6)
1248control.RightToLeft = RightToLeft.Yes; 1249Assert.Equal(RightToLeft.Yes, control.RightToLeft); 1253control.RightToLeft = RightToLeft.Yes; 1254Assert.Equal(RightToLeft.Yes, control.RightToLeft); 1264control.RightToLeft = RightToLeft.Yes; 1265Assert.Equal(RightToLeft.Yes, control.RightToLeft);
System\Windows\Forms\ProgressBarTests.cs (12)
167[InlineData(RightToLeft.Yes, true, 0x56010000, 0x400000)] 170[InlineData(RightToLeft.Yes, false, 0x56010000, 0x7000)] 1182[InlineData(RightToLeft.Yes, true, 1)] 1183[InlineData(RightToLeft.Yes, false, 0)] 1222[InlineData(RightToLeft.Yes, true, 1, 1, 2)] 1223[InlineData(RightToLeft.Yes, false, 0, 0, 1)] 1320RightToLeft = RightToLeft.Yes 2370yield return new object[] { RightToLeft.Yes, null }; 2371yield return new object[] { RightToLeft.Yes, new EventArgs() }; 2409yield return new object[] { RightToLeft.Yes, null, 1 }; 2410yield return new object[] { RightToLeft.Yes, new EventArgs(), 1 }; 2464RightToLeft = RightToLeft.Yes
System\Windows\Forms\ScrollBarTests.cs (108)
596[InlineData(RightToLeft.Yes)] 1211control.RightToLeft = RightToLeft.Yes; 1212Assert.Equal(RightToLeft.Yes, control.RightToLeft); 1216control.RightToLeft = RightToLeft.Yes; 1217Assert.Equal(RightToLeft.Yes, control.RightToLeft); 1227control.RightToLeft = RightToLeft.Yes; 1228Assert.Equal(RightToLeft.Yes, control.RightToLeft); 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 }; 2297RightToLeft.Yes, 10, -120, 2306RightToLeft.Yes, 10, -121, 2315RightToLeft.Yes, 10, -240, 2325RightToLeft.Yes, 1, -120, 2334RightToLeft.Yes, 1, -240, 2344RightToLeft.Yes, 100, -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, 2646RightToLeft = RightToLeft.Yes 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 }; 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 }; 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 }; 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 }; 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 }; 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 }; 2813yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.EndScroll, 10, ScrollEventType.EndScroll }; 2815yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.ThumbPosition, 10, ScrollEventType.ThumbPosition }; 2817yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.ThumbTrack, 10, ScrollEventType.ThumbTrack }; 2819yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.SmallDecrement - 1, 10, (ScrollEventType)ushort.MaxValue }; 2821yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.EndScroll + 1, 10, ScrollEventType.EndScroll + 1 }; 2930[InlineData(RightToLeft.Yes, 0)] 2931[InlineData(RightToLeft.Yes, 50)] 2944[InlineData(RightToLeft.Yes, 100, 100)] 2946[InlineData(RightToLeft.Yes, 0, 0)] 2960[InlineData(RightToLeft.Yes, 100, 0, AccessibleStates.None)] 2961[InlineData(RightToLeft.Yes, 100, 50, AccessibleStates.None)] 2962[InlineData(RightToLeft.Yes, 100, 100, AccessibleStates.Invisible)] 2964[InlineData(RightToLeft.Yes, 0, 0, AccessibleStates.Invisible)] 2976[InlineData(RightToLeft.Yes, 100)] 2977[InlineData(RightToLeft.Yes, 50)] 2989[InlineData(RightToLeft.Yes, 100, 0)] 2991[InlineData(RightToLeft.Yes, 0, 0)] 3004[InlineData(RightToLeft.Yes, 100, 0, AccessibleStates.Invisible)] 3005[InlineData(RightToLeft.Yes, 100, 50, AccessibleStates.None)] 3006[InlineData(RightToLeft.Yes, 100, 100, AccessibleStates.None)] 3008[InlineData(RightToLeft.Yes, 0, 0, AccessibleStates.Invisible)] 3019[InlineData(RightToLeft.Yes, 100, 0)] 3021[InlineData(RightToLeft.Yes, 0, 0)] 3033[InlineData(RightToLeft.Yes, 0)] 3034[InlineData(RightToLeft.Yes, 50)] 3046[InlineData(RightToLeft.Yes, 100, 100)] 3048[InlineData(RightToLeft.Yes, 0, 0)] 3061[InlineData(RightToLeft.Yes, 100, 0, AccessibleStates.None)] 3062[InlineData(RightToLeft.Yes, 100, 50, AccessibleStates.None)] 3063[InlineData(RightToLeft.Yes, 100, 100, AccessibleStates.Invisible)] 3065[InlineData(RightToLeft.Yes, 0, 0, AccessibleStates.Invisible)] 3076[InlineData(RightToLeft.Yes, 50)] 3078[InlineData(RightToLeft.Yes, 100)] 3092[InlineData(RightToLeft.Yes, 100, 0, AccessibleStates.Invisible)] 3093[InlineData(RightToLeft.Yes, 100, 50, AccessibleStates.None)] 3094[InlineData(RightToLeft.Yes, 100, 100, AccessibleStates.None)] 3096[InlineData(RightToLeft.Yes, 0, 0, AccessibleStates.Invisible)]
System\Windows\Forms\StatusStripTests.cs (16)
203yield return new object[] { ToolStripLayoutStyle.Flow, RightToLeft.Yes, new Padding(14, 0, 1, 0) }; 207yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, RightToLeft.Yes, new Padding(14, 0, 1, 0) }; 211yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, RightToLeft.Yes, new Padding(14, 0, 1, 0) }; 215yield return new object[] { ToolStripLayoutStyle.Table, RightToLeft.Yes, new Padding(14, 0, 1, 0) }; 219yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, RightToLeft.Yes, new Padding(1, 3, 1, 22) }; 621yield return new object[] { true, layoutStyle, RightToLeft.Yes, new Rectangle(0, 0, 12, 22) }; 624yield return new object[] { false, layoutStyle, RightToLeft.Yes, Rectangle.Empty }; 647yield return new object[] { true, layoutStyle, RightToLeft.Yes, new Rectangle(0, 10, 12, 22) }; 650yield return new object[] { false, layoutStyle, RightToLeft.Yes, Rectangle.Empty }; 674yield return new object[] { true, layoutStyle, RightToLeft.Yes, new Rectangle(0, 0, 12, 12) }; 677yield return new object[] { false, layoutStyle, RightToLeft.Yes, Rectangle.Empty }; 724yield return new object[] { RightToLeft.Yes, true, 1, 0 }; 728yield return new object[] { RightToLeft.Yes, false, 0, 1 }; 1007yield return new object[] { RightToLeft.Yes, true, 1 }; 1011yield return new object[] { RightToLeft.Yes, false, 0 }; 1173RightToLeft = RightToLeft.Yes
System\Windows\Forms\TabControlTests.cs (12)
335[InlineData(RightToLeft.Yes, true, 0x56010800, 0x500000)] 338[InlineData(RightToLeft.Yes, false, 0x56010800, 0x7000)] 1826[InlineData(RightToLeft.Yes, true, 1)] 1827[InlineData(RightToLeft.Yes, false, 0)] 1866[InlineData(RightToLeft.Yes, true, 1, 1, 2)] 1867[InlineData(RightToLeft.Yes, false, 0, 0, 1)] 1964RightToLeft = RightToLeft.Yes 4495yield return new object[] { RightToLeft.Yes, null }; 4496yield return new object[] { RightToLeft.Yes, new EventArgs() }; 4534yield return new object[] { RightToLeft.Yes, null, 1 }; 4535yield return new object[] { RightToLeft.Yes, new EventArgs(), 1 }; 4589RightToLeft = RightToLeft.Yes
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (2)
87[InlineData(RightToLeft.Yes, true)] 101[InlineData(RightToLeft.Yes)]
System\Windows\Forms\ToolStripButtonTests.cs (9)
1229yield return new object[] { ContentAlignment.TopLeft, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Top | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft }; 1232yield return new object[] { ContentAlignment.TopCenter, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Top | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft }; 1235yield return new object[] { ContentAlignment.TopRight, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Top | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft }; 1239yield return new object[] { ContentAlignment.MiddleLeft, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft }; 1242yield return new object[] { ContentAlignment.MiddleCenter, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft }; 1245yield return new object[] { ContentAlignment.MiddleRight, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft }; 1249yield return new object[] { ContentAlignment.BottomLeft, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft }; 1252yield return new object[] { ContentAlignment.BottomCenter, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft }; 1255yield return new object[] { ContentAlignment.BottomRight, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
System\Windows\Forms\ToolStripControlHostTests.cs (14)
34RightToLeft = RightToLeft.Yes, 643c.RightToLeft = RightToLeft.Yes; 644Assert.Equal(RightToLeft.Yes, c.RightToLeft); 645Assert.Equal(RightToLeft.Yes, item.RightToLeft); 1608item.RightToLeft = RightToLeft.Yes; 1609Assert.Equal(RightToLeft.Yes, item.RightToLeft); 1613item.RightToLeft = RightToLeft.Yes; 1614Assert.Equal(RightToLeft.Yes, item.RightToLeft); 1624item.RightToLeft = RightToLeft.Yes; 1625Assert.Equal(RightToLeft.Yes, item.RightToLeft); 1646item.RightToLeft = RightToLeft.Yes; 1647Assert.Equal(RightToLeft.Yes, item.RightToLeft); 1689item.RightToLeft = RightToLeft.Yes; 1690Assert.Equal(RightToLeft.Yes, item.RightToLeft);
System\Windows\Forms\ToolStripDropDownTests.cs (69)
1112yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1115yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1118yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1121yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1124yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1128yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1131yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1134yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1137yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1140yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1144yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1147yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1150yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1153yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1156yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1160yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1163yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1166yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1169yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1172yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1176yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1179yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1182yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1185yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1188yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1237yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1240yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1243yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1246yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1249yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1253yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1256yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1259yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1262yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1265yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1269yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1272yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1275yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1278yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1281yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1285yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1288yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1291yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1294yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1297yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1301yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1304yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1307yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1310yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1313yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 2329RightToLeft = RightToLeft.Yes 2333Assert.Equal(RightToLeft.Yes, control.RightToLeft); 2344RightToLeft = RightToLeft.Yes 2350Assert.Equal(RightToLeft.Yes, control.RightToLeft); 2361RightToLeft = RightToLeft.Yes 2372Assert.Equal(RightToLeft.Yes, control.RightToLeft); 2376[InlineData(RightToLeft.Yes, RightToLeft.Yes, 1)] 2417control.RightToLeft = RightToLeft.Yes; 2418Assert.Equal(RightToLeft.Yes, control.RightToLeft); 2422control.RightToLeft = RightToLeft.Yes; 2423Assert.Equal(RightToLeft.Yes, control.RightToLeft); 2433control.RightToLeft = RightToLeft.Yes; 2434Assert.Equal(RightToLeft.Yes, control.RightToLeft); 3092RightToLeft = RightToLeft.Yes 3373RightToLeft = RightToLeft.Yes 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 (69)
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)] 6544[InlineData(RightToLeft.Inherit, RightToLeft.Yes, RightToLeft.Yes, 0)] 7096[InlineData(RightToLeft.Yes, RightToLeft.Yes)] 7113[InlineData(RightToLeft.Yes, RightToLeft.Yes)] 7133RightToLeft = RightToLeft.Yes 7144Assert.Equal(RightToLeft.Yes, item.RightToLeft); 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 }; 7170yield return new object[] { RightToLeft.Inherit, RightToLeft.Yes, RightToLeft.Yes, 1 }; 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 }; 7280yield return new object[] { RightToLeft.Inherit, RightToLeft.Yes, RightToLeft.Yes }; 7382item.RightToLeft = RightToLeft.Yes; 7383Assert.Equal(RightToLeft.Yes, item.RightToLeft); 7387item.RightToLeft = RightToLeft.Yes; 7388Assert.Equal(RightToLeft.Yes, item.RightToLeft); 7398item.RightToLeft = RightToLeft.Yes; 7399Assert.Equal(RightToLeft.Yes, item.RightToLeft); 7418item.RightToLeft = RightToLeft.Yes; 7419Assert.Equal(RightToLeft.Yes, item.RightToLeft); 7446item.RightToLeft = RightToLeft.Yes; 7447Assert.Equal(RightToLeft.Yes, item.RightToLeft); 12174yield return new object[] { RightToLeft.Yes, RightToLeft.Yes, null, RightToLeft.Yes, 0 }; 12175yield return new object[] { RightToLeft.Yes, RightToLeft.Yes, new EventArgs(), RightToLeft.Yes, 0 }; 12177yield return new object[] { RightToLeft.Yes, RightToLeft.No, null, RightToLeft.No, 0 }; 12178yield return new object[] { RightToLeft.Yes, RightToLeft.No, new EventArgs(), RightToLeft.No, 0 }; 12180yield return new object[] { RightToLeft.Yes, RightToLeft.Inherit, null, RightToLeft.Yes, 1 }; 12181yield return new object[] { RightToLeft.Yes, RightToLeft.Inherit, new EventArgs(), RightToLeft.Yes, 1 }; 12183yield return new object[] { RightToLeft.No, RightToLeft.Yes, null, RightToLeft.Yes, 0 }; 12184yield return new object[] { RightToLeft.No, RightToLeft.Yes, new EventArgs(), RightToLeft.Yes, 0 }; 12192yield return new object[] { RightToLeft.Inherit, RightToLeft.Yes, null, RightToLeft.Yes, 0 }; 12193yield return new object[] { RightToLeft.Inherit, RightToLeft.Yes, new EventArgs(), RightToLeft.Yes, 0 }; 12639yield return new object[] { RightToLeft.Yes, null, 0 }; 12640yield return new object[] { RightToLeft.Yes, new EventArgs(), 0 }; 14225item.RightToLeft = RightToLeft.Yes;
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 (1)
298RightToLeft = RightToLeft.Yes,
System\Windows\Forms\ToolStripRendererTests.cs (1)
478yield return new object[] { new StatusStrip { RightToLeft = RightToLeft.Yes } };
System\Windows\Forms\ToolStripTests.cs (122)
1663yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1666yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1669yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1672yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1675yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1679yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1682yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1685yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1688yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1691yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1695yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1698yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1701yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1704yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1707yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1711yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1714yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1717yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1720yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1723yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1727yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1730yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1733yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1736yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1739yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1788yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1791yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1794yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1797yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1800yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1804yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1807yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1810yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1813yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1816yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1820yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1823yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1826yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1829yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1832yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1836yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1839yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1842yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1845yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1848yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1852yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1855yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1858yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1861yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1864yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1924yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1927yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1930yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1933yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1936yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1940yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1943yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1946yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1949yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1952yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1956yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1959yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1962yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1965yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1968yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1972yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1975yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1978yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1981yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1984yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1988yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1991yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1994yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1997yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 2000yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 2028yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2031yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2034yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2037yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2040yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 2044yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2047yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2050yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2053yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2056yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 2060yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2063yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 2066yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 2069yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2072yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 2076yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2079yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2082yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2085yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2088yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 2092yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 2095yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 2098yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 2101yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 2104yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 2266yield return new object[] { ToolStripLayoutStyle.Flow, ToolStripGripStyle.Visible, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) }; 2269yield return new object[] { ToolStripLayoutStyle.Flow, ToolStripGripStyle.Hidden, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) }; 2273yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripGripStyle.Visible, RightToLeft.Yes, new Rectangle(0, 0, width, 25) }; 2276yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripGripStyle.Hidden, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) }; 2280yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, ToolStripGripStyle.Visible, RightToLeft.Yes, new Rectangle(0, 0, width, 25) }; 2283yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, ToolStripGripStyle.Hidden, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) }; 2287yield return new object[] { ToolStripLayoutStyle.Table, ToolStripGripStyle.Visible, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) }; 2290yield return new object[] { ToolStripLayoutStyle.Table, ToolStripGripStyle.Hidden, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) }; 2294yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripGripStyle.Visible, RightToLeft.Yes, new Rectangle(0, x, 99, height) }; 2297yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripGripStyle.Hidden, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) }; 3444[InlineData(RightToLeft.Yes, RightToLeft.Yes, 1)] 3501RightToLeft = RightToLeft.Yes 3513Assert.Equal(RightToLeft.Yes, item1.RightToLeft); 3520Assert.Equal(RightToLeft.Yes, item1.RightToLeft); 3539control.RightToLeft = RightToLeft.Yes; 3540Assert.Equal(RightToLeft.Yes, control.RightToLeft); 3544control.RightToLeft = RightToLeft.Yes; 3545Assert.Equal(RightToLeft.Yes, control.RightToLeft); 3555control.RightToLeft = RightToLeft.Yes; 3556Assert.Equal(RightToLeft.Yes, control.RightToLeft); 6452RightToLeft = RightToLeft.Yes
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (2)
330[InlineData(true, RightToLeft.Yes, true)] 333[InlineData(false, RightToLeft.Yes, false)]
System\Windows\Forms\TreeViewTests.cs (12)
670[InlineData(RightToLeft.Yes, true, 0x56010007, 0x400200)] 673[InlineData(RightToLeft.Yes, false, 0x56010047, 0x7200)] 3068[InlineData(RightToLeft.Yes, true, 1)] 3069[InlineData(RightToLeft.Yes, false, 0)] 3108[InlineData(RightToLeft.Yes, true, 1, 1, 2)] 3109[InlineData(RightToLeft.Yes, false, 0, 0, 1)] 3206RightToLeft = RightToLeft.Yes 6502yield return new object[] { RightToLeft.Yes, null }; 6503yield return new object[] { RightToLeft.Yes, new EventArgs() }; 6541yield return new object[] { RightToLeft.Yes, null, 1 }; 6542yield return new object[] { RightToLeft.Yes, new EventArgs(), 1 }; 6596RightToLeft = RightToLeft.Yes
System\Windows\Forms\VScrollBarTests.cs (3)
169control.RightToLeft = RightToLeft.Yes; 174control.RightToLeft = RightToLeft.Yes; 185control.RightToLeft = RightToLeft.Yes;
TextBoxTests.cs (1)
435RightToLeft = RightToLeft.Yes
TrackBarTests.cs (34)
190[InlineData(RightToLeft.Yes, true, 0x500000)] 193[InlineData(RightToLeft.Yes, false, 0x7000)] 797[InlineData(RightToLeft.Yes, true, 5)] 800[InlineData(RightToLeft.Yes, false, 5)] 1548[InlineData(RightToLeft.Yes, true, 1)] 1549[InlineData(RightToLeft.Yes, false, 0)] 1588[InlineData(RightToLeft.Yes, true, 1, 1, 2)] 1589[InlineData(RightToLeft.Yes, false, 0, 0, 1)] 1686RightToLeft = RightToLeft.Yes 2042yield return new object[] { Orientation.Horizontal, RightToLeft.Yes, true, 0, 0 }; 2043yield return new object[] { Orientation.Horizontal, RightToLeft.Yes, false, 0, 10 }; 2048yield return new object[] { Orientation.Vertical, RightToLeft.Yes, true, 0, 10 }; 2049yield return new object[] { Orientation.Vertical, RightToLeft.Yes, 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 }; 2061yield return new object[] { Orientation.Vertical, RightToLeft.Yes, true, 1, 9 }; 2062yield return new object[] { Orientation.Vertical, RightToLeft.Yes, 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 }; 2074yield return new object[] { Orientation.Vertical, RightToLeft.Yes, true, 5, 5 }; 2075yield return new object[] { Orientation.Vertical, RightToLeft.Yes, 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 }; 2087yield return new object[] { Orientation.Vertical, RightToLeft.Yes, true, 9, 1 }; 2088yield return new object[] { Orientation.Vertical, RightToLeft.Yes, 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 }; 2100yield return new object[] { Orientation.Vertical, RightToLeft.Yes, true, 10, 0 }; 2101yield return new object[] { Orientation.Vertical, RightToLeft.Yes, false, 10, 0 }; 2605yield return new object[] { RightToLeft.Yes, null }; 2606yield return new object[] { RightToLeft.Yes, new EventArgs() }; 2644yield return new object[] { RightToLeft.Yes, null, 1 }; 2645yield return new object[] { RightToLeft.Yes, new EventArgs(), 1 }; 2699RightToLeft = RightToLeft.Yes
System.Windows.Forms.TestUtilities (30)
CommonTestHelperEx.cs (2)
69{ RightToLeft.Yes, RightToLeft.Yes },
ScrollBarTestHelper.cs (16)
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 (12)
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; 57foreach (RightToLeft rightToLeft in new RightToLeft[] { RightToLeft.Yes, RightToLeft.No }) 61bool isMirrored = rightToLeft == RightToLeft.Yes && rightToLeftLayout; 79foreach (RightToLeft rightToLeft in new RightToLeft[] { RightToLeft.Yes, RightToLeft.No }) 83bool isMirrored = rightToLeft == RightToLeft.Yes && rightToLeftLayout; 103foreach (RightToLeft rightToLeft in new RightToLeft[] { RightToLeft.Yes, RightToLeft.No }) 107bool isMirrored = rightToLeft == RightToLeft.Yes && rightToLeftLayout; 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 (1)
ApplicationTests.cs (1)
29child.RightToLeft = RightToLeft.Yes;
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHostPropertyMap.cs (1)
179SW.FlowDirection toFlowDirection = ((fromRTL == SWF.RightToLeft.Yes) ? SW.FlowDirection.RightToLeft : SW.FlowDirection.LeftToRight);
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
115adapter.RightToLeft = SWF.RightToLeft.Yes;
WinFormsControlsTest (6)
MdiChild.cs (1)
98MyParent.MainMenuStrip.RightToLeft = chkRightToLeft.Checked ? RightToLeft.Yes : RightToLeft.No;
ScrollBars.cs (1)
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 (1)
56trackBar1.RightToLeft = chbRightToLeft.Checked ? RightToLeft.Yes : RightToLeft.No;