Base:
property
Text
System.Windows.Forms.Control.Text
14 writes to Text
Accessibility_Core_App (1)
DataBindingExample.Designer.cs (1)
61this.comboBox1.Text = "ComboBox_DropDown";
PresentationUI (2)
MS\Internal\Documents\SigningDialog.cs (2)
188_reasonComboBox.Text = na; 196_reasonComboBox.Text = String.IsNullOrEmpty(_digitalSignatureRequest.Reason) ?
System.Windows.Forms (5)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
2475Text = WindowText; 3438Text = s;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
1239EditingComboBox.Text = (string?)GetFormattedValue( 1318comboBox.Text = initialFormattedValueStr;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
47Text = valueStr;
System.Windows.Forms.Tests (6)
System\Windows\Forms\ComboBoxTests.cs (5)
478control.Text = "Initial"; 2327comboBox.Text = "Test"; 2347comboBox.Text = "Test"; 2688control.Text = "Some text"; 2816Text = text;
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
350_toolStripComboBox.ComboBox.Text = "Item1";
39 references to Text
PresentationUI (3)
MS\Internal\Documents\RequestedSignatureDialog.cs (2)
60sigResources._reason = _intentComboBox.Text; 89string intentComboBoxText = _intentComboBox.Text.Trim();
MS\Internal\Documents\SigningDialog.cs (1)
278return _reasonComboBox.Text;
System.Windows.Forms (12)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (10)
23[DefaultBindingProperty(nameof(Text))] 948get => DropDownStyle == ComboBoxStyle.DropDownList ? string.Empty : Text.Substring(SelectionStart, SelectionLength); 1164string text = Text; 2759string text = Text; 2931Select(0, Text.Length); 2932SelectedText = Text; 2934SelectionLength = Text.Length; 2948int boundaryStart = ClientUtils.GetWordBoundaryStart(Text, SelectionStart); 3556if (FormattingEnabled && Text != _currentText && _dropDown) 3564_currentText = Text;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (2)
48if (string.Compare(valueStr, Text, true, CultureInfo.CurrentCulture) != 0) 104public virtual object GetEditingControlFormattedValue(DataGridViewDataErrorContexts context) => Text;
System.Windows.Forms.Tests (22)
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (6)
506Point actualPoint = provider.GetPositionFromCharForUpperRightCorner(charIndex, comboBox.Text); 545Point actualPoint = provider.GetPositionFromCharForUpperRightCorner(charIndex, comboBox.Text); 628string expected = comboBox.Text; 666Assert.Equal(comboBox.Text.Length, provider.TextLength); 788Assert.True(providerVisibleStart < comboBox.Text.Length); 790Assert.True(providerVisibleEnd <= comboBox.Text.Length);
System\Windows\Forms\ComboBoxTests.cs (16)
124Assert.Empty(control.Text); 484control.Text.Should().Be("Test"); 1332Assert.Equal(expectedText, control.Text); 1338Assert.Equal(expectedText, control.Text); 1357Assert.Equal(expectedText, control.Text); 1363Assert.Equal(expectedText, control.Text); 1731Assert.Equal("", control.Text); 1741Assert.Equal(expected, control.Text); 1755Assert.Equal(expected, control.Text); 1766Assert.Equal("12-9", control.Text); 2268Assert.Equal(selectedIndex.ToString(), comboBox.Text); 2273Assert.Empty(comboBox.Text); 2690Assert.Equal(string.Empty, control.Text); 2702control.SelectionLength.Should().Be(control.Text.Length); 2713control.SelectionLength.Should().Be(control.Text.Length); 2886SelectionStart = Text.Length + cursorRelativeToEnd;
TrimTest (1)
Form1.cs (1)
43string text = comboBox1.SelectedItem as string ?? comboBox1.Text ?? string.Empty;
WinFormsControlsTest (1)
ComboBoxes.cs (1)
23label1.Text = comboBox1.Text;