409 references to Inherit
System.Windows.Forms (19)
System\Windows\Forms\ActiveX\AxHost.cs (1)
2157if (control.RightToLeft == Forms.RightToLeft.Inherit)
System\Windows\Forms\Control.cs (6)
2849[AmbientValue(RightToLeft.Inherit)] 2856|| rightToLeft == RightToLeft.Inherit) 2870if (Properties.ContainsKey(s_rightToLeftProperty) || value != RightToLeft.Inherit) 7011if (!Properties.TryGetValue(s_rightToLeftProperty, out RightToLeft rightToLeft) || rightToLeft == RightToLeft.Inherit) 9095RightToLeft = RightToLeft.Inherit; 10472&& 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; 1649rightToLeft = RightToLeft.Inherit; 1652if (rightToLeft == RightToLeft.Inherit) 1678if (Properties.ContainsKey(s_rightToLeftProperty) || value != RightToLeft.Inherit) 2947if (!Properties.TryGetValue(s_rightToLeftProperty, out RightToLeft rightToLeft) || rightToLeft == RightToLeft.Inherit) 2965rightToLeft = RightToLeft.Inherit; 2968if (rightToLeft == RightToLeft.Inherit && RightToLeft != DefaultRightToLeft) 3419public virtual void ResetRightToLeft() => RightToLeft = RightToLeft.Inherit;
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
253[AmbientValue(RightToLeft.Inherit)]
System.Windows.Forms.Tests (386)
System\Windows\Forms\ButtonBaseTests.cs (10)
186yield return new object[] { flatStyle, RightToLeft.Inherit, textAlign, 0x56010000, 0 }; 210yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.BottomLeft, 0x56012900, 0 }; 211yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.BottomCenter, 0x56012B00, 0 }; 212yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.BottomRight, 0x56012A00, 0 }; 213yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.MiddleLeft, 0x56012D00, 0 }; 214yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.MiddleCenter, 0x56012F00, 0 }; 215yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.MiddleRight, 0x56012E00, 0 }; 216yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.TopLeft, 0x56012500, 0 }; 217yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.TopCenter, 0x56012700, 0 }; 218yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.TopRight, 0x56012600, 0 };
System\Windows\Forms\ButtonTests.cs (10)
208yield return new object[] { flatStyle, RightToLeft.Inherit, textAlign, 0x5601000B, 0 }; 232yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.BottomLeft, 0x56012900, 0 }; 233yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.BottomCenter, 0x56012B00, 0 }; 234yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.BottomRight, 0x56012A00, 0 }; 235yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.MiddleLeft, 0x56012D00, 0 }; 236yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.MiddleCenter, 0x56012F00, 0 }; 237yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.MiddleRight, 0x56012E00, 0 }; 238yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.TopLeft, 0x56012500, 0 }; 239yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.TopCenter, 0x56012700, 0 }; 240yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.TopRight, 0x56012600, 0 };
System\Windows\Forms\ColumnHeaderTests.cs (2)
1022[InlineData(RightToLeft.Inherit, true, HorizontalAlignment.Left)] 1025[InlineData(RightToLeft.Inherit, false, HorizontalAlignment.Left)]
System\Windows\Forms\ComboBoxTests.cs (1)
1301control.RightToLeft = RightToLeft.Inherit;
System\Windows\Forms\ControlTests.cs (1)
642[InlineData(RightToLeft.Inherit, 0)]
System\Windows\Forms\ControlTests.Handlers.cs (1)
5032RightToLeft = RightToLeft.Inherit
System\Windows\Forms\ControlTests.Methods.cs (3)
6910yield return new object[] { RightToLeft.Inherit, align, align }; 6945yield return new object[] { RightToLeft.Inherit, align, align }; 6973yield return new object[] { RightToLeft.Inherit, align, align };
System\Windows\Forms\ControlTests.Properties.cs (8)
10146[InlineData(RightToLeft.Inherit, RightToLeft.No, 0)] 10177[InlineData(RightToLeft.Inherit, RightToLeft.No, 1)] 10232control.RightToLeft = RightToLeft.Inherit; 10274RightToLeft = RightToLeft.Inherit 10330control.RightToLeft = RightToLeft.Inherit; 10410control.RightToLeft = RightToLeft.Inherit; 10454control.RightToLeft = RightToLeft.Inherit; 10482control.RightToLeft = RightToLeft.Inherit;
System\Windows\Forms\HScrollBarTests.cs (1)
181control.RightToLeft = RightToLeft.Inherit;
System\Windows\Forms\ListBoxTests.cs (1)
2214control.RightToLeft = RightToLeft.Inherit;
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (2)
661[InlineData(true, true, RightToLeft.Inherit, false)] 664[InlineData(true, false, RightToLeft.Inherit, false)]
System\Windows\Forms\MdiClientTests.cs (19)
338[InlineData(RightToLeft.Inherit, true)] 363[InlineData(RightToLeft.Inherit, RightToLeft.Inherit)] 364[InlineData(RightToLeft.Inherit, RightToLeft.No)] 365[InlineData(RightToLeft.Inherit, RightToLeft.Yes)] 366[InlineData(RightToLeft.No, RightToLeft.Inherit)] 369[InlineData(RightToLeft.Yes, RightToLeft.Inherit)] 388[InlineData(RightToLeft.Inherit, RightToLeft.Inherit, true)] 389[InlineData(RightToLeft.Inherit, RightToLeft.Inherit, false)] 390[InlineData(RightToLeft.Inherit, RightToLeft.No, true)] 391[InlineData(RightToLeft.Inherit, RightToLeft.No, false)] 392[InlineData(RightToLeft.Inherit, RightToLeft.Yes, true)] 393[InlineData(RightToLeft.Inherit, RightToLeft.Yes, false)] 394[InlineData(RightToLeft.No, RightToLeft.Inherit, true)] 395[InlineData(RightToLeft.No, RightToLeft.Inherit, false)] 400[InlineData(RightToLeft.Yes, RightToLeft.Inherit, true)] 401[InlineData(RightToLeft.Yes, RightToLeft.Inherit, false)]
System\Windows\Forms\MonthCalendarTests.cs (8)
1721[InlineData(RightToLeft.Inherit, true, 1)] 1722[InlineData(RightToLeft.Inherit, false, 0)] 1761[InlineData(RightToLeft.Inherit, true, 1, 0, 0)] 1762[InlineData(RightToLeft.Inherit, false, 0, 0, 0)] 3787yield return new object[] { RightToLeft.Inherit, null }; 3788yield return new object[] { RightToLeft.Inherit, new EventArgs() }; 3826yield return new object[] { RightToLeft.Inherit, null, 0 }; 3827yield return new object[] { RightToLeft.Inherit, new EventArgs(), 0 };
System\Windows\Forms\PictureBoxTests.cs (1)
1258control.RightToLeft = RightToLeft.Inherit;
System\Windows\Forms\ProgressBarTests.cs (10)
165[InlineData(RightToLeft.Inherit, true, 0x56010000, 0x0)] 168[InlineData(RightToLeft.Inherit, false, 0x56010000, 0x0)] 1186[InlineData(RightToLeft.Inherit, true, 1)] 1187[InlineData(RightToLeft.Inherit, false, 0)] 1226[InlineData(RightToLeft.Inherit, true, 1, 0, 0)] 1227[InlineData(RightToLeft.Inherit, false, 0, 0, 0)] 2374yield return new object[] { RightToLeft.Inherit, null }; 2375yield return new object[] { RightToLeft.Inherit, new EventArgs() }; 2413yield return new object[] { RightToLeft.Inherit, null, 0 }; 2414yield return new object[] { RightToLeft.Inherit, new EventArgs(), 0 };
System\Windows\Forms\ScrollBarTests.cs (2)
594[InlineData(RightToLeft.Inherit)] 1221control.RightToLeft = RightToLeft.Inherit;
System\Windows\Forms\StatusStripTests.cs (15)
205yield return new object[] { ToolStripLayoutStyle.Flow, RightToLeft.Inherit, new Padding(1, 0, 14, 0) }; 209yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, RightToLeft.Inherit, new Padding(1, 0, 14, 0) }; 213yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, RightToLeft.Inherit, new Padding(1, 0, 14, 0) }; 217yield return new object[] { ToolStripLayoutStyle.Table, RightToLeft.Inherit, new Padding(1, 0, 14, 0) }; 221yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, RightToLeft.Inherit, new Padding(1, 3, 1, 22) }; 623yield return new object[] { true, layoutStyle, RightToLeft.Inherit, new Rectangle(188, 0, 12, 22) }; 626yield return new object[] { false, layoutStyle, RightToLeft.Inherit, Rectangle.Empty }; 649yield return new object[] { true, layoutStyle, RightToLeft.Inherit, new Rectangle(198, 10, 12, 22) }; 652yield return new object[] { false, layoutStyle, RightToLeft.Inherit, Rectangle.Empty }; 676yield return new object[] { true, layoutStyle, RightToLeft.Inherit, new Rectangle(178, 0, 12, 12) }; 679yield return new object[] { false, layoutStyle, RightToLeft.Inherit, Rectangle.Empty }; 726yield return new object[] { RightToLeft.Inherit, true, 0, 0 }; 730yield return new object[] { RightToLeft.Inherit, false, 0, 0 }; 1009yield return new object[] { RightToLeft.Inherit, true, 0 }; 1013yield return new object[] { RightToLeft.Inherit, false, 0 };
System\Windows\Forms\TabControlTests.cs (10)
333[InlineData(RightToLeft.Inherit, true, 0x56010800, 0x0)] 336[InlineData(RightToLeft.Inherit, false, 0x56010800, 0x0)] 1830[InlineData(RightToLeft.Inherit, true, 1)] 1831[InlineData(RightToLeft.Inherit, false, 0)] 1870[InlineData(RightToLeft.Inherit, true, 1, 0, 0)] 1871[InlineData(RightToLeft.Inherit, false, 0, 0, 0)] 4499yield return new object[] { RightToLeft.Inherit, null }; 4500yield return new object[] { RightToLeft.Inherit, new EventArgs() }; 4538yield return new object[] { RightToLeft.Inherit, null, 0 }; 4539yield return new object[] { RightToLeft.Inherit, new EventArgs(), 0 };
System\Windows\Forms\ToolStripButtonTests.cs (15)
78Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 159Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 246Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 336Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 424Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 522Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 1230yield return new object[] { ContentAlignment.TopLeft, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Top | TextFormatFlags.HidePrefix }; 1233yield return new object[] { ContentAlignment.TopCenter, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Top | TextFormatFlags.HidePrefix }; 1236yield return new object[] { ContentAlignment.TopRight, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Top | TextFormatFlags.HidePrefix }; 1240yield return new object[] { ContentAlignment.MiddleLeft, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix }; 1243yield return new object[] { ContentAlignment.MiddleCenter, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix }; 1246yield return new object[] { ContentAlignment.MiddleRight, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix }; 1250yield return new object[] { ContentAlignment.BottomLeft, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix }; 1253yield return new object[] { ContentAlignment.BottomCenter, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix }; 1256yield return new object[] { ContentAlignment.BottomRight, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix };
System\Windows\Forms\ToolStripControlHostTests.cs (5)
1550Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 1562Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 1568Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 1654item.RightToLeft = RightToLeft.Inherit; 1697item.RightToLeft = RightToLeft.Inherit;
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
78Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 167Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 266Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 374Assert.Equal(RightToLeft.Inherit, item.RightToLeft);
System\Windows\Forms\ToolStripDropDownTests.cs (52)
1114yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1117yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1120yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1123yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1126yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1130yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1133yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1136yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1139yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1142yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1146yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1149yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1152yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1155yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1158yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1162yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1165yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1168yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1171yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1174yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1178yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1181yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1184yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1187yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1190yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1239yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1242yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1245yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1248yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1251yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1255yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1258yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1261yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1264yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1267yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1271yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1274yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1277yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1280yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1283yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1287yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1290yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1293yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1296yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1299yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1303yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1306yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1309yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1312yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1315yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 2378[InlineData(RightToLeft.Inherit, RightToLeft.No, 0)] 2427control.RightToLeft = RightToLeft.Inherit;
System\Windows\Forms\ToolStripItemTests.cs (46)
77Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 162Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 257Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 6540[InlineData(RightToLeft.Yes, RightToLeft.Inherit, RightToLeft.Yes, 1)] 6543[InlineData(RightToLeft.No, RightToLeft.Inherit, RightToLeft.No, 1)] 6544[InlineData(RightToLeft.Inherit, RightToLeft.Yes, RightToLeft.Yes, 0)] 6545[InlineData(RightToLeft.Inherit, RightToLeft.No, RightToLeft.No, 0)] 6546[InlineData(RightToLeft.Inherit, RightToLeft.Inherit, RightToLeft.No, 1)] 7095[InlineData(RightToLeft.Inherit, RightToLeft.No)] 7112[InlineData(RightToLeft.Inherit, RightToLeft.No)] 7166yield return new object[] { RightToLeft.Yes, RightToLeft.Inherit, RightToLeft.Yes, 0 }; 7169yield return new object[] { RightToLeft.No, RightToLeft.Inherit, RightToLeft.No, 0 }; 7170yield return new object[] { RightToLeft.Inherit, RightToLeft.Yes, RightToLeft.Yes, 1 }; 7171yield return new object[] { RightToLeft.Inherit, RightToLeft.No, RightToLeft.No, 0 }; 7172yield return new object[] { RightToLeft.Inherit, RightToLeft.Inherit, RightToLeft.No, 0 }; 7276yield return new object[] { RightToLeft.Yes, RightToLeft.Inherit, RightToLeft.Yes }; 7279yield return new object[] { RightToLeft.No, RightToLeft.Inherit, RightToLeft.No }; 7280yield return new object[] { RightToLeft.Inherit, RightToLeft.Yes, RightToLeft.Yes }; 7281yield return new object[] { RightToLeft.Inherit, RightToLeft.No, RightToLeft.No }; 7282yield return new object[] { RightToLeft.Inherit, RightToLeft.Inherit, RightToLeft.No }; 7426item.RightToLeft = RightToLeft.Inherit; 7427Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 7435Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 7454item.RightToLeft = RightToLeft.Inherit; 7455Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 7463Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 12199yield return new object[] { RightToLeft.Yes, RightToLeft.Inherit, null, RightToLeft.Yes, 1 }; 12200yield return new object[] { RightToLeft.Yes, RightToLeft.Inherit, new EventArgs(), RightToLeft.Yes, 1 }; 12208yield return new object[] { RightToLeft.No, RightToLeft.Inherit, null, RightToLeft.No, 1 }; 12209yield return new object[] { RightToLeft.No, RightToLeft.Inherit, new EventArgs(), RightToLeft.No, 1 }; 12211yield return new object[] { RightToLeft.Inherit, RightToLeft.Yes, null, RightToLeft.Yes, 0 }; 12212yield return new object[] { RightToLeft.Inherit, RightToLeft.Yes, new EventArgs(), RightToLeft.Yes, 0 }; 12214yield return new object[] { RightToLeft.Inherit, RightToLeft.No, null, RightToLeft.No, 0 }; 12215yield return new object[] { RightToLeft.Inherit, RightToLeft.No, new EventArgs(), RightToLeft.No, 0 }; 12217yield return new object[] { RightToLeft.Inherit, RightToLeft.Inherit, null, RightToLeft.No, 1 }; 12218yield return new object[] { RightToLeft.Inherit, RightToLeft.Inherit, new EventArgs(), RightToLeft.No, 1 }; 12656yield return new object[] { RightToLeft.Inherit, null, 1 }; 12657yield return new object[] { RightToLeft.Inherit, new EventArgs(), 1 }; 14241Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 14246Assert.Equal(RightToLeft.Inherit, item.RightToLeft); 14250Assert.Equal(RightToLeft.Inherit, item.RightToLeft);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
85Assert.Equal(RightToLeft.Inherit, item.RightToLeft);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
75Assert.Equal(RightToLeft.Inherit, item.RightToLeft);
System\Windows\Forms\ToolStripTests.cs (113)
1665yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1668yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1671yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 1674yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1677yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1681yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1684yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1687yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1690yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1693yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1697yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1700yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 1703yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1706yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1709yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1713yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1716yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 1719yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1722yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1725yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1729yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1732yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 1735yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1738yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1741yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1790yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1793yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1796yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 1799yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1802yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1806yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1809yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1812yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1815yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1818yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1822yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1825yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 1828yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1831yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1834yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1838yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1841yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 1844yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1847yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1850yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1854yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1857yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 1860yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1863yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1866yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1926yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1929yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1932yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1935yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1938yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1942yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1945yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1948yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1951yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1954yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1958yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1961yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 1964yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1967yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1970yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1974yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1977yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1980yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1983yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1986yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 1990yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1993yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 1996yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1999yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 2002yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 2030yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2033yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2036yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2039yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2042yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 2046yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2049yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2052yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2055yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2058yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 2062yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2065yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 2068yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 2071yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2074yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 2078yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2081yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2084yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2087yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2090yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.AboveRight }; 2094yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 2097yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Left }; 2100yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 2103yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 2106yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 2268yield return new object[] { ToolStripLayoutStyle.Flow, ToolStripGripStyle.Visible, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) }; 2271yield return new object[] { ToolStripLayoutStyle.Flow, ToolStripGripStyle.Hidden, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) }; 2275yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripGripStyle.Visible, RightToLeft.Inherit, new Rectangle(x, 0, width, 25) }; 2278yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripGripStyle.Hidden, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) }; 2282yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, ToolStripGripStyle.Visible, RightToLeft.Inherit, new Rectangle(x, 0, width, 25) }; 2285yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, ToolStripGripStyle.Hidden, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) }; 2289yield return new object[] { ToolStripLayoutStyle.Table, ToolStripGripStyle.Visible, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) }; 2292yield return new object[] { ToolStripLayoutStyle.Table, ToolStripGripStyle.Hidden, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) }; 2296yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripGripStyle.Visible, RightToLeft.Inherit, new Rectangle(0, x, 99, height) }; 2299yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripGripStyle.Hidden, RightToLeft.Inherit, new Rectangle(0, 0, 99, 25) }; 3446[InlineData(RightToLeft.Inherit, RightToLeft.No, 0)] 3549control.RightToLeft = RightToLeft.Inherit; 6403RightToLeft = RightToLeft.Inherit
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (1)
332[InlineData(true, RightToLeft.Inherit, false)]
System\Windows\Forms\TreeViewTests.cs (10)
668[InlineData(RightToLeft.Inherit, true, 0x56010007, 0x200)] 671[InlineData(RightToLeft.Inherit, false, 0x56010007, 0x200)] 3072[InlineData(RightToLeft.Inherit, true, 1)] 3073[InlineData(RightToLeft.Inherit, false, 0)] 3112[InlineData(RightToLeft.Inherit, true, 1, 0, 0)] 3113[InlineData(RightToLeft.Inherit, false, 0, 0, 0)] 6506yield return new object[] { RightToLeft.Inherit, null }; 6507yield return new object[] { RightToLeft.Inherit, new EventArgs() }; 6545yield return new object[] { RightToLeft.Inherit, null, 0 }; 6546yield return new object[] { RightToLeft.Inherit, new EventArgs(), 0 };
System\Windows\Forms\VScrollBarTests.cs (1)
179control.RightToLeft = RightToLeft.Inherit;
TrackBarTests.cs (32)
188[InlineData(RightToLeft.Inherit, true, 0x0)] 191[InlineData(RightToLeft.Inherit, false, 0x0)] 795[InlineData(RightToLeft.Inherit, true, 5)] 798[InlineData(RightToLeft.Inherit, false, 5)] 1552[InlineData(RightToLeft.Inherit, true, 1)] 1553[InlineData(RightToLeft.Inherit, false, 0)] 1592[InlineData(RightToLeft.Inherit, true, 1, 0, 0)] 1593[InlineData(RightToLeft.Inherit, false, 0, 0, 0)] 2046yield return new object[] { Orientation.Horizontal, RightToLeft.Inherit, true, 0, 0 }; 2047yield return new object[] { Orientation.Horizontal, RightToLeft.Inherit, false, 0, 0 }; 2052yield return new object[] { Orientation.Vertical, RightToLeft.Inherit, true, 0, 10 }; 2053yield return new object[] { Orientation.Vertical, RightToLeft.Inherit, false, 0, 10 }; 2059yield return new object[] { Orientation.Horizontal, RightToLeft.Inherit, true, 1, 1 }; 2060yield return new object[] { Orientation.Horizontal, RightToLeft.Inherit, false, 1, 1 }; 2065yield return new object[] { Orientation.Vertical, RightToLeft.Inherit, true, 1, 9 }; 2066yield return new object[] { Orientation.Vertical, RightToLeft.Inherit, false, 1, 9 }; 2072yield return new object[] { Orientation.Horizontal, RightToLeft.Inherit, true, 5, 5 }; 2073yield return new object[] { Orientation.Horizontal, RightToLeft.Inherit, false, 5, 5 }; 2078yield return new object[] { Orientation.Vertical, RightToLeft.Inherit, true, 5, 5 }; 2079yield return new object[] { Orientation.Vertical, RightToLeft.Inherit, false, 5, 5 }; 2085yield return new object[] { Orientation.Horizontal, RightToLeft.Inherit, true, 9, 9 }; 2086yield return new object[] { Orientation.Horizontal, RightToLeft.Inherit, false, 9, 9 }; 2091yield return new object[] { Orientation.Vertical, RightToLeft.Inherit, true, 9, 1 }; 2092yield return new object[] { Orientation.Vertical, RightToLeft.Inherit, false, 9, 1 }; 2098yield return new object[] { Orientation.Horizontal, RightToLeft.Inherit, true, 10, 10 }; 2099yield return new object[] { Orientation.Horizontal, RightToLeft.Inherit, false, 10, 10 }; 2104yield return new object[] { Orientation.Vertical, RightToLeft.Inherit, true, 10, 0 }; 2105yield return new object[] { Orientation.Vertical, RightToLeft.Inherit, false, 10, 0 }; 2609yield return new object[] { RightToLeft.Inherit, null }; 2610yield return new object[] { RightToLeft.Inherit, new EventArgs() }; 2648yield return new object[] { RightToLeft.Inherit, null, 0 }; 2649yield 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)
1074private RightToLeft _rightToLeft = RightToLeft.Inherit; 1084return _rightToLeft == RightToLeft.Inherit ? 1092bool fireRightToLeftChanged = _rightToLeft != RightToLeft.Inherit || base.RightToLeft != value;