64 references to Control
System.Windows.Forms (18)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
1756
controlHost.
Control
.Select();
1757
controlHost.
Control
.Focus();
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (3)
184
if (ShouldItemBeSkipped(controlHostItem.
Control
))
221
if (ShouldItemBeSkipped(controlHostItem.
Control
))
241
if (ShouldItemBeSkipped(controlHostItem.
Control
))
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (2)
28
ToolStripComboBoxControl combo = (ToolStripComboBoxControl)
Control
;
103
public ComboBox ComboBox => (ComboBox)
Control
;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.ToolStripControlHostAccessibleObject.cs (1)
74
return _ownerItem.
Control
.AccessibilityObject;
System\Windows\Forms\Controls\ToolStrips\ToolStripNumericUpDown.cs (1)
12
_numericUpDownControl = (ToolStripNumericUpDownControl)
Control
;
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (4)
20
if (
Control
is ToolStripProgressBarControl toolStripProgressBarControl)
45
return (ProgressBar)
Control
;
210
return
Control
.Text;
214
Control
.Text = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (3)
30
if (
Control
is StickyLabel stickyLabel)
38
protected override AccessibleObject CreateAccessibilityInstance() =>
Control
.AccessibilityObject;
55
internal StickyLabel Label => (StickyLabel)
Control
;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (2)
30
ToolStripTextBoxControl textBox = (ToolStripTextBoxControl)
Control
;
81
public TextBox TextBox => (TextBox)
Control
;
System.Windows.Forms.Design (18)
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (2)
26
public DesignerActionPanel? CurrentPanel => _panel?.
Control
as DesignerActionPanel;
133
if (_panel is not null && panel == (DesignerActionPanel)_panel.
Control
)
System\Windows\Forms\Design\DesignerToolStripControlHost.cs (2)
66
if (
Control
is ToolStrip miniToolStrip)
78
if (
Control
is ToolStrip miniToolStrip)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
2021
_editorNode.
Control
.Visible = true;
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (3)
502
&& controlHost.
Control
is ToolStripTemplateNode.TransparentToolStrip tool)
809
if (controlHost.
Control
is ToolStripTemplateNode.TransparentToolStrip tool)
1354
&& controlHost.
Control
is ToolStripTemplateNode.TransparentToolStrip tool
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
1088
controlHost.
Control
.Refresh();
1364
host.
Control
.Visible = false;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (8)
317
get => (_centerTextBox is not null) ? (TextBox)_centerTextBox.
Control
: null;
753
string text = ((TextBox)(_centerTextBox.
Control
)).Text;
825
string text = (_centerTextBox is not null) ? ((TextBox)(_centerTextBox.
Control
)).Text : string.Empty;
952
((TextBox)(_centerTextBox.
Control
)).KeyUp -= OnKeyUp;
953
((TextBox)(_centerTextBox.
Control
)).KeyDown -= OnKeyDown;
1125
Debug.Assert(_centerTextBox.
Control
is not null, "The TextBox is null");
1126
if (_centerTextBox.
Control
is not null)
1128
string text = ((TextBox)(_centerTextBox.
Control
)).Text;
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\DesignerToolStripControlHostTests.cs (2)
18
host.
Control
.Should().NotBeNull();
19
host.
Control
.Should().Be(control);
System.Windows.Forms.Tests (26)
System\Windows\Forms\AccessibleObjects\ToolStripComboBox.ToolStripComboBoxAccessibleObjectTests.cs (3)
18
_ = toolStripComboBox.
Control
.AccessibilityObject;
20
Assert.True(toolStripComboBox.
Control
.IsAccessibilityObjectCreated);
24
Assert.False(toolStripComboBox.
Control
.IsAccessibilityObjectCreated);
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripControlHostAccessibleObjectTests.cs (7)
26
Assert.False(toolStrip.
Control
.IsHandleCreated);
37
Assert.False(toolStrip.
Control
.IsHandleCreated);
51
Assert.False(toolStrip.
Control
.IsHandleCreated);
63
Assert.False(toolStrip.
Control
.IsHandleCreated);
77
_ = toolStripControlHost.
Control
.AccessibilityObject;
79
Assert.True(toolStripControlHost.
Control
.IsAccessibilityObjectCreated);
83
Assert.False(toolStripControlHost.
Control
.IsAccessibilityObjectCreated);
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripHostedControlAccessibleObjectTests.cs (1)
27
Assert.True(GetIsOffscreenPropertyValue(item.
Control
.AccessibilityObject));
System\Windows\Forms\AccessibleObjects\ToolStripNumericUpDown.ToolStripNumericUpDownAccessibleObjectTests.cs (4)
16
ToolStripHostedControlAccessibleObject accessibleObject = (ToolStripHostedControlAccessibleObject)toolStripNumericUpDown.
Control
.AccessibilityObject;
29
Assert.Equal(UIA_CONTROLTYPE_ID.UIA_SpinnerControlTypeId, (UIA_CONTROLTYPE_ID)(int)toolStripNumericUpDown.
Control
.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId));
30
Assert.Equal(VARIANT.Empty, toolStripNumericUpDown.
Control
.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId));
40
Control control = toolStripNumericUpDown.
Control
;
System\Windows\Forms\ControlTests.cs (2)
960
toolStrip1_TextBox1.
Control
.AssignParent(toolStrip1);
967
result = form.SelectNextControl(toolStrip1_TextBox1.
Control
, forward: true, tabStopOnly: true, nested: true, wrap: true);
System\Windows\Forms\ToolStripControlHostTests.cs (9)
69
Assert.Same(c, item.
Control
);
2582
Assert.Same(c, item.
Control
);
2596
Assert.Null(item.
Control
);
2604
Assert.Null(item.
Control
);
2624
Assert.Equal(c, item.
Control
);
2638
Assert.Null(item.
Control
);
2646
Assert.Null(item.
Control
);
2670
Assert.Same(c, item.
Control
);
2678
Assert.Same(c, item.
Control
);