Base:
property
Text
System.Windows.Forms.Control.Text
14 writes to Text
PresentationUI (2)
MS\Internal\Documents\SigningDialog.cs (2)
186
_reasonComboBox.
Text
= na;
194
_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)
46
Text
= valueStr;
System.Windows.Forms.Tests (6)
System\Windows\Forms\ComboBoxTests.cs (5)
480
control.
Text
= "Initial";
2329
comboBox.
Text
= "Test";
2349
comboBox.
Text
= "Test";
2690
control.
Text
= "Some text";
2818
Text
= text;
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
348
_toolStripComboBox.ComboBox.
Text
= "Item1";
TestPassApp (1)
DataBindingExample.Designer.cs (1)
61
this.comboBox1.
Text
= "ComboBox_DropDown";
39 references to Text
PresentationUI (3)
MS\Internal\Documents\RequestedSignatureDialog.cs (2)
56
_reason = _intentComboBox.
Text
,
86
string intentComboBoxText = _intentComboBox.
Text
.Trim();
MS\Internal\Documents\SigningDialog.cs (1)
276
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)
47
if (string.Compare(valueStr,
Text
, true, CultureInfo.CurrentCulture) != 0)
103
public virtual object GetEditingControlFormattedValue(DataGridViewDataErrorContexts context) =>
Text
;
System.Windows.Forms.Tests (22)
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (6)
508
Point actualPoint = provider.GetPositionFromCharForUpperRightCorner(charIndex, comboBox.
Text
);
547
Point actualPoint = provider.GetPositionFromCharForUpperRightCorner(charIndex, comboBox.
Text
);
630
string expected = comboBox.
Text
;
668
Assert.Equal(comboBox.
Text
.Length, provider.TextLength);
790
Assert.True(providerVisibleStart < comboBox.
Text
.Length);
792
Assert.True(providerVisibleEnd <= comboBox.
Text
.Length);
System\Windows\Forms\ComboBoxTests.cs (16)
126
Assert.Empty(control.
Text
);
486
control.
Text
.Should().Be("Test");
1334
Assert.Equal(expectedText, control.
Text
);
1340
Assert.Equal(expectedText, control.
Text
);
1359
Assert.Equal(expectedText, control.
Text
);
1365
Assert.Equal(expectedText, control.
Text
);
1733
Assert.Equal("", control.
Text
);
1743
Assert.Equal(expected, control.
Text
);
1757
Assert.Equal(expected, control.
Text
);
1768
Assert.Equal("12-9", control.
Text
);
2270
Assert.Equal(selectedIndex.ToString(), comboBox.
Text
);
2275
Assert.Empty(comboBox.
Text
);
2692
Assert.Equal(string.Empty, control.
Text
);
2704
control.SelectionLength.Should().Be(control.
Text
.Length);
2715
control.SelectionLength.Should().Be(control.
Text
.Length);
2888
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
;