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