7 types derived from ToolStripControlHost
System.Windows.Forms (5)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
13public partial class ToolStripComboBox : ToolStripControlHost
System\Windows\Forms\Controls\ToolStrips\ToolStripNumericUpDown.cs (1)
6internal partial class ToolStripNumericUpDown : ToolStripControlHost
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (1)
10public partial class ToolStripProgressBar : ToolStripControlHost
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (1)
11internal partial class ToolStripScrollButton : ToolStripControlHost
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
14public partial class ToolStripTextBox : ToolStripControlHost
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignerToolStripControlHost.cs (1)
16internal class DesignerToolStripControlHost : ToolStripControlHost, IComponent
System.Windows.Forms.Tests (1)
System\Windows\Forms\ToolStripControlHostTests.cs (1)
4629private class SubToolStripControlHost : ToolStripControlHost
115 instantiations of ToolStripControlHost
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (1)
149_panel = new ToolStripControlHost(panel)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
881_centerTextBox = new ToolStripControlHost(tb)
System.Windows.Forms.Tests (109)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (4)
1428using ToolStripControlHost host = new(control); 1495using ToolStripControlHost host = new(control); 1529using ToolStripControlHost host = new(control); 1567using ToolStripControlHost host = new(control);
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (1)
893return new ToolStripControlHost(emptyLabel);
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripControlHostAccessibleObjectTests.cs (5)
21using ToolStripControlHost toolStrip = new(control); 33using ToolStripControlHost toolStrip = new(control); 45using ToolStripControlHost toolStrip = new(control); 58using ToolStripControlHost toolStrip = new(control); 71using ToolStripControlHost toolStripControlHost = new(control);
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (1)
314return new ToolStripControlHost(new Label());
System\Windows\Forms\ToolStripControlHostTests.cs (98)
138using ToolStripControlHost item = new(c) 157using ToolStripControlHost item = new(c); 168using ToolStripControlHost item = new(c) 187using ToolStripControlHost item = new(c); 198using ToolStripControlHost item = new(c) 217using ToolStripControlHost item = new(c); 228using ToolStripControlHost item = new(c) 248using ToolStripControlHost item = new(c); 256using ToolStripControlHost item = new(c); 322using ToolStripControlHost item = new(c); 390using ToolStripControlHost item = new(c); 409using ToolStripControlHost item = new(c) 428using ToolStripControlHost item = new(c); 439using ToolStripControlHost item = new(c); 450using ToolStripControlHost item = new(c) 469using ToolStripControlHost item = new(c); 496using ToolStripControlHost item = new(c) 507using ToolStripControlHost item = new(c); 517using ToolStripControlHost item = new(c) 542using ToolStripControlHost item = new(c); 556using ToolStripControlHost item = new(c); 568using ToolStripControlHost item = new(c); 579using ToolStripControlHost item = new(c); 594using ToolStripControlHost item = new(c); 613using ToolStripControlHost item = new(c); 625using ToolStripControlHost item = new(c); 639using ToolStripControlHost item = new(c); 653using ToolStripControlHost item = new(c); 663using ToolStripControlHost item = new(c); 677using ToolStripControlHost item = new(c); 702using ToolStripControlHost item = new(c) 724using ToolStripControlHost item = new(c); 744using ToolStripControlHost item = new(c); 763using ToolStripControlHost item = new(c) 780using ToolStripControlHost item = new(c); 816using ToolStripControlHost item = new(c); 825using ToolStripControlHost item = new(c) 842using ToolStripControlHost item = new(c); 865using ToolStripControlHost item = new(c) 892using ToolStripControlHost item = new(c); 927using ToolStripControlHost item = new(c); 937using ToolStripControlHost item = new(c); 947using ToolStripControlHost item = new(c); 967using ToolStripControlHost item = new(c) 988using ToolStripControlHost item = new(c); 1000using ToolStripControlHost item = new(c); 1026using ToolStripControlHost item = new(c); 1040using ToolStripControlHost item = new(c); 1066using ToolStripControlHost item = new(c); 1075using ToolStripControlHost item = new(c); 1141using ToolStripControlHost item = new(c); 1152using ToolStripControlHost item = new(c); 1169using ToolStripControlHost item = new(c); 1183using ToolStripControlHost item = new(c); 1200using ToolStripControlHost item = new(c); 1221using ToolStripControlHost item = new(c) 1243using ToolStripControlHost item = new(c) 1263using ToolStripControlHost item = new(c); 1274using ToolStripControlHost item = new(c) 1296using ToolStripControlHost item = new(c) 1318using ToolStripControlHost item = new(c) 1347using ToolStripControlHost item = new(c) 1547using ToolStripControlHost item = new(c); 1558using ToolStripControlHost item = new(c); 1578using ToolStripControlHost item = new(c) 1597using ToolStripControlHost item = new(c); 1634using ToolStripControlHost item = new(c); 1643using ToolStripControlHost item = new(c); 1672using ToolStripControlHost item = new(c); 1686using ToolStripControlHost item = new(c); 1715using ToolStripControlHost item = new(c); 1726using ToolStripControlHost item = new(c) 1748using ToolStripControlHost item = new(c); 1771using ToolStripControlHost item = new(c); 1817using ToolStripControlHost item = new(c); 1838using ToolStripControlHost item = new(c); 1859using ToolStripControlHost item = new(c); 1881using ToolStripControlHost item = new(c); 1917using ToolStripControlHost item = new(c); 1946using ToolStripControlHost item = new(c); 1969using ToolStripControlHost item = new(c); 1987using ToolStripControlHost item = new(c); 2008using ToolStripControlHost item = new(c); 2027using ToolStripControlHost item = new(c); 2047using ToolStripControlHost item = new(c); 2069using ToolStripControlHost item = new(c); 2088using ToolStripControlHost item = new(c); 2108using ToolStripControlHost item = new(c); 2128using ToolStripControlHost item = new(c); 2160using ToolStripControlHost item = new(c); 2179using ToolStripControlHost item = new(c); 2208using ToolStripControlHost item = new(c); 2229using ToolStripControlHost item = new(c); 2692using ToolStripControlHost item = new(c); 2702using ToolStripControlHost item = new(c); 2725using ToolStripControlHost item = new(c); 2740using ToolStripControlHost item = new(c) 2755using ToolStripControlHost item = new(c);
WinFormsControlsTest (4)
ToolStripTests.cs (4)
15toolStrip1.Items.Add(new ToolStripControlHost(new RadioButton() { Text = "RadioButton" })); // RadioButton supports UIA 16toolStrip1.Items.Add(new ToolStripControlHost(new HScrollBar() { Value = 30 })); // HScrollBar doesn't support UIA 17statusStrip1.Items.Add(new ToolStripControlHost(new RadioButton() { Text = "RadioButton" })); // RadioButton supports UIA 18statusStrip1.Items.Add(new ToolStripControlHost(new HScrollBar() { Value = 30 })); // HScrollBar doesn't support UIA
169 references to ToolStripControlHost
System.Windows.Forms (19)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
65if (!this.TryGetOwnerAs(out Control? owner) || owner.ToolStripControlHost is not ToolStripControlHost host)
System\Windows\Forms\Control.cs (3)
12828private readonly WeakReference<ToolStripControlHost?> _toolStripControlHostReference = new(null); 12830internal ToolStripControlHost? ToolStripControlHost 12834_toolStripControlHostReference.TryGetTarget(out ToolStripControlHost? value);
System\Windows\Forms\Controls\Menus\MenuStrip.cs (1)
257if (item is not null && !(item is ToolStripControlHost))
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
1734ToolStripControlHost? controlHost = nextItem as ToolStripControlHost; 3364_lastMouseActiveItem = (item is ToolStripControlHost) ? null : item;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (3)
181if (item is ToolStripControlHost controlHostItem and not ToolStripScrollButton) 218if (item is ToolStripControlHost controlHostItem) 238if (item is ToolStripControlHost controlHostItem)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.ToolStripControlHostAccessibleObject.cs (2)
15private readonly ToolStripControlHost _ownerItem; 21public ToolStripControlHostAccessibleObject(ToolStripControlHost ownerItem) : base(ownerItem)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.ToolStripHostedControlAccessibleObject.cs (2)
18private readonly ToolStripControlHost? _toolStripControlHost; 26public ToolStripHostedControlAccessibleObject(Control toolStripHostedControl, ToolStripControlHost? toolStripControlHost) : base(toolStripHostedControl)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (1)
198if (item is ToolStripControlHost controlHostItem)
System\Windows\Forms\Controls\ToolStrips\ToolStripNumericUpDown.ToolStripNumericUpDownControl.ToolStripNumericUpDownAccessibleObject.cs (1)
15public ToolStripNumericUpDownAccessibleObject(Control toolStripHostedControl, ToolStripControlHost? toolStripControlHost)
System\Windows\Forms\DataBinding\BindingNavigator.cs (2)
862if (oldTextBox is ToolStripControlHost oldCtrl) 868if (newTextBox is ToolStripControlHost newCtrl)
System.Windows.Forms.Design (10)
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (1)
15private ToolStripControlHost? _panel;
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (3)
59if (!(item is ToolStripControlHost && item.IsOnDropDown)) 67else if (item is ToolStripControlHost && !item.IsOnDropDown) 450selItem is ToolStripSeparator || selItem is ToolStripControlHost || !selItem.IsOnDropDown || selItem.IsOnOverflow)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (2)
118if (selectedItem is not ToolStripControlHost and not ToolStripSeparator) 638if (selectedItem is not ToolStripControlHost and not ToolStripSeparator)
System\Windows\Forms\Design\ToolStripItemGlyph.cs (1)
44if (Item is ToolStripControlHost && Item.IsOnDropDown)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1362if (toolItem is ToolStripControlHost host)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
62private ToolStripControlHost _centerTextBox; 1698if (item is ToolStripControlHost)
System.Windows.Forms.Tests (140)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (4)
1428using ToolStripControlHost host = new(control); 1495using ToolStripControlHost host = new(control); 1529using ToolStripControlHost host = new(control); 1567using ToolStripControlHost host = new(control);
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripControlHostAccessibleObjectTests.cs (6)
5using static System.Windows.Forms.ToolStripControlHost; 21using ToolStripControlHost toolStrip = new(control); 33using ToolStripControlHost toolStrip = new(control); 45using ToolStripControlHost toolStrip = new(control); 58using ToolStripControlHost toolStrip = new(control); 71using ToolStripControlHost toolStripControlHost = new(control);
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripHostedControlAccessibleObjectTests.cs (3)
13return ReflectionHelper.GetPublicNotAbstractClasses<ToolStripControlHost>().Select(type => new object[] { type }); 22using ToolStripControlHost item = ReflectionHelper.InvokePublicConstructor<ToolStripControlHost>(type);
System\Windows\Forms\AccessibleObjects\ToolStripNumericUpDown.ToolStripNumericUpDownAccessibleObjectTests.cs (1)
6using static System.Windows.Forms.ToolStripControlHost;
System\Windows\Forms\ToolStripControlHostTests.cs (126)
138using ToolStripControlHost item = new(c) 157using ToolStripControlHost item = new(c); 168using ToolStripControlHost item = new(c) 187using ToolStripControlHost item = new(c); 198using ToolStripControlHost item = new(c) 217using ToolStripControlHost item = new(c); 228using ToolStripControlHost item = new(c) 248using ToolStripControlHost item = new(c); 256using ToolStripControlHost item = new(c); 322using ToolStripControlHost item = new(c); 331PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)]; 348PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)]; 362PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)]; 379PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)]; 390using ToolStripControlHost item = new(c); 409using ToolStripControlHost item = new(c) 428using ToolStripControlHost item = new(c); 439using ToolStripControlHost item = new(c); 450using ToolStripControlHost item = new(c) 469using ToolStripControlHost item = new(c); 496using ToolStripControlHost item = new(c) 507using ToolStripControlHost item = new(c); 517using ToolStripControlHost item = new(c) 542using ToolStripControlHost item = new(c); 556using ToolStripControlHost item = new(c); 568using ToolStripControlHost item = new(c); 579using ToolStripControlHost item = new(c); 594using ToolStripControlHost item = new(c); 613using ToolStripControlHost item = new(c); 625using ToolStripControlHost item = new(c); 639using ToolStripControlHost item = new(c); 653using ToolStripControlHost item = new(c); 663using ToolStripControlHost item = new(c); 677using ToolStripControlHost item = new(c); 702using ToolStripControlHost item = new(c) 724using ToolStripControlHost item = new(c); 744using ToolStripControlHost item = new(c); 763using ToolStripControlHost item = new(c) 780using ToolStripControlHost item = new(c); 816using ToolStripControlHost item = new(c); 825using ToolStripControlHost item = new(c) 842using ToolStripControlHost item = new(c); 865using ToolStripControlHost item = new(c) 892using ToolStripControlHost item = new(c); 927using ToolStripControlHost item = new(c); 937using ToolStripControlHost item = new(c); 947using ToolStripControlHost item = new(c); 967using ToolStripControlHost item = new(c) 988using ToolStripControlHost item = new(c); 998PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)]; 1000using ToolStripControlHost item = new(c); 1024PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)]; 1026using ToolStripControlHost item = new(c); 1038PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)]; 1040using ToolStripControlHost item = new(c); 1064PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)]; 1066using ToolStripControlHost item = new(c); 1075using ToolStripControlHost item = new(c); 1141using ToolStripControlHost item = new(c); 1150PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.ForeColor)]; 1152using ToolStripControlHost item = new(c); 1167PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.ForeColor)]; 1169using ToolStripControlHost item = new(c); 1181PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.ForeColor)]; 1183using ToolStripControlHost item = new(c); 1198PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.ForeColor)]; 1200using ToolStripControlHost item = new(c); 1221using ToolStripControlHost item = new(c) 1243using ToolStripControlHost item = new(c) 1263using ToolStripControlHost item = new(c); 1274using ToolStripControlHost item = new(c) 1296using ToolStripControlHost item = new(c) 1318using ToolStripControlHost item = new(c) 1347using ToolStripControlHost item = new(c) 1547using ToolStripControlHost item = new(c); 1558using ToolStripControlHost item = new(c); 1578using ToolStripControlHost item = new(c) 1597using ToolStripControlHost item = new(c); 1634using ToolStripControlHost item = new(c); 1641PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(SubToolStripControlHost))[nameof(ToolStripControlHost.RightToLeft)]; 1643using ToolStripControlHost item = new(c); 1670PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(SubToolStripControlHost))[nameof(ToolStripControlHost.RightToLeft)]; 1672using ToolStripControlHost item = new(c); 1684PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(SubToolStripControlHost))[nameof(ToolStripControlHost.RightToLeft)]; 1686using ToolStripControlHost item = new(c); 1713PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(SubToolStripControlHost))[nameof(ToolStripControlHost.RightToLeft)]; 1715using ToolStripControlHost item = new(c); 1726using ToolStripControlHost item = new(c) 1748using ToolStripControlHost item = new(c); 1771using ToolStripControlHost item = new(c); 1817using ToolStripControlHost item = new(c); 1838using ToolStripControlHost item = new(c); 1859using ToolStripControlHost item = new(c); 1881using ToolStripControlHost item = new(c); 1917using ToolStripControlHost item = new(c); 1946using ToolStripControlHost item = new(c); 1969using ToolStripControlHost item = new(c); 1987using ToolStripControlHost item = new(c); 2008using ToolStripControlHost item = new(c); 2027using ToolStripControlHost item = new(c); 2047using ToolStripControlHost item = new(c); 2069using ToolStripControlHost item = new(c); 2088using ToolStripControlHost item = new(c); 2108using ToolStripControlHost item = new(c); 2128using ToolStripControlHost item = new(c); 2160using ToolStripControlHost item = new(c); 2179using ToolStripControlHost item = new(c); 2208using ToolStripControlHost item = new(c); 2229using ToolStripControlHost item = new(c); 2692using ToolStripControlHost item = new(c); 2702using ToolStripControlHost item = new(c); 2725using ToolStripControlHost item = new(c); 2740using ToolStripControlHost item = new(c) 2755using ToolStripControlHost item = new(c);