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