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