410 references to Inherit
System.Windows.Forms (20)
System\Windows\Forms\ActiveX\AxHost.cs (1)
2135if (control.RightToLeft == Forms.RightToLeft.Inherit)
System\Windows\Forms\Control.cs (6)
2848[AmbientValue(RightToLeft.Inherit)] 2855|| rightToLeft == RightToLeft.Inherit) 2869if (Properties.ContainsKey(s_rightToLeftProperty) || value != RightToLeft.Inherit) 7045if (!Properties.TryGetValue(s_rightToLeftProperty, out RightToLeft rightToLeft) || rightToLeft == RightToLeft.Inherit) 9129RightToLeft = RightToLeft.Inherit; 10498&& rightToLeft != RightToLeft.Inherit;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
460_horizScrollBar.RightToLeft = RightToLeft.Inherit;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
693[AmbientValue(RightToLeft.Inherit)]
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
132(RightToLeft != parent.RightToLeft && (RightToLeft != RightToLeft.Inherit)))
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (8)
727private static RightToLeft DefaultRightToLeft => RightToLeft.Inherit; 1641rightToLeft = RightToLeft.Inherit; 1644if (rightToLeft == RightToLeft.Inherit) 1670if (Properties.ContainsKey(s_rightToLeftProperty) || value != RightToLeft.Inherit) 2941if (!Properties.TryGetValue(s_rightToLeftProperty, out RightToLeft rightToLeft) || rightToLeft == RightToLeft.Inherit) 2959rightToLeft = RightToLeft.Inherit; 2962if (rightToLeft == RightToLeft.Inherit && RightToLeft != DefaultRightToLeft) 3415public virtual void ResetRightToLeft() => RightToLeft = RightToLeft.Inherit;
System\Windows\Forms\Controls\Unsupported\MainMenu\MainMenu.cs (1)
36[AmbientValue(RightToLeft.Inherit)]
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
253[AmbientValue(RightToLeft.Inherit)]
System.Windows.Forms.Tests (386)
System\Windows\Forms\ButtonBaseTests.cs (10)
188yield return new object[] { flatStyle, RightToLeft.Inherit, textAlign, 0x56010000, 0 }; 212yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.BottomLeft, 0x56012900, 0 }; 213yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.BottomCenter, 0x56012B00, 0 }; 214yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.BottomRight, 0x56012A00, 0 }; 215yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.MiddleLeft, 0x56012D00, 0 }; 216yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.MiddleCenter, 0x56012F00, 0 }; 217yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.MiddleRight, 0x56012E00, 0 }; 218yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.TopLeft, 0x56012500, 0 }; 219yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.TopCenter, 0x56012700, 0 }; 220yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.TopRight, 0x56012600, 0 };
System\Windows\Forms\ButtonTests.cs (10)
210yield return new object[] { flatStyle, RightToLeft.Inherit, textAlign, 0x5601000B, 0 }; 234yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.BottomLeft, 0x56012900, 0 }; 235yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.BottomCenter, 0x56012B00, 0 }; 236yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.BottomRight, 0x56012A00, 0 }; 237yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.MiddleLeft, 0x56012D00, 0 }; 238yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.MiddleCenter, 0x56012F00, 0 }; 239yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.MiddleRight, 0x56012E00, 0 }; 240yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.TopLeft, 0x56012500, 0 }; 241yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.TopCenter, 0x56012700, 0 }; 242yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.TopRight, 0x56012600, 0 };
System\Windows\Forms\ColumnHeaderTests.cs (2)
1024[InlineData(RightToLeft.Inherit, true, HorizontalAlignment.Left)] 1027[InlineData(RightToLeft.Inherit, false, HorizontalAlignment.Left)]
System\Windows\Forms\ComboBoxTests.cs (1)
1302control.RightToLeft = RightToLeft.Inherit;
System\Windows\Forms\ControlTests.cs (1)
644[InlineData(RightToLeft.Inherit, 0)]
System\Windows\Forms\ControlTests.Handlers.cs (1)
5034RightToLeft = RightToLeft.Inherit
System\Windows\Forms\ControlTests.Methods.cs (3)
6879yield return new object[] { RightToLeft.Inherit, align, align }; 6914yield return new object[] { RightToLeft.Inherit, align, align }; 6942yield return new object[] { RightToLeft.Inherit, align, align };
System\Windows\Forms\ControlTests.Properties.cs (8)
10148[InlineData(RightToLeft.Inherit, RightToLeft.No, 0)] 10179[InlineData(RightToLeft.Inherit, RightToLeft.No, 1)] 10234control.RightToLeft = RightToLeft.Inherit; 10276RightToLeft = RightToLeft.Inherit 10332control.RightToLeft = RightToLeft.Inherit; 10412control.RightToLeft = RightToLeft.Inherit; 10456control.RightToLeft = RightToLeft.Inherit; 10484control.RightToLeft = RightToLeft.Inherit;
System\Windows\Forms\HScrollBarTests.cs (1)
183control.RightToLeft = RightToLeft.Inherit;
System\Windows\Forms\ListBoxTests.cs (1)
2216control.RightToLeft = RightToLeft.Inherit;
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (2)
663[InlineData(true, true, RightToLeft.Inherit, false)] 666[InlineData(true, false, RightToLeft.Inherit, false)]
System\Windows\Forms\MdiClientTests.cs (19)
340[InlineData(RightToLeft.Inherit, true)] 365[InlineData(RightToLeft.Inherit, RightToLeft.Inherit)] 366[InlineData(RightToLeft.Inherit, RightToLeft.No)] 367[InlineData(RightToLeft.Inherit, RightToLeft.Yes)] 368[InlineData(RightToLeft.No, RightToLeft.Inherit)] 371[InlineData(RightToLeft.Yes, RightToLeft.Inherit)] 390[InlineData(RightToLeft.Inherit, RightToLeft.Inherit, true)] 391[InlineData(RightToLeft.Inherit, RightToLeft.Inherit, false)] 392[InlineData(RightToLeft.Inherit, RightToLeft.No, true)] 393[InlineData(RightToLeft.Inherit, RightToLeft.No, false)] 394[InlineData(RightToLeft.Inherit, RightToLeft.Yes, true)] 395[InlineData(RightToLeft.Inherit, RightToLeft.Yes, false)] 396[InlineData(RightToLeft.No, RightToLeft.Inherit, true)] 397[InlineData(RightToLeft.No, RightToLeft.Inherit, false)] 402[InlineData(RightToLeft.Yes, RightToLeft.Inherit, true)] 403[InlineData(RightToLeft.Yes, RightToLeft.Inherit, false)]
System\Windows\Forms\MonthCalendarTests.cs (8)
1723[InlineData(RightToLeft.Inherit, true, 1)] 1724[InlineData(RightToLeft.Inherit, false, 0)] 1763[InlineData(RightToLeft.Inherit, true, 1, 0, 0)] 1764[InlineData(RightToLeft.Inherit, false, 0, 0, 0)] 3789yield return new object[] { RightToLeft.Inherit, null }; 3790yield return new object[] { RightToLeft.Inherit, new EventArgs() }; 3828yield return new object[] { RightToLeft.Inherit, null, 0 }; 3829yield return new object[] { RightToLeft.Inherit, new EventArgs(), 0 };
System\Windows\Forms\PictureBoxTests.cs (1)
1260control.RightToLeft = RightToLeft.Inherit;
System\Windows\Forms\ProgressBarTests.cs (10)
167[InlineData(RightToLeft.Inherit, true, 0x56010000, 0x0)] 170[InlineData(RightToLeft.Inherit, false, 0x56010000, 0x0)] 1188[InlineData(RightToLeft.Inherit, true, 1)] 1189[InlineData(RightToLeft.Inherit, false, 0)] 1228[InlineData(RightToLeft.Inherit, true, 1, 0, 0)] 1229[InlineData(RightToLeft.Inherit, false, 0, 0, 0)] 2376yield return new object[] { RightToLeft.Inherit, null }; 2377yield return new object[] { RightToLeft.Inherit, new EventArgs() }; 2415yield return new object[] { RightToLeft.Inherit, null, 0 }; 2416yield return new object[] { RightToLeft.Inherit, new EventArgs(), 0 };
System\Windows\Forms\ScrollBarTests.cs (2)
596[InlineData(RightToLeft.Inherit)] 1223control.RightToLeft = RightToLeft.Inherit;
System\Windows\Forms\StatusStripTests.cs (15)
207yield return new object[] { ToolStripLayoutStyle.Flow, RightToLeft.Inherit, new Padding(1, 0, 14, 0) }; 211yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, RightToLeft.Inherit, new Padding(1, 0, 14, 0) }; 215yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, RightToLeft.Inherit, new Padding(1, 0, 14, 0) }; 219yield return new object[] { ToolStripLayoutStyle.Table, RightToLeft.Inherit, new Padding(1, 0, 14, 0) }; 223yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, RightToLeft.Inherit, new Padding(1, 3, 1, 22) }; 625yield return new object[] { true, layoutStyle, RightToLeft.Inherit, new Rectangle(188, 0, 12, 22) }; 628yield return new object[] { false, layoutStyle, RightToLeft.Inherit, Rectangle.Empty }; 651yield return new object[] { true, layoutStyle, RightToLeft.Inherit, new Rectangle(198, 10, 12, 22) }; 654yield return new object[] { false, layoutStyle, RightToLeft.Inherit, Rectangle.Empty }; 678yield return new object[] { true, layoutStyle, RightToLeft.Inherit, new Rectangle(178, 0, 12, 12) }; 681yield return new object[] { false, layoutStyle, RightToLeft.Inherit, Rectangle.Empty }; 728yield return new object[] { RightToLeft.Inherit, true, 0, 0 }; 732yield return new object[] { RightToLeft.Inherit, false, 0, 0 }; 1011yield return new object[] { RightToLeft.Inherit, true, 0 }; 1015yield return new object[] { RightToLeft.Inherit, false, 0 };
System\Windows\Forms\TabControlTests.cs (10)
335[InlineData(RightToLeft.Inherit, true, 0x56010800, 0x0)] 338[InlineData(RightToLeft.Inherit, false, 0x56010800, 0x0)] 1832[InlineData(RightToLeft.Inherit, true, 1)] 1833[InlineData(RightToLeft.Inherit, false, 0)] 1872[InlineData(RightToLeft.Inherit, true, 1, 0, 0)] 1873[InlineData(RightToLeft.Inherit, false, 0, 0, 0)] 4501yield return new object[] { RightToLeft.Inherit, null }; 4502yield return new object[] { RightToLeft.Inherit, new EventArgs() }; 4540yield return new object[] { RightToLeft.Inherit, null, 0 }; 4541yield return new object[] { RightToLeft.Inherit, new EventArgs(), 0 };
System\Windows\Forms\ToolStripButtonTests.cs (15)
80Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 161Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 248Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 338Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 426Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 524Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 1232yield return new object[] { ContentAlignment.TopLeft, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Top | TextFormatFlags.HidePrefix }; 1235yield return new object[] { ContentAlignment.TopCenter, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Top | TextFormatFlags.HidePrefix }; 1238yield return new object[] { ContentAlignment.TopRight, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Top | TextFormatFlags.HidePrefix }; 1242yield return new object[] { ContentAlignment.MiddleLeft, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix }; 1245yield return new object[] { ContentAlignment.MiddleCenter, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix }; 1248yield return new object[] { ContentAlignment.MiddleRight, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix }; 1252yield return new object[] { ContentAlignment.BottomLeft, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix }; 1255yield return new object[] { ContentAlignment.BottomCenter, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix }; 1258yield return new object[] { ContentAlignment.BottomRight, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix };
System\Windows\Forms\ToolStripControlHostTests.cs (5)
1552Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 1564Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 1570Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 1656item.RightToLeft = RightToLeft.Inherit; 1699item.RightToLeft = RightToLeft.Inherit;
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
80Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 169Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 268Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 376Assert.Equal(RightToLeft.Inherit, item.RightToLeft);
System\Windows\Forms\ToolStripDropDownTests.cs (52)
1116yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1119yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1122yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1125yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1128yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1132yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1135yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1138yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1141yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1144yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1148yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1151yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1154yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1157yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1160yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1164yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1167yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1170yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1173yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1176yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1180yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1183yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1186yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1189yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1192yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1241yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1244yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1247yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1250yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1253yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1257yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1260yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1263yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1266yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1269yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1273yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1276yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1279yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1282yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1285yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1289yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1292yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1295yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1298yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1301yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1305yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1308yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1311yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1314yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1317yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 2380[InlineData(RightToLeft.Inherit, RightToLeft.No, 0)] 2429control.RightToLeft = RightToLeft.Inherit;
System\Windows\Forms\ToolStripItemTests.cs (46)
79Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 164Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 259Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 6542[InlineData(RightToLeft.Yes, RightToLeft.Inherit, RightToLeft.Yes, 1)] 6545[InlineData(RightToLeft.No, RightToLeft.Inherit, RightToLeft.No, 1)] 6546[InlineData(RightToLeft.Inherit, RightToLeft.Yes, RightToLeft.Yes, 0)] 6547[InlineData(RightToLeft.Inherit, RightToLeft.No, RightToLeft.No, 0)] 6548[InlineData(RightToLeft.Inherit, RightToLeft.Inherit, RightToLeft.No, 1)] 7097[InlineData(RightToLeft.Inherit, RightToLeft.No)] 7114[InlineData(RightToLeft.Inherit, RightToLeft.No)] 7168yield return new object[] { RightToLeft.Yes, RightToLeft.Inherit, RightToLeft.Yes, 0 }; 7171yield return new object[] { RightToLeft.No, RightToLeft.Inherit, RightToLeft.No, 0 }; 7172yield return new object[] { RightToLeft.Inherit, RightToLeft.Yes, RightToLeft.Yes, 1 }; 7173yield return new object[] { RightToLeft.Inherit, RightToLeft.No, RightToLeft.No, 0 }; 7174yield return new object[] { RightToLeft.Inherit, RightToLeft.Inherit, RightToLeft.No, 0 }; 7278yield return new object[] { RightToLeft.Yes, RightToLeft.Inherit, RightToLeft.Yes }; 7281yield return new object[] { RightToLeft.No, RightToLeft.Inherit, RightToLeft.No }; 7282yield return new object[] { RightToLeft.Inherit, RightToLeft.Yes, RightToLeft.Yes }; 7283yield return new object[] { RightToLeft.Inherit, RightToLeft.No, RightToLeft.No }; 7284yield return new object[] { RightToLeft.Inherit, RightToLeft.Inherit, RightToLeft.No }; 7428item.RightToLeft = RightToLeft.Inherit; 7429Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 7437Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 7456item.RightToLeft = RightToLeft.Inherit; 7457Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 7465Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 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 }; 12191yield return new object[] { RightToLeft.No, RightToLeft.Inherit, null, RightToLeft.No, 1 }; 12192yield return new object[] { RightToLeft.No, RightToLeft.Inherit, new EventArgs(), RightToLeft.No, 1 }; 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 }; 12197yield return new object[] { RightToLeft.Inherit, RightToLeft.No, null, RightToLeft.No, 0 }; 12198yield return new object[] { RightToLeft.Inherit, RightToLeft.No, new EventArgs(), RightToLeft.No, 0 }; 12200yield return new object[] { RightToLeft.Inherit, RightToLeft.Inherit, null, RightToLeft.No, 1 }; 12201yield return new object[] { RightToLeft.Inherit, RightToLeft.Inherit, new EventArgs(), RightToLeft.No, 1 }; 12639yield return new object[] { RightToLeft.Inherit, null, 1 }; 12640yield return new object[] { RightToLeft.Inherit, new EventArgs(), 1 }; 14224Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 14229Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 14233Assert.Equal(RightToLeft.Inherit, item.RightToLeft);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
83Assert.Equal(RightToLeft.Inherit, item.RightToLeft);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
77Assert.Equal(RightToLeft.Inherit, item.RightToLeft);
System\Windows\Forms\ToolStripTests.cs (113)
1667yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1670yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1673yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 1676yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1679yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1683yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1686yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1689yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1692yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1695yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1699yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1702yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 1705yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1708yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1711yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1715yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1718yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 1721yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1724yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1727yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1731yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1734yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 1737yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1740yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1743yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1792yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1795yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1798yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 1801yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1804yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1808yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1811yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1814yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1817yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1820yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1824yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1827yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 1830yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1833yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1836yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1840yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1843yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 1846yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1849yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1852yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1856yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1859yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 1862yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1865yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1868yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1928yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1931yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1934yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1937yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1940yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1944yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1947yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1950yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1953yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1956yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1960yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1963yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 1966yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1969yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1972yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1976yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1979yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1982yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1985yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1988yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1992yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1995yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 1998yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 2001yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 2004yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 2032yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2035yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2038yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2041yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2044yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 2048yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2051yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2054yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2057yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2060yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 2064yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2067yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 2070yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 2073yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2076yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 2080yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2083yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2086yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2089yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2092yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 2096yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 2099yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 2102yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 2105yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 2108yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 2270yield return new object[] { ToolStripLayoutStyle.Flow, ToolStripGripStyle.Visible, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) }; 2273yield return new object[] { ToolStripLayoutStyle.Flow, ToolStripGripStyle.Hidden, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) }; 2277yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripGripStyle.Visible, RightToLeft.Inherit, new Rectangle(x, 0, width, 25) }; 2280yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripGripStyle.Hidden, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) }; 2284yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, ToolStripGripStyle.Visible, RightToLeft.Inherit, new Rectangle(x, 0, width, 25) }; 2287yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, ToolStripGripStyle.Hidden, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) }; 2291yield return new object[] { ToolStripLayoutStyle.Table, ToolStripGripStyle.Visible, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) }; 2294yield return new object[] { ToolStripLayoutStyle.Table, ToolStripGripStyle.Hidden, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) }; 2298yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripGripStyle.Visible, RightToLeft.Inherit, new Rectangle(0, x, 99, height) }; 2301yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripGripStyle.Hidden, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) }; 3448[InlineData(RightToLeft.Inherit, RightToLeft.No, 0)] 3551control.RightToLeft = RightToLeft.Inherit; 6405RightToLeft = RightToLeft.Inherit
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (1)
334[InlineData(true, RightToLeft.Inherit, false)]
System\Windows\Forms\TreeViewTests.cs (10)
670[InlineData(RightToLeft.Inherit, true, 0x56010007, 0x200)] 673[InlineData(RightToLeft.Inherit, false, 0x56010007, 0x200)] 3074[InlineData(RightToLeft.Inherit, true, 1)] 3075[InlineData(RightToLeft.Inherit, false, 0)] 3114[InlineData(RightToLeft.Inherit, true, 1, 0, 0)] 3115[InlineData(RightToLeft.Inherit, false, 0, 0, 0)] 6508yield return new object[] { RightToLeft.Inherit, null }; 6509yield return new object[] { RightToLeft.Inherit, new EventArgs() }; 6547yield return new object[] { RightToLeft.Inherit, null, 0 }; 6548yield return new object[] { RightToLeft.Inherit, new EventArgs(), 0 };
System\Windows\Forms\VScrollBarTests.cs (1)
181control.RightToLeft = RightToLeft.Inherit;
TrackBarTests.cs (32)
190[InlineData(RightToLeft.Inherit, true, 0x0)] 193[InlineData(RightToLeft.Inherit, false, 0x0)] 797[InlineData(RightToLeft.Inherit, true, 5)] 800[InlineData(RightToLeft.Inherit, false, 5)] 1554[InlineData(RightToLeft.Inherit, true, 1)] 1555[InlineData(RightToLeft.Inherit, false, 0)] 1594[InlineData(RightToLeft.Inherit, true, 1, 0, 0)] 1595[InlineData(RightToLeft.Inherit, false, 0, 0, 0)] 2048yield return new object[] { Orientation.Horizontal, RightToLeft.Inherit, true, 0, 0 }; 2049yield return new object[] { Orientation.Horizontal, RightToLeft.Inherit, false, 0, 0 }; 2054yield return new object[] { Orientation.Vertical, RightToLeft.Inherit, true, 0, 10 }; 2055yield return new object[] { Orientation.Vertical, RightToLeft.Inherit, false, 0, 10 }; 2061yield return new object[] { Orientation.Horizontal, RightToLeft.Inherit, true, 1, 1 }; 2062yield return new object[] { Orientation.Horizontal, RightToLeft.Inherit, false, 1, 1 }; 2067yield return new object[] { Orientation.Vertical, RightToLeft.Inherit, true, 1, 9 }; 2068yield return new object[] { Orientation.Vertical, RightToLeft.Inherit, false, 1, 9 }; 2074yield return new object[] { Orientation.Horizontal, RightToLeft.Inherit, true, 5, 5 }; 2075yield return new object[] { Orientation.Horizontal, RightToLeft.Inherit, false, 5, 5 }; 2080yield return new object[] { Orientation.Vertical, RightToLeft.Inherit, true, 5, 5 }; 2081yield return new object[] { Orientation.Vertical, RightToLeft.Inherit, false, 5, 5 }; 2087yield return new object[] { Orientation.Horizontal, RightToLeft.Inherit, true, 9, 9 }; 2088yield return new object[] { Orientation.Horizontal, RightToLeft.Inherit, false, 9, 9 }; 2093yield return new object[] { Orientation.Vertical, RightToLeft.Inherit, true, 9, 1 }; 2094yield return new object[] { Orientation.Vertical, RightToLeft.Inherit, false, 9, 1 }; 2100yield return new object[] { Orientation.Horizontal, RightToLeft.Inherit, true, 10, 10 }; 2101yield return new object[] { Orientation.Horizontal, RightToLeft.Inherit, false, 10, 10 }; 2106yield return new object[] { Orientation.Vertical, RightToLeft.Inherit, true, 10, 0 }; 2107yield return new object[] { Orientation.Vertical, RightToLeft.Inherit, false, 10, 0 }; 2611yield return new object[] { RightToLeft.Inherit, null }; 2612yield return new object[] { RightToLeft.Inherit, new EventArgs() }; 2650yield return new object[] { RightToLeft.Inherit, null, 0 }; 2651yield return new object[] { RightToLeft.Inherit, new EventArgs(), 0 };
System.Windows.Forms.TestUtilities (1)
CommonTestHelperEx.cs (1)
68{ RightToLeft.Inherit, RightToLeft.No },
WindowsFormsIntegration (3)
System\Windows\Integration\WindowsFormsHost.cs (3)
1050private RightToLeft _rightToLeft = RightToLeft.Inherit; 1060return _rightToLeft == RightToLeft.Inherit ? 1068bool fireRightToLeftChanged = _rightToLeft != RightToLeft.Inherit || base.RightToLeft != value;