935 references to Yes
PresentationUI (2)
MS\Internal\Documents\DialogBaseForm.cs (1)
155RightToLeft = RightToLeft.Yes;
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
634if (RightToLeft == RightToLeft.Yes)
System.Windows.Forms (125)
System\Windows\Forms\ActiveX\AxHost.cs (3)
361return rtol == Forms.RightToLeft.Yes; 363set => base.RightToLeft = (value) ? Forms.RightToLeft.Yes : Forms.RightToLeft.No; 2130if (control.RightToLeft == Forms.RightToLeft.Yes)
System\Windows\Forms\Control.cs (6)
1363if (RightToLeft == RightToLeft.Yes) 7401si.nPos = (RightToLeft == RightToLeft.Yes) ? si.nMax : si.nMin; 10529if (RightToLeft == RightToLeft.Yes) 10547if (RightToLeft == RightToLeft.Yes) 10565if (RightToLeft == RightToLeft.Yes) 12723TopLevelControlInternal 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 (3)
49if (_origRightToLeft == RightToLeft.Yes) 75bool rightToLeft = comboBox.RightToLeft == RightToLeft.Yes; 149if (_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)
30057if (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)
337if (_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)
133(RightToLeft == RightToLeft.Yes && !(SelectionLength == 0 && SelectionStart == 0))) 145(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) 4820if (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)
211if (RightToLeft == RightToLeft.Yes) 266if (SizingGrip && RightToLeft == RightToLeft.Yes) 588if (RightToLeft == RightToLeft.Yes) 602if (RightToLeft != RightToLeft.Yes)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (5)
603direction = (RightToLeft == RightToLeft.Yes) ? ToolStripDropDownDirection.AboveLeft : ToolStripDropDownDirection.AboveRight; 608direction = (RightToLeft == RightToLeft.Yes) ? ToolStripDropDownDirection.BelowLeft : ToolStripDropDownDirection.BelowRight; 2025if (rtlAware && RightToLeft == RightToLeft.Yes) 3019if (RightToLeft == RightToLeft.Yes) 4180if (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 1821if (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)
243toolStrip.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) 668if (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)
982if (statusStrip.RightToLeft == RightToLeft.Yes) 989if (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; 667RenderSmall3DBorderInternal(g, new Rectangle(Point.Empty, item.Size), state, (item.RightToLeft == RightToLeft.Yes)); 712bool rightToLeft = (item.RightToLeft == RightToLeft.Yes);
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (4)
179if (RightToLeft == RightToLeft.Yes && RightToLeftLayout) 829if (_orientation == Orientation.Horizontal && RightToLeft == RightToLeft.Yes && !IsMirrored) 888if (RightToLeft == RightToLeft.Yes) 1116if (_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)
1184isContainerRTL = 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)
32RightToLeft = RightToLeft.Yes;
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
452if (RightToLeft == RightToLeft.Yes) 820if (RightToLeft == RightToLeft.Yes)
System\Windows\Forms\Rendering\ControlPaint.cs (3)
447if (rightToLeft == RightToLeft.Yes && backgroundImageLayout == ImageLayout.None) 2547if (control.RightToLeft == RightToLeft.Yes) 2602if (control.RightToLeft == RightToLeft.Yes)
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
986if (horiz && !HScroll && (RightToLeft == RightToLeft.Yes)) 1232(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 (21)
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)
73bool 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\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (2)
873bool rightToLeft = label.RightToLeft == RightToLeft.Yes; 991return RightToLeft == RightToLeft.Yes
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1806if (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)
41_formatStringDialog.RightToLeft.Should().Be(RightToLeft.Yes);
System.Windows.Forms.Tests (746)
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (2)
34[InlineData(RightToLeft.Yes)] 66[InlineData(RightToLeft.Yes)]
System\Windows\Forms\AccessibleObjects\DataGridViewTopLeftHeaderCellAccessibleObjectTests.cs (2)
147{ RightToLeft.Yes, null, SR.DataGridView_AccTopLeftColumnHeaderCellNameRTL }, 149{ RightToLeft.Yes, "It is not empty string", string.Empty }
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (3)
206using HScrollBar scrollBar = GetHScrollBar(createControl: true, RightToLeft.Yes, minimum: 0, maximum: 100, value: 50); 242[InlineData(RightToLeft.Yes, 99, 100)] 243[InlineData(RightToLeft.Yes, 0, 0)]
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (3)
229using HScrollBar scrollBar = GetHScrollBar(createControl: true, RightToLeft.Yes, minimum: 0, maximum: 100, value: 50); 265[InlineData(RightToLeft.Yes, 99, 100)] 266[InlineData(RightToLeft.Yes, 0, 0)]
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (3)
216using HScrollBar scrollBar = GetHScrollBar(createControl: true, RightToLeft.Yes, minimum: 0, maximum: 100, value: 50); 252[InlineData(RightToLeft.Yes, 0, 100)] 253[InlineData(RightToLeft.Yes, 0, 0)]
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (3)
216using HScrollBar scrollBar = GetHScrollBar(createControl: true, RightToLeft.Yes, minimum: 0, maximum: 100, value: 50); 252[InlineData(RightToLeft.Yes, 0, 100)] 253[InlineData(RightToLeft.Yes, 0, 0)]
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (11)
71foreach (RightToLeft rightToLeft in new RightToLeft[] { RightToLeft.Yes, RightToLeft.No }) 75if (rightToLeft == RightToLeft.Yes && !rightToLeftLayout) 106foreach (RightToLeft rightToLeft in new RightToLeft[] { RightToLeft.Yes, RightToLeft.No }) 110if (orientation == Orientation.Vertical || (rightToLeft == RightToLeft.Yes && !rightToLeftLayout)) 250[InlineData(Orientation.Vertical, RightToLeft.Yes, true)] 251[InlineData(Orientation.Vertical, RightToLeft.Yes, false)] 254[InlineData(Orientation.Horizontal, RightToLeft.Yes, false)] 279[InlineData(Orientation.Horizontal, RightToLeft.Yes, true)] 405[InlineData(Orientation.Horizontal, RightToLeft.Yes, true)] 416[InlineData(Orientation.Vertical, RightToLeft.Yes, true)] 417[InlineData(Orientation.Vertical, RightToLeft.Yes, false)]
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (8)
71foreach (RightToLeft rightToLeft in new RightToLeft[] { RightToLeft.Yes, RightToLeft.No }) 75if (rightToLeft == RightToLeft.Yes && !rightToLeftLayout) 106foreach (RightToLeft rightToLeft in new RightToLeft[] { RightToLeft.Yes, RightToLeft.No }) 110if (orientation == Orientation.Vertical || (rightToLeft == RightToLeft.Yes && !rightToLeftLayout)) 251[InlineData(Orientation.Vertical, RightToLeft.Yes, true)] 252[InlineData(Orientation.Vertical, RightToLeft.Yes, false)] 255[InlineData(Orientation.Horizontal, RightToLeft.Yes, false)] 280[InlineData(Orientation.Horizontal, RightToLeft.Yes, true)]
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (3)
204[InlineData(RightToLeft.Yes)] 226[InlineData(RightToLeft.Yes, 0, 100)] 227[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)
214[InlineData(RightToLeft.Yes)] 236[InlineData(RightToLeft.Yes, 99, 100)] 237[InlineData(RightToLeft.Yes, 0, 0)]
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (3)
214[InlineData(RightToLeft.Yes)] 236[InlineData(RightToLeft.Yes, 99, 100)] 237[InlineData(RightToLeft.Yes, 0, 0)]
System\Windows\Forms\ButtonBaseTests.cs (10)
186yield return new object[] { flatStyle, RightToLeft.Yes, textAlign, 0x56010000, 0x7000 }; 192yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.BottomLeft, 0x56012A00, 0x6000 }; 193yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.BottomCenter, 0x56012B00, 0x6000 }; 194yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.BottomRight, 0x56012900, 0x6000 }; 195yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.MiddleLeft, 0x56012E00, 0x6000 }; 196yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.MiddleCenter, 0x56012F00, 0x6000 }; 197yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.MiddleRight, 0x56012D00, 0x6000 }; 198yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.TopLeft, 0x56012600, 0x6000 }; 199yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.TopCenter, 0x56012700, 0x6000 }; 200yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.TopRight, 0x56012500, 0x6000 };
System\Windows\Forms\ButtonTests.cs (10)
208yield return new object[] { flatStyle, RightToLeft.Yes, textAlign, 0x5601000B, 0x7000 }; 214yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.BottomLeft, 0x56012A00, 0x6000 }; 215yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.BottomCenter, 0x56012B00, 0x6000 }; 216yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.BottomRight, 0x56012900, 0x6000 }; 217yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.MiddleLeft, 0x56012E00, 0x6000 }; 218yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.MiddleCenter, 0x56012F00, 0x6000 }; 219yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.MiddleRight, 0x56012D00, 0x6000 }; 220yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.TopLeft, 0x56012600, 0x6000 }; 221yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.TopCenter, 0x56012700, 0x6000 }; 222yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.TopRight, 0x56012500, 0x6000 };
System\Windows\Forms\ColumnHeaderTests.cs (2)
1023[InlineData(RightToLeft.Yes, true, HorizontalAlignment.Left)] 1026[InlineData(RightToLeft.Yes, false, HorizontalAlignment.Right)]
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (4)
119[InlineData(ComboBoxStyle.DropDown, RightToLeft.Yes, true)] 121[InlineData(ComboBoxStyle.Simple, RightToLeft.Yes, true)] 135[InlineData(ComboBoxStyle.DropDown, RightToLeft.Yes)] 137[InlineData(ComboBoxStyle.Simple, RightToLeft.Yes)]
System\Windows\Forms\ComboBoxTests.cs (6)
1292control.RightToLeft = RightToLeft.Yes; 1293Assert.Equal(RightToLeft.Yes, control.RightToLeft); 1297control.RightToLeft = RightToLeft.Yes; 1298Assert.Equal(RightToLeft.Yes, control.RightToLeft); 1308control.RightToLeft = RightToLeft.Yes; 1309Assert.Equal(RightToLeft.Yes, control.RightToLeft);
System\Windows\Forms\ControlTests.ControlCollection.cs (16)
658owner.RightToLeft = RightToLeft.Yes; 768Assert.Equal(RightToLeft.Yes, control.RightToLeft); 808owner.RightToLeft = RightToLeft.Yes; 927Assert.Equal(RightToLeft.Yes, control.RightToLeft); 961owner.RightToLeft = RightToLeft.Yes; 1004Assert.Equal(RightToLeft.Yes, ((Control)control).RightToLeft); 1034owner.RightToLeft = RightToLeft.Yes; 1084Assert.Equal(RightToLeft.Yes, ((Control)control).RightToLeft); 2361owner.RightToLeft = RightToLeft.Yes; 2362Assert.Equal(RightToLeft.Yes, control.RightToLeft); 2505owner.RightToLeft = RightToLeft.Yes; 2506Assert.Equal(RightToLeft.Yes, control.RightToLeft); 2637owner.RightToLeft = RightToLeft.Yes; 2638Assert.Equal(RightToLeft.Yes, ((Control)control).RightToLeft); 2701owner.RightToLeft = RightToLeft.Yes; 2702Assert.Equal(RightToLeft.Yes, ((Control)control).RightToLeft);
System\Windows\Forms\ControlTests.cs (8)
645[InlineData(RightToLeft.Yes, 0x7000)] 782[InlineData(RightToLeft.Yes)] 801[InlineData(RightToLeft.Yes)] 820[InlineData(RightToLeft.Yes)] 841[InlineData(RightToLeft.Yes)] 862[InlineData(RightToLeft.Yes)] 924[InlineData(RightToLeft.Yes)] 981[InlineData(RightToLeft.Yes)]
System\Windows\Forms\ControlTests.Handlers.cs (1)
5083RightToLeft = RightToLeft.Yes
System\Windows\Forms\ControlTests.Methods.cs (15)
6509control.RightToLeft = RightToLeft.Yes; 6882yield return new object[] { RightToLeft.Yes, ContentAlignment.BottomCenter, ContentAlignment.BottomCenter }; 6883yield return new object[] { RightToLeft.Yes, ContentAlignment.BottomLeft, ContentAlignment.BottomRight }; 6884yield return new object[] { RightToLeft.Yes, ContentAlignment.BottomRight, ContentAlignment.BottomLeft }; 6885yield return new object[] { RightToLeft.Yes, ContentAlignment.MiddleCenter, ContentAlignment.MiddleCenter }; 6886yield return new object[] { RightToLeft.Yes, ContentAlignment.MiddleLeft, ContentAlignment.MiddleRight }; 6887yield return new object[] { RightToLeft.Yes, ContentAlignment.MiddleRight, ContentAlignment.MiddleLeft }; 6888yield return new object[] { RightToLeft.Yes, ContentAlignment.TopCenter, ContentAlignment.TopCenter }; 6889yield return new object[] { RightToLeft.Yes, ContentAlignment.TopLeft, ContentAlignment.TopRight }; 6890yield return new object[] { RightToLeft.Yes, ContentAlignment.TopRight, ContentAlignment.TopLeft }; 6917yield return new object[] { RightToLeft.Yes, LeftRightAlignment.Left, LeftRightAlignment.Right }; 6918yield return new object[] { RightToLeft.Yes, LeftRightAlignment.Right, LeftRightAlignment.Left }; 6945yield return new object[] { RightToLeft.Yes, HorizontalAlignment.Center, HorizontalAlignment.Center }; 6946yield return new object[] { RightToLeft.Yes, HorizontalAlignment.Left, HorizontalAlignment.Right }; 6947yield return new object[] { RightToLeft.Yes, HorizontalAlignment.Right, HorizontalAlignment.Left };
System\Windows\Forms\ControlTests.Properties.cs (44)
10078RightToLeft = RightToLeft.Yes 10121RightToLeft = RightToLeft.Yes 10133Assert.Equal(RightToLeft.Yes, child1.RightToLeft); 10140Assert.Equal(RightToLeft.Yes, child1.RightToLeft); 10146[InlineData(RightToLeft.Yes, RightToLeft.Yes, 1)] 10177[InlineData(RightToLeft.Yes, RightToLeft.Yes, 0)] 10184RightToLeft = RightToLeft.Yes 10224control.RightToLeft = RightToLeft.Yes; 10225Assert.Equal(RightToLeft.Yes, control.RightToLeft); 10229control.RightToLeft = RightToLeft.Yes; 10230Assert.Equal(RightToLeft.Yes, control.RightToLeft); 10240control.RightToLeft = RightToLeft.Yes; 10241Assert.Equal(RightToLeft.Yes, control.RightToLeft); 10259control.RightToLeft = RightToLeft.Yes; 10260Assert.Equal(RightToLeft.Yes, control.RightToLeft); 10314control.RightToLeft = RightToLeft.Yes; 10315Assert.Equal(RightToLeft.Yes, control.RightToLeft); 10316Assert.Equal(RightToLeft.Yes, child1.RightToLeft); 10317Assert.Equal(RightToLeft.Yes, child2.RightToLeft); 10323control.RightToLeft = RightToLeft.Yes; 10324Assert.Equal(RightToLeft.Yes, control.RightToLeft); 10325Assert.Equal(RightToLeft.Yes, child1.RightToLeft); 10326Assert.Equal(RightToLeft.Yes, child2.RightToLeft); 10344control.RightToLeft = RightToLeft.Yes; 10345Assert.Equal(RightToLeft.Yes, control.RightToLeft); 10346Assert.Equal(RightToLeft.Yes, child1.RightToLeft); 10347Assert.Equal(RightToLeft.Yes, child2.RightToLeft); 10358RightToLeft = RightToLeft.Yes 10394control.RightToLeft = RightToLeft.Yes; 10395Assert.Equal(RightToLeft.Yes, control.RightToLeft); 10396Assert.Equal(RightToLeft.Yes, child1.RightToLeft); 10403control.RightToLeft = RightToLeft.Yes; 10404Assert.Equal(RightToLeft.Yes, control.RightToLeft); 10405Assert.Equal(RightToLeft.Yes, child1.RightToLeft); 10414Assert.Equal(RightToLeft.Yes, child1.RightToLeft); 10424control.RightToLeft = RightToLeft.Yes; 10425Assert.Equal(RightToLeft.Yes, control.RightToLeft); 10426Assert.Equal(RightToLeft.Yes, child1.RightToLeft); 10448control.RightToLeft = RightToLeft.Yes; 10449Assert.Equal(RightToLeft.Yes, control.RightToLeft); 10476control.RightToLeft = RightToLeft.Yes; 10477Assert.Equal(RightToLeft.Yes, control.RightToLeft);
System\Windows\Forms\DataGridViewCellTests.cs (1)
3275RightToLeft = RightToLeft.Yes
System\Windows\Forms\DataGridViewRowTests.cs (24)
3429true, true, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.InsetDouble, true, true, isFirstDisplayedRow, true, 3439false, true, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.InsetDouble, true, true, isFirstDisplayedRow, true, 3451true, false, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.InsetDouble, true, true, true, true, 3461false, false, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.InsetDouble, true, true, true, true, 3471false, false, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.InsetDouble, true, true, false, true, 3526true, true, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetDouble, true, true, isFirstDisplayedRow, true, 3536false, true, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetDouble, true, true, isFirstDisplayedRow, true, 3548true, false, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetDouble, true, true, true, true, 3558false, false, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetDouble, true, true, true, true, 3568false, false, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetDouble, true, true, false, true, 3584true, true, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, isFirstDisplayedRow, isLastVisibleRow, 3599true, false, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, true, isLastVisibleRow, 3611false, true, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, true, true, 3621false, true, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, true, false, 3631false, true, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, false, true, 3641false, true, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, false, false, 3651false, false, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, true, true, 3661false, false, RightToLeft.Yes, DataGridViewAdvancedCellBorderStyle.OutsetPartial, true, true, false, false, 4664RightToLeft = RightToLeft.Yes 4761RightToLeft = RightToLeft.Yes 5110RightToLeft = RightToLeft.Yes 5207RightToLeft = RightToLeft.Yes 5430RightToLeft = RightToLeft.Yes 5527RightToLeft = RightToLeft.Yes
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (13)
1020yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Right, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1022yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Left, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1024yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Down, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1026yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Up, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1028yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Home, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1030yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.End, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1032yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Prior, dataGridViewWantsInputKey, !dataGridViewWantsInputKey || valueChanged }; 1034yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Next, dataGridViewWantsInputKey, !dataGridViewWantsInputKey || valueChanged }; 1036yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Delete, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1038yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Enter, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1040yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Enter | Keys.Shift | Keys.Control, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1042yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Enter | Keys.Shift, dataGridViewWantsInputKey, !dataGridViewWantsInputKey || (multiline && acceptsReturn) }; 1044yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.A, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
System\Windows\Forms\HScrollBarTests.cs (6)
173control.RightToLeft = RightToLeft.Yes; 174Assert.Equal(RightToLeft.Yes, control.RightToLeft); 178control.RightToLeft = RightToLeft.Yes; 179Assert.Equal(RightToLeft.Yes, control.RightToLeft); 189control.RightToLeft = RightToLeft.Yes; 190Assert.Equal(RightToLeft.Yes, control.RightToLeft);
System\Windows\Forms\ListBoxTests.cs (6)
2206control.RightToLeft = RightToLeft.Yes; 2207Assert.Equal(RightToLeft.Yes, control.RightToLeft); 2211control.RightToLeft = RightToLeft.Yes; 2212Assert.Equal(RightToLeft.Yes, control.RightToLeft); 2222control.RightToLeft = RightToLeft.Yes; 2223Assert.Equal(RightToLeft.Yes, control.RightToLeft);
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (3)
661[InlineData(true, true, RightToLeft.Yes, true)] 664[InlineData(true, false, RightToLeft.Yes, true)] 667[InlineData(false, true, RightToLeft.Yes, false)]
System\Windows\Forms\MdiClientTests.cs (19)
342[InlineData(RightToLeft.Yes, true)] 367[InlineData(RightToLeft.Inherit, RightToLeft.Yes)] 370[InlineData(RightToLeft.No, RightToLeft.Yes)] 371[InlineData(RightToLeft.Yes, RightToLeft.Inherit)] 372[InlineData(RightToLeft.Yes, RightToLeft.No)] 373[InlineData(RightToLeft.Yes, RightToLeft.Yes)] 394[InlineData(RightToLeft.Inherit, RightToLeft.Yes, true)] 395[InlineData(RightToLeft.Inherit, RightToLeft.Yes, false)] 400[InlineData(RightToLeft.No, RightToLeft.Yes, true)] 401[InlineData(RightToLeft.No, RightToLeft.Yes, false)] 402[InlineData(RightToLeft.Yes, RightToLeft.Inherit, true)] 403[InlineData(RightToLeft.Yes, RightToLeft.Inherit, false)] 404[InlineData(RightToLeft.Yes, RightToLeft.No, true)] 405[InlineData(RightToLeft.Yes, RightToLeft.No, false)] 406[InlineData(RightToLeft.Yes, RightToLeft.Yes, true)] 407[InlineData(RightToLeft.Yes, RightToLeft.Yes, false)]
System\Windows\Forms\MdiControlStripTests.cs (3)
197[InlineData(RightToLeft.Yes)] 243[InlineData(RightToLeft.Yes)] 288[InlineData(RightToLeft.Yes)]
System\Windows\Forms\MonthCalendarTests.cs (10)
1719[InlineData(RightToLeft.Yes, true, 1)] 1720[InlineData(RightToLeft.Yes, false, 0)] 1759[InlineData(RightToLeft.Yes, true, 1, 1, 2)] 1760[InlineData(RightToLeft.Yes, false, 0, 0, 1)] 1857RightToLeft = RightToLeft.Yes 3785yield return new object[] { RightToLeft.Yes, null }; 3786yield return new object[] { RightToLeft.Yes, new EventArgs() }; 3824yield return new object[] { RightToLeft.Yes, null, 1 }; 3825yield return new object[] { RightToLeft.Yes, new EventArgs(), 1 }; 3879RightToLeft = RightToLeft.Yes
System\Windows\Forms\PictureBoxTests.cs (6)
1250control.RightToLeft = RightToLeft.Yes; 1251Assert.Equal(RightToLeft.Yes, control.RightToLeft); 1255control.RightToLeft = RightToLeft.Yes; 1256Assert.Equal(RightToLeft.Yes, control.RightToLeft); 1266control.RightToLeft = RightToLeft.Yes; 1267Assert.Equal(RightToLeft.Yes, control.RightToLeft);
System\Windows\Forms\ProgressBarTests.cs (12)
169[InlineData(RightToLeft.Yes, true, 0x56010000, 0x400000)] 172[InlineData(RightToLeft.Yes, false, 0x56010000, 0x7000)] 1184[InlineData(RightToLeft.Yes, true, 1)] 1185[InlineData(RightToLeft.Yes, false, 0)] 1224[InlineData(RightToLeft.Yes, true, 1, 1, 2)] 1225[InlineData(RightToLeft.Yes, false, 0, 0, 1)] 1322RightToLeft = RightToLeft.Yes 2372yield return new object[] { RightToLeft.Yes, null }; 2373yield return new object[] { RightToLeft.Yes, new EventArgs() }; 2411yield return new object[] { RightToLeft.Yes, null, 1 }; 2412yield return new object[] { RightToLeft.Yes, new EventArgs(), 1 }; 2466RightToLeft = RightToLeft.Yes
System\Windows\Forms\ScrollBarTests.cs (108)
598[InlineData(RightToLeft.Yes)] 1213control.RightToLeft = RightToLeft.Yes; 1214Assert.Equal(RightToLeft.Yes, control.RightToLeft); 1218control.RightToLeft = RightToLeft.Yes; 1219Assert.Equal(RightToLeft.Yes, control.RightToLeft); 1229control.RightToLeft = RightToLeft.Yes; 1230Assert.Equal(RightToLeft.Yes, control.RightToLeft); 2234yield return new object[] { RightToLeft.Yes, 10, -119, new List<ScrollEventArgs>(), 10 }; 2235yield return new object[] { RightToLeft.Yes, 10, 0, new List<ScrollEventArgs>(), 10 }; 2236yield return new object[] { RightToLeft.Yes, 10, 119, new List<ScrollEventArgs>(), 10 }; 2299RightToLeft.Yes, 10, -120, 2308RightToLeft.Yes, 10, -121, 2317RightToLeft.Yes, 10, -240, 2327RightToLeft.Yes, 1, -120, 2336RightToLeft.Yes, 1, -240, 2346RightToLeft.Yes, 100, -240, 2415RightToLeft.Yes, 10, 120, 2424RightToLeft.Yes, 10, 121, 2433RightToLeft.Yes, 10, 240, 2443RightToLeft.Yes, 90, 120, 2452RightToLeft.Yes, 99, 120, 2461RightToLeft.Yes, 99, 240, 2648RightToLeft = RightToLeft.Yes 2720yield return new object[] { msg, RightToLeft.Yes, 100, ScrollEventType.SmallDecrement, 91, ScrollEventType.SmallIncrement }; 2721yield return new object[] { msg, RightToLeft.Yes, 99, ScrollEventType.SmallDecrement, 91, ScrollEventType.SmallIncrement }; 2722yield return new object[] { msg, RightToLeft.Yes, 91, ScrollEventType.SmallDecrement, 91, ScrollEventType.SmallIncrement }; 2723yield return new object[] { msg, RightToLeft.Yes, 85, ScrollEventType.SmallDecrement, 86, ScrollEventType.SmallIncrement }; 2724yield return new object[] { msg, RightToLeft.Yes, 15, ScrollEventType.SmallDecrement, 16, ScrollEventType.SmallIncrement }; 2725yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.SmallDecrement, 11, ScrollEventType.SmallIncrement }; 2726yield return new object[] { msg, RightToLeft.Yes, 1, ScrollEventType.SmallDecrement, 2, ScrollEventType.SmallIncrement }; 2727yield return new object[] { msg, RightToLeft.Yes, 0, ScrollEventType.SmallDecrement, 1, ScrollEventType.SmallIncrement }; 2737yield return new object[] { msg, RightToLeft.Yes, 100, ScrollEventType.LargeDecrement, 91, ScrollEventType.LargeIncrement }; 2738yield return new object[] { msg, RightToLeft.Yes, 99, ScrollEventType.LargeDecrement, 91, ScrollEventType.LargeIncrement }; 2739yield return new object[] { msg, RightToLeft.Yes, 91, ScrollEventType.LargeDecrement, 91, ScrollEventType.LargeIncrement }; 2740yield return new object[] { msg, RightToLeft.Yes, 85, ScrollEventType.LargeDecrement, 91, ScrollEventType.LargeIncrement }; 2741yield return new object[] { msg, RightToLeft.Yes, 15, ScrollEventType.LargeDecrement, 25, ScrollEventType.LargeIncrement }; 2742yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.LargeDecrement, 20, ScrollEventType.LargeIncrement }; 2743yield return new object[] { msg, RightToLeft.Yes, 1, ScrollEventType.LargeDecrement, 11, ScrollEventType.LargeIncrement }; 2744yield return new object[] { msg, RightToLeft.Yes, 0, ScrollEventType.LargeDecrement, 10, ScrollEventType.LargeIncrement }; 2754yield return new object[] { msg, RightToLeft.Yes, 100, ScrollEventType.SmallIncrement, 99, ScrollEventType.SmallDecrement }; 2755yield return new object[] { msg, RightToLeft.Yes, 99, ScrollEventType.SmallIncrement, 98, ScrollEventType.SmallDecrement }; 2756yield return new object[] { msg, RightToLeft.Yes, 91, ScrollEventType.SmallIncrement, 90, ScrollEventType.SmallDecrement }; 2757yield return new object[] { msg, RightToLeft.Yes, 85, ScrollEventType.SmallIncrement, 84, ScrollEventType.SmallDecrement }; 2758yield return new object[] { msg, RightToLeft.Yes, 15, ScrollEventType.SmallIncrement, 14, ScrollEventType.SmallDecrement }; 2759yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.SmallIncrement, 9, ScrollEventType.SmallDecrement }; 2760yield return new object[] { msg, RightToLeft.Yes, 1, ScrollEventType.SmallIncrement, 0, ScrollEventType.SmallDecrement }; 2761yield return new object[] { msg, RightToLeft.Yes, 0, ScrollEventType.SmallIncrement, 0, ScrollEventType.SmallDecrement }; 2771yield return new object[] { msg, RightToLeft.Yes, 100, ScrollEventType.LargeIncrement, 90, ScrollEventType.LargeDecrement }; 2772yield return new object[] { msg, RightToLeft.Yes, 99, ScrollEventType.LargeIncrement, 89, ScrollEventType.LargeDecrement }; 2773yield return new object[] { msg, RightToLeft.Yes, 91, ScrollEventType.LargeIncrement, 81, ScrollEventType.LargeDecrement }; 2774yield return new object[] { msg, RightToLeft.Yes, 85, ScrollEventType.LargeIncrement, 75, ScrollEventType.LargeDecrement }; 2775yield return new object[] { msg, RightToLeft.Yes, 15, ScrollEventType.LargeIncrement, 5, ScrollEventType.LargeDecrement }; 2776yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.LargeIncrement, 0, ScrollEventType.LargeDecrement }; 2777yield return new object[] { msg, RightToLeft.Yes, 1, ScrollEventType.LargeIncrement, 0, ScrollEventType.LargeDecrement }; 2778yield return new object[] { msg, RightToLeft.Yes, 0, ScrollEventType.LargeIncrement, 0, ScrollEventType.LargeDecrement }; 2788yield return new object[] { msg, RightToLeft.Yes, 100, ScrollEventType.Last, 0, ScrollEventType.First }; 2789yield return new object[] { msg, RightToLeft.Yes, 99, ScrollEventType.Last, 0, ScrollEventType.First }; 2790yield return new object[] { msg, RightToLeft.Yes, 91, ScrollEventType.Last, 0, ScrollEventType.First }; 2791yield return new object[] { msg, RightToLeft.Yes, 85, ScrollEventType.Last, 0, ScrollEventType.First }; 2792yield return new object[] { msg, RightToLeft.Yes, 15, ScrollEventType.Last, 0, ScrollEventType.First }; 2793yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.Last, 0, ScrollEventType.First }; 2794yield return new object[] { msg, RightToLeft.Yes, 1, ScrollEventType.Last, 0, ScrollEventType.First }; 2795yield return new object[] { msg, RightToLeft.Yes, 0, ScrollEventType.Last, 0, ScrollEventType.First }; 2805yield return new object[] { msg, RightToLeft.Yes, 100, ScrollEventType.First, 91, ScrollEventType.Last }; 2806yield return new object[] { msg, RightToLeft.Yes, 99, ScrollEventType.First, 91, ScrollEventType.Last }; 2807yield return new object[] { msg, RightToLeft.Yes, 91, ScrollEventType.First, 91, ScrollEventType.Last }; 2808yield return new object[] { msg, RightToLeft.Yes, 85, ScrollEventType.First, 91, ScrollEventType.Last }; 2809yield return new object[] { msg, RightToLeft.Yes, 15, ScrollEventType.First, 91, ScrollEventType.Last }; 2810yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.First, 91, ScrollEventType.Last }; 2811yield return new object[] { msg, RightToLeft.Yes, 1, ScrollEventType.First, 91, ScrollEventType.Last }; 2812yield return new object[] { msg, RightToLeft.Yes, 0, ScrollEventType.First, 91, ScrollEventType.Last }; 2815yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.EndScroll, 10, ScrollEventType.EndScroll }; 2817yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.ThumbPosition, 10, ScrollEventType.ThumbPosition }; 2819yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.ThumbTrack, 10, ScrollEventType.ThumbTrack }; 2821yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.SmallDecrement - 1, 10, (ScrollEventType)ushort.MaxValue }; 2823yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.EndScroll + 1, 10, ScrollEventType.EndScroll + 1 }; 2932[InlineData(RightToLeft.Yes, 0)] 2933[InlineData(RightToLeft.Yes, 50)] 2946[InlineData(RightToLeft.Yes, 100, 100)] 2948[InlineData(RightToLeft.Yes, 0, 0)] 2962[InlineData(RightToLeft.Yes, 100, 0, AccessibleStates.None)] 2963[InlineData(RightToLeft.Yes, 100, 50, AccessibleStates.None)] 2964[InlineData(RightToLeft.Yes, 100, 100, AccessibleStates.Invisible)] 2966[InlineData(RightToLeft.Yes, 0, 0, AccessibleStates.Invisible)] 2978[InlineData(RightToLeft.Yes, 100)] 2979[InlineData(RightToLeft.Yes, 50)] 2991[InlineData(RightToLeft.Yes, 100, 0)] 2993[InlineData(RightToLeft.Yes, 0, 0)] 3006[InlineData(RightToLeft.Yes, 100, 0, AccessibleStates.Invisible)] 3007[InlineData(RightToLeft.Yes, 100, 50, AccessibleStates.None)] 3008[InlineData(RightToLeft.Yes, 100, 100, AccessibleStates.None)] 3010[InlineData(RightToLeft.Yes, 0, 0, AccessibleStates.Invisible)] 3021[InlineData(RightToLeft.Yes, 100, 0)] 3023[InlineData(RightToLeft.Yes, 0, 0)] 3035[InlineData(RightToLeft.Yes, 0)] 3036[InlineData(RightToLeft.Yes, 50)] 3048[InlineData(RightToLeft.Yes, 100, 100)] 3050[InlineData(RightToLeft.Yes, 0, 0)] 3063[InlineData(RightToLeft.Yes, 100, 0, AccessibleStates.None)] 3064[InlineData(RightToLeft.Yes, 100, 50, AccessibleStates.None)] 3065[InlineData(RightToLeft.Yes, 100, 100, AccessibleStates.Invisible)] 3067[InlineData(RightToLeft.Yes, 0, 0, AccessibleStates.Invisible)] 3078[InlineData(RightToLeft.Yes, 50)] 3080[InlineData(RightToLeft.Yes, 100)] 3094[InlineData(RightToLeft.Yes, 100, 0, AccessibleStates.Invisible)] 3095[InlineData(RightToLeft.Yes, 100, 50, AccessibleStates.None)] 3096[InlineData(RightToLeft.Yes, 100, 100, AccessibleStates.None)] 3098[InlineData(RightToLeft.Yes, 0, 0, AccessibleStates.Invisible)]
System\Windows\Forms\StatusStripTests.cs (16)
205yield return new object[] { ToolStripLayoutStyle.Flow, RightToLeft.Yes, new Padding(14, 0, 1, 0) }; 209yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, RightToLeft.Yes, new Padding(14, 0, 1, 0) }; 213yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, RightToLeft.Yes, new Padding(14, 0, 1, 0) }; 217yield return new object[] { ToolStripLayoutStyle.Table, RightToLeft.Yes, new Padding(14, 0, 1, 0) }; 221yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, RightToLeft.Yes, new Padding(1, 3, 1, 22) }; 623yield return new object[] { true, layoutStyle, RightToLeft.Yes, new Rectangle(0, 0, 12, 22) }; 626yield return new object[] { false, layoutStyle, RightToLeft.Yes, Rectangle.Empty }; 649yield return new object[] { true, layoutStyle, RightToLeft.Yes, new Rectangle(0, 10, 12, 22) }; 652yield return new object[] { false, layoutStyle, RightToLeft.Yes, Rectangle.Empty }; 676yield return new object[] { true, layoutStyle, RightToLeft.Yes, new Rectangle(0, 0, 12, 12) }; 679yield return new object[] { false, layoutStyle, RightToLeft.Yes, Rectangle.Empty }; 726yield return new object[] { RightToLeft.Yes, true, 1, 0 }; 730yield return new object[] { RightToLeft.Yes, false, 0, 1 }; 1009yield return new object[] { RightToLeft.Yes, true, 1 }; 1013yield return new object[] { RightToLeft.Yes, false, 0 }; 1175RightToLeft = RightToLeft.Yes
System\Windows\Forms\TabControlTests.cs (12)
337[InlineData(RightToLeft.Yes, true, 0x56010800, 0x500000)] 340[InlineData(RightToLeft.Yes, false, 0x56010800, 0x7000)] 1828[InlineData(RightToLeft.Yes, true, 1)] 1829[InlineData(RightToLeft.Yes, false, 0)] 1868[InlineData(RightToLeft.Yes, true, 1, 1, 2)] 1869[InlineData(RightToLeft.Yes, false, 0, 0, 1)] 1966RightToLeft = RightToLeft.Yes 4497yield return new object[] { RightToLeft.Yes, null }; 4498yield return new object[] { RightToLeft.Yes, new EventArgs() }; 4536yield return new object[] { RightToLeft.Yes, null, 1 }; 4537yield return new object[] { RightToLeft.Yes, new EventArgs(), 1 }; 4591RightToLeft = RightToLeft.Yes
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (2)
89[InlineData(RightToLeft.Yes, true)] 103[InlineData(RightToLeft.Yes)]
System\Windows\Forms\ToolStripButtonTests.cs (9)
1231yield return new object[] { ContentAlignment.TopLeft, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Top | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft }; 1234yield return new object[] { ContentAlignment.TopCenter, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Top | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft }; 1237yield return new object[] { ContentAlignment.TopRight, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Top | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft }; 1241yield return new object[] { ContentAlignment.MiddleLeft, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft }; 1244yield return new object[] { ContentAlignment.MiddleCenter, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft }; 1247yield return new object[] { ContentAlignment.MiddleRight, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft }; 1251yield return new object[] { ContentAlignment.BottomLeft, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft }; 1254yield return new object[] { ContentAlignment.BottomCenter, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft }; 1257yield 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)
36RightToLeft = RightToLeft.Yes, 645c.RightToLeft = RightToLeft.Yes; 646Assert.Equal(RightToLeft.Yes, c.RightToLeft); 647Assert.Equal(RightToLeft.Yes, item.RightToLeft); 1610item.RightToLeft = RightToLeft.Yes; 1611Assert.Equal(RightToLeft.Yes, item.RightToLeft); 1615item.RightToLeft = RightToLeft.Yes; 1616Assert.Equal(RightToLeft.Yes, item.RightToLeft); 1626item.RightToLeft = RightToLeft.Yes; 1627Assert.Equal(RightToLeft.Yes, item.RightToLeft); 1648item.RightToLeft = RightToLeft.Yes; 1649Assert.Equal(RightToLeft.Yes, item.RightToLeft); 1691item.RightToLeft = RightToLeft.Yes; 1692Assert.Equal(RightToLeft.Yes, item.RightToLeft);
System\Windows\Forms\ToolStripDropDownTests.cs (69)
1114yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1117yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1120yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1123yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1126yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1130yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1133yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1136yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1139yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1142yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1146yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1149yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1152yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1155yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1158yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1162yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1165yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1168yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1171yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1174yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1178yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1181yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1184yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1187yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1190yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1239yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1242yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1245yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1248yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1251yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1255yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1258yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1261yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1264yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1267yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1271yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1274yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1277yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1280yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1283yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1287yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1290yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1293yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1296yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1299yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1303yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1306yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1309yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1312yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1315yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 2331RightToLeft = RightToLeft.Yes 2335Assert.Equal(RightToLeft.Yes, control.RightToLeft); 2346RightToLeft = RightToLeft.Yes 2352Assert.Equal(RightToLeft.Yes, control.RightToLeft); 2363RightToLeft = RightToLeft.Yes 2374Assert.Equal(RightToLeft.Yes, control.RightToLeft); 2378[InlineData(RightToLeft.Yes, RightToLeft.Yes, 1)] 2419control.RightToLeft = RightToLeft.Yes; 2420Assert.Equal(RightToLeft.Yes, control.RightToLeft); 2424control.RightToLeft = RightToLeft.Yes; 2425Assert.Equal(RightToLeft.Yes, control.RightToLeft); 2435control.RightToLeft = RightToLeft.Yes; 2436Assert.Equal(RightToLeft.Yes, control.RightToLeft); 3094RightToLeft = RightToLeft.Yes 3375RightToLeft = RightToLeft.Yes 3434RightToLeft = RightToLeft.Yes 3451Assert.Equal(RightToLeft.Yes, control.RightToLeft); 3464Assert.Equal(RightToLeft.Yes, control.RightToLeft);
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (3)
40RightToLeft = RightToLeft.Yes, 57RightToLeft = RightToLeft.Yes 81RightToLeft = RightToLeft.Yes,
System\Windows\Forms\ToolStripItemTests.cs (69)
6540[InlineData(RightToLeft.Yes, RightToLeft.Yes, RightToLeft.Yes, 0)] 6541[InlineData(RightToLeft.Yes, RightToLeft.No, RightToLeft.No, 0)] 6542[InlineData(RightToLeft.Yes, RightToLeft.Inherit, RightToLeft.Yes, 1)] 6543[InlineData(RightToLeft.No, RightToLeft.Yes, RightToLeft.Yes, 0)] 6546[InlineData(RightToLeft.Inherit, RightToLeft.Yes, RightToLeft.Yes, 0)] 7098[InlineData(RightToLeft.Yes, RightToLeft.Yes)] 7115[InlineData(RightToLeft.Yes, RightToLeft.Yes)] 7135RightToLeft = RightToLeft.Yes 7146Assert.Equal(RightToLeft.Yes, item.RightToLeft); 7166yield return new object[] { RightToLeft.Yes, RightToLeft.Yes, RightToLeft.Yes, 0 }; 7167yield return new object[] { RightToLeft.Yes, RightToLeft.No, RightToLeft.No, 1 }; 7168yield return new object[] { RightToLeft.Yes, RightToLeft.Inherit, RightToLeft.Yes, 0 }; 7169yield return new object[] { RightToLeft.No, RightToLeft.Yes, RightToLeft.Yes, 1 }; 7172yield return new object[] { RightToLeft.Inherit, RightToLeft.Yes, RightToLeft.Yes, 1 }; 7276yield return new object[] { RightToLeft.Yes, RightToLeft.Yes, RightToLeft.Yes }; 7277yield return new object[] { RightToLeft.Yes, RightToLeft.No, RightToLeft.No }; 7278yield return new object[] { RightToLeft.Yes, RightToLeft.Inherit, RightToLeft.Yes }; 7279yield return new object[] { RightToLeft.No, RightToLeft.Yes, RightToLeft.Yes }; 7282yield return new object[] { RightToLeft.Inherit, RightToLeft.Yes, RightToLeft.Yes }; 7384item.RightToLeft = RightToLeft.Yes; 7385Assert.Equal(RightToLeft.Yes, item.RightToLeft); 7389item.RightToLeft = RightToLeft.Yes; 7390Assert.Equal(RightToLeft.Yes, item.RightToLeft); 7400item.RightToLeft = RightToLeft.Yes; 7401Assert.Equal(RightToLeft.Yes, item.RightToLeft); 7420item.RightToLeft = RightToLeft.Yes; 7421Assert.Equal(RightToLeft.Yes, item.RightToLeft); 7448item.RightToLeft = RightToLeft.Yes; 7449Assert.Equal(RightToLeft.Yes, item.RightToLeft); 12176yield return new object[] { RightToLeft.Yes, RightToLeft.Yes, null, RightToLeft.Yes, 0 }; 12177yield return new object[] { RightToLeft.Yes, RightToLeft.Yes, new EventArgs(), RightToLeft.Yes, 0 }; 12179yield return new object[] { RightToLeft.Yes, RightToLeft.No, null, RightToLeft.No, 0 }; 12180yield return new object[] { RightToLeft.Yes, RightToLeft.No, new EventArgs(), RightToLeft.No, 0 }; 12182yield return new object[] { RightToLeft.Yes, RightToLeft.Inherit, null, RightToLeft.Yes, 1 }; 12183yield return new object[] { RightToLeft.Yes, RightToLeft.Inherit, new EventArgs(), RightToLeft.Yes, 1 }; 12185yield return new object[] { RightToLeft.No, RightToLeft.Yes, null, RightToLeft.Yes, 0 }; 12186yield return new object[] { RightToLeft.No, RightToLeft.Yes, new EventArgs(), RightToLeft.Yes, 0 }; 12194yield return new object[] { RightToLeft.Inherit, RightToLeft.Yes, null, RightToLeft.Yes, 0 }; 12195yield return new object[] { RightToLeft.Inherit, RightToLeft.Yes, new EventArgs(), RightToLeft.Yes, 0 }; 12641yield return new object[] { RightToLeft.Yes, null, 0 }; 12642yield return new object[] { RightToLeft.Yes, new EventArgs(), 0 }; 14227item.RightToLeft = RightToLeft.Yes;
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (2)
16yield return new object[] { new ToolStripButton() { RightToLeft = RightToLeft.Yes }, "text", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, TextFormatFlags.Bottom }; 42yield 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)
297RightToLeft = RightToLeft.Yes,
System\Windows\Forms\ToolStripRendererTests.cs (1)
480yield return new object[] { new StatusStrip { RightToLeft = RightToLeft.Yes } };
System\Windows\Forms\ToolStripTests.cs (122)
1665yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1668yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1671yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1674yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1677yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1681yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1684yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1687yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1690yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1693yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1697yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1700yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1703yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1706yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1709yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1713yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1716yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1719yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1722yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1725yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1729yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1732yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1735yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1738yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1741yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1790yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1793yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1796yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1799yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1802yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1806yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1809yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1812yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1815yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1818yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1822yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1825yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1828yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1831yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1834yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1838yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1841yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1844yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1847yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1850yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1854yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1857yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1860yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1863yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1866yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1926yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1929yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1932yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1935yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1938yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1942yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1945yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1948yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1951yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1954yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1958yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1961yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1964yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1967yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1970yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1974yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1977yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1980yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1983yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1986yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 1990yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1993yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1996yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1999yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 2002yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 2030yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2033yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2036yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2039yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2042yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 2046yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2049yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2052yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2055yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2058yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 2062yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2065yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 2068yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 2071yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2074yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 2078yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2081yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2084yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2087yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2090yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.AboveLeft }; 2094yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 2097yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 2100yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 2103yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 2106yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 2268yield return new object[] { ToolStripLayoutStyle.Flow, ToolStripGripStyle.Visible, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) }; 2271yield return new object[] { ToolStripLayoutStyle.Flow, ToolStripGripStyle.Hidden, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) }; 2275yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripGripStyle.Visible, RightToLeft.Yes, new Rectangle(0, 0, width, 25) }; 2278yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripGripStyle.Hidden, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) }; 2282yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, ToolStripGripStyle.Visible, RightToLeft.Yes, new Rectangle(0, 0, width, 25) }; 2285yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, ToolStripGripStyle.Hidden, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) }; 2289yield return new object[] { ToolStripLayoutStyle.Table, ToolStripGripStyle.Visible, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) }; 2292yield return new object[] { ToolStripLayoutStyle.Table, ToolStripGripStyle.Hidden, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) }; 2296yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripGripStyle.Visible, RightToLeft.Yes, new Rectangle(0, x, 99, height) }; 2299yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripGripStyle.Hidden, RightToLeft.Yes, new Rectangle(0, 0, 99, 25) }; 3446[InlineData(RightToLeft.Yes, RightToLeft.Yes, 1)] 3503RightToLeft = RightToLeft.Yes 3515Assert.Equal(RightToLeft.Yes, item1.RightToLeft); 3522Assert.Equal(RightToLeft.Yes, item1.RightToLeft); 3541control.RightToLeft = RightToLeft.Yes; 3542Assert.Equal(RightToLeft.Yes, control.RightToLeft); 3546control.RightToLeft = RightToLeft.Yes; 3547Assert.Equal(RightToLeft.Yes, control.RightToLeft); 3557control.RightToLeft = RightToLeft.Yes; 3558Assert.Equal(RightToLeft.Yes, control.RightToLeft); 6454RightToLeft = RightToLeft.Yes
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (2)
332[InlineData(true, RightToLeft.Yes, true)] 335[InlineData(false, RightToLeft.Yes, false)]
System\Windows\Forms\TreeViewTests.cs (12)
672[InlineData(RightToLeft.Yes, true, 0x56010007, 0x400200)] 675[InlineData(RightToLeft.Yes, false, 0x56010047, 0x7200)] 3070[InlineData(RightToLeft.Yes, true, 1)] 3071[InlineData(RightToLeft.Yes, false, 0)] 3110[InlineData(RightToLeft.Yes, true, 1, 1, 2)] 3111[InlineData(RightToLeft.Yes, false, 0, 0, 1)] 3208RightToLeft = RightToLeft.Yes 6504yield return new object[] { RightToLeft.Yes, null }; 6505yield return new object[] { RightToLeft.Yes, new EventArgs() }; 6543yield return new object[] { RightToLeft.Yes, null, 1 }; 6544yield return new object[] { RightToLeft.Yes, new EventArgs(), 1 }; 6598RightToLeft = RightToLeft.Yes
System\Windows\Forms\VScrollBarTests.cs (3)
171control.RightToLeft = RightToLeft.Yes; 176control.RightToLeft = RightToLeft.Yes; 187control.RightToLeft = RightToLeft.Yes;
TextBoxTests.cs (1)
437RightToLeft = RightToLeft.Yes
TrackBarTests.cs (34)
192[InlineData(RightToLeft.Yes, true, 0x500000)] 195[InlineData(RightToLeft.Yes, false, 0x7000)] 799[InlineData(RightToLeft.Yes, true, 5)] 802[InlineData(RightToLeft.Yes, false, 5)] 1550[InlineData(RightToLeft.Yes, true, 1)] 1551[InlineData(RightToLeft.Yes, false, 0)] 1590[InlineData(RightToLeft.Yes, true, 1, 1, 2)] 1591[InlineData(RightToLeft.Yes, false, 0, 0, 1)] 1688RightToLeft = RightToLeft.Yes 2044yield return new object[] { Orientation.Horizontal, RightToLeft.Yes, true, 0, 0 }; 2045yield return new object[] { Orientation.Horizontal, RightToLeft.Yes, false, 0, 10 }; 2050yield return new object[] { Orientation.Vertical, RightToLeft.Yes, true, 0, 10 }; 2051yield return new object[] { Orientation.Vertical, RightToLeft.Yes, false, 0, 10 }; 2057yield return new object[] { Orientation.Horizontal, RightToLeft.Yes, true, 1, 1 }; 2058yield return new object[] { Orientation.Horizontal, RightToLeft.Yes, false, 1, 9 }; 2063yield return new object[] { Orientation.Vertical, RightToLeft.Yes, true, 1, 9 }; 2064yield return new object[] { Orientation.Vertical, RightToLeft.Yes, false, 1, 9 }; 2070yield return new object[] { Orientation.Horizontal, RightToLeft.Yes, true, 5, 5 }; 2071yield return new object[] { Orientation.Horizontal, RightToLeft.Yes, false, 5, 5 }; 2076yield return new object[] { Orientation.Vertical, RightToLeft.Yes, true, 5, 5 }; 2077yield return new object[] { Orientation.Vertical, RightToLeft.Yes, false, 5, 5 }; 2083yield return new object[] { Orientation.Horizontal, RightToLeft.Yes, true, 9, 9 }; 2084yield return new object[] { Orientation.Horizontal, RightToLeft.Yes, false, 9, 1 }; 2089yield return new object[] { Orientation.Vertical, RightToLeft.Yes, true, 9, 1 }; 2090yield return new object[] { Orientation.Vertical, RightToLeft.Yes, false, 9, 1 }; 2096yield return new object[] { Orientation.Horizontal, RightToLeft.Yes, true, 10, 10 }; 2097yield return new object[] { Orientation.Horizontal, RightToLeft.Yes, false, 10, 0 }; 2102yield return new object[] { Orientation.Vertical, RightToLeft.Yes, true, 10, 0 }; 2103yield return new object[] { Orientation.Vertical, RightToLeft.Yes, false, 10, 0 }; 2607yield return new object[] { RightToLeft.Yes, null }; 2608yield return new object[] { RightToLeft.Yes, new EventArgs() }; 2646yield return new object[] { RightToLeft.Yes, null, 1 }; 2647yield return new object[] { RightToLeft.Yes, new EventArgs(), 1 }; 2701RightToLeft = 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;
TestPassApp (1)
CommonControl1.Designer.cs (1)
658this.dateTimePicker2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHostPropertyMap.cs (1)
175SW.FlowDirection toFlowDirection = ((fromRTL == SWF.RightToLeft.Yes) ? SW.FlowDirection.RightToLeft : SW.FlowDirection.LeftToRight);
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
114adapter.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;