Base:
property
Text
System.Windows.Forms.TextBoxBase.Text
3 overrides of Text
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
43
public override string
Text
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (1)
23
public override string
Text
System.Windows.Forms.Tests (1)
TextBoxTests.cs (1)
750
public override string
Text
191 writes to Text
DesignSurface (4)
MainForm.cs (1)
184
t1.
Text
= "I'm a TextBox";
MainForm.MyUserControl.cs (3)
24
Text
= "UserControl TextBox 1",
31
Text
= "UserControl TextBox 2",
38
Text
= "UserControl TextBox 3",
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
87
TextBox.
Text
= defaultResponse
PresentationUI (6)
MS\Internal\Documents\RMPublishingDialog.cs (4)
53
textBoxPermissionsContact.
Text
= user.Name;
71
textBoxPermissionsContact.
Text
= address;
692
textBoxUserName.
Text
=
910
textBoxUnrestrictedText.
Text
= SR.RMPublishingUnrestrictedText;
MS\Internal\Documents\SigningDialog.cs (2)
187
_locationTextBox.
Text
= na;
196
_locationTextBox.
Text
= String.IsNullOrEmpty(_digitalSignatureRequest.Location) ?
System.Windows.Forms (7)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (2)
521
textBox.
Text
= string.Empty;
525
textBox.
Text
= initialFormattedValueStr;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
50
Text
= (string?)value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
34
set => _detailsTextBox.
Text
= value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
49
base.
Text
= value;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (1)
35
base.
Text
= value;
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
320
_details.
Text
= detailsText;
System.Windows.Forms.Design (23)
System\ComponentModel\Design\ByteViewer.cs (2)
415
_edit.
Text
= new string(text);
423
_edit.
Text
= string.Create(_dataBuf.Length / sizeof(char) + 1, _dataBuf, static (text, dataBuf) =>
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (12)
145
_nameTextBox.
Text
= _headerTextBox.
Text
= AssignName();
193
_headerTextBox.
Text
= _nameTextBox.
Text
= AssignName();
497
_headerTextBox.
Text
= _nameTextBox.
Text
= ((ListBoxItem)_dataColumns.SelectedItem).PropertyName;
508
_nameTextBox.
Text
= _headerTextBox.
Text
= AssignName();
594
_headerTextBox.
Text
= _nameTextBox.
Text
= AssignName();
600
_headerTextBox.
Text
= _nameTextBox.
Text
= columnName;
System\Windows\Forms\Design\FormatControl.cs (3)
77
nullValueTextBox.
Text
= value;
233
nullValueTextBox.
Text
= string.Empty;
236
_customStringTextBox.
Text
= string.Empty;
System\Windows\Forms\Design\FormatControl.CustomFormatType.cs (1)
105
_owner._customStringTextBox.
Text
= formatString;
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUI.cs (1)
35
_sampleEdit.
Text
= value;
System\Windows\Forms\Design\MaskDesignerDialog.cs (2)
64
_txtBoxMask.
Text
= _maskedTextBox.Mask;
626
_txtBoxMask.
Text
= maskDescriptor.Mask;
System\Windows\Forms\Design\StringCollectionEditor.StringCollectionForm.cs (1)
187
=> _textEntry.
Text
= string.Join(Environment.NewLine, Items);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
878
Text
= _centerLabel.Text,
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\TextBoxBaseDesignerTests.cs (1)
82
_textbox.
Text
= "Test Text";
System.Windows.Forms.Tests (135)
System\Windows\Forms\AccessibleObjects\TextBoxAccessibleObjectTests.cs (1)
100
textBox.
Text
= "some text";
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (19)
340
Text
= value
349
control.
Text
= value;
370
Text
= value
380
control.
Text
= value;
397
Assert.Throws<InvalidOperationException>(() => control.
Text
= "text");
406
control.
Text
= "text";
430
control.
Text
= value;
441
control.
Text
= value;
466
control.
Text
= "text";
471
control.
Text
= "text";
476
control.
Text
= null;
482
control.
Text
= "text";
509
control.
Text
= "text";
518
control.
Text
= "text";
527
control.
Text
= null;
537
control.
Text
= "text";
1094
Text
= "text"
1458
Text
= "text"
1491
Text
= "text"
TextBoxBaseTests.ClipboardTests.cs (15)
19
Text
= "abc",
26
control.
Text
= "text";
42
Text
= "abc",
50
control.
Text
= "text";
65
Text
= "abc",
84
control.
Text
= "text";
102
Text
= "abc",
110
control.
Text
= "text";
125
Text
= "abc",
144
control.
Text
= "text";
173
Text
= "abc",
187
Text
= "abc",
193
control.
Text
= "text";
211
control.
Text
= "text";
236
control.
Text
= "text";
TextBoxBaseTests.cs (99)
894
Text
= "text",
938
Text
= "text"
1002
Text
= "text"
1088
Text
= "text"
1622
control.
Text
= text;
1708
Text
= "Text",
1761
control.
Text
= "Text";
2591
Text
= text,
2643
Text
= text,
2664
Text
= text,
2686
Text
= text,
2708
Text
= text,
2813
Text
= text,
2841
Text
= text,
2868
Text
= text
2908
Text
= "Text",
2989
Text
= text,
3017
Text
= text,
3045
Text
= text
3085
Text
= "Text",
3220
Text
= value
3232
control.
Text
= value;
3270
Text
= oldValue,
3275
control.
Text
= value;
3286
control.
Text
= value;
3304
Text
= value
3316
control.
Text
= value;
3340
control.
Text
= value;
3353
control.
Text
= value;
3384
control.
Text
= value;
3397
control.
Text
= value;
3437
Text
= oldValue,
3449
control.
Text
= value;
3463
control.
Text
= value;
3491
control.
Text
= "text";
3496
control.
Text
= "text";
3501
control.
Text
= null;
3507
control.
Text
= "text";
3534
control.
Text
= "text";
3543
control.
Text
= "text";
3552
control.
Text
= null;
3562
control.
Text
= "text";
3576
control.
Text
= value;
3581
control.
Text
= value;
3593
control.
Text
= value;
3598
control.
Text
= value;
3650
Text
= text
3672
control.
Text
= text;
3881
Text
= "abc"
3899
Text
= "abc",
3919
Text
= "abc",
3940
Text
= "abc",
3988
Text
= "abc"
4027
Text
= "Text"
4071
Text
= "Text"
4151
Text
= "Text",
4178
control.
Text
= "text";
4203
control.
Text
= "text";
4228
Text
= "text",
4267
Text
= "Text"
4288
Text
= "Text"
4319
Text
= "Text"
4342
Text
= "Text"
4380
Text
= "Text"
4402
Text
= "Text"
4433
Text
= "Text"
4457
Text
= "Text"
4498
Text
= text,
4629
Text
= "text"
4659
Text
= "text"
4739
Text
= "text"
4778
Text
= "text"
4855
Text
= "text"
4871
Text
= "text"
4908
Text
= "text"
4935
Text
= "text"
4967
Text
= "text",
5084
Text
= "Text",
5103
Text
= "a\rn\nb",
5127
Text
= "a\rn\nb",
5465
Text
= "Text",
5953
Text
= "text",
5968
Text
= text,
5983
Text
= text,
6002
Text
= "123-5-7-9",
6097
Text
= text
6123
Text
= text
6154
Text
= "Text"
6179
Text
= "Text"
6231
Text
= text
6253
Text
= text
6294
Text
= "Text"
6342
Text
= "text"
6395
Text
= "text"
6430
Text
= "Text"
6841
Text
= "Text"
6851
Text
= new string('a', 41)
6872
Text
= "abc",
6910
Text
= "abc",
TextBoxTests.cs (1)
757
set => base.
Text
= value;
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
416
textBox.
Text
= "New TextBox Text";
TestPassApp (2)
DataBindingExample.Designer.cs (1)
94
this.textBox1.
Text
= "TextBox";
PrintingControls.Designer.cs (1)
87
this.txtPrint.
Text
= "This is the test message.";
TrimTest (2)
Form1.cs (1)
37
textBox1.
Text
= text;
Form1.Designer.cs (1)
71
textBox1.
Text
= "This is a multiline TextBox. Dragging text to it will replace the content.";
WinFormsControlsTest (9)
DesignTimeAligned.Designer.cs (1)
81
this.textBox1.
Text
= "LLL";
DragDrop.cs (1)
215
textBox.
Text
+= textBox.Text.Length > 0
MultipleControls.Designer.cs (1)
123
this.textBox1.
Text
= "LLLLL";
PictureBoxes.Designer.cs (1)
76
this.imageUri.
Text
= "https://initiate.alphacoders.com/download/wallpaper/685514/images5/jpg/2283681847" +
ScrollableControls.Designer.cs (1)
377
textBox1.
Text
= "zdffsdfsd\r\nfsdfsdfss\r\ndfsdfsdfs\r\ndfsdfsdf\r\nsdfsdfd\r\nfsdfsdfsnfsdfsdfs";
TextBoxes.Designer.cs (4)
48
this.textBox.
Text
= "Some long long text for a TextBox";
57
this.RTLTextBox.
Text
= "Some long long text for a RTL TextBox";
67
this.multilineTextBox.
Text
= @"Some long
91
this.RTLMultilineTextBox.
Text
= @"Some long
162 references to Text
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
120
Output = TextBox.
Text
PresentationUI (8)
MS\Internal\Documents\RequestedSignatureDialog.cs (3)
55
_subjectName = _requestedSignerNameTextBox.
Text
,
57
_location = _requestedLocationTextBox.
Text
85
string requestSignerName = _requestedSignerNameTextBox.
Text
.Trim();
MS\Internal\Documents\RMPublishingDialog.cs (4)
258
rmLicense.ReferralInfoName = textBoxPermissionsContact.
Text
;
453
textBoxPermissionsContact.
Text
.Trim();
469
textBoxPermissionsContact.
Text
),
644
string userNames = textBoxUserName.
Text
;
MS\Internal\Documents\SigningDialog.cs (1)
287
return _locationTextBox.
Text
;
System.Windows.Forms (12)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (9)
132
if ((RightToLeft == RightToLeft.No && !(SelectionLength == 0 && SelectionStart ==
Text
.Length)) ||
145
(RightToLeft == RightToLeft.Yes && !(SelectionLength == 0 && SelectionStart ==
Text
.Length)))
156
if (
Text
.IndexOf("\r\n", end, StringComparison.Ordinal) != -1)
166
if (!(
Text
.IndexOf("\r\n", StringComparison.Ordinal) < 0
167
|| SelectionStart + SelectionLength <
Text
.IndexOf("\r\n", StringComparison.Ordinal)))
176
if (SelectionLength !=
Text
.Length)
194
SelectionStart <
Text
.Length)
215
return
Text
;
228
SelectionStart =
Text
.Length;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
45
get => base.
Text
;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (2)
25
get => base.
Text
;
28
if (IsAccessibilityObjectCreated && value != base.
Text
)
System.Windows.Forms.Design (15)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (6)
95
column.HeaderText = _headerTextBox.
Text
;
96
column.Name = _nameTextBox.
Text
;
108
column.HeaderText = _headerTextBox.
Text
;
109
column.Name = _nameTextBox.
Text
;
642
_nameTextBox.
Text
,
775
_nameTextBox.
Text
,
System\Windows\Forms\Design\FormatControl.cs (1)
70
string nullValue = nullValueTextBox.
Text
;
System\Windows\Forms\Design\FormatControl.CustomFormatType.cs (1)
100
public override string FormatString => _owner._customStringTextBox.
Text
;
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUI.cs (1)
32
get => _sampleEdit.
Text
;
System\Windows\Forms\Design\MaskDesignerDialog.cs (2)
691
_maskedTextBox.Mask = _txtBoxMask.
Text
;
715
if (selectedMaskDex is null || (selectedMaskDex != _customMaskDescriptor && selectedMaskDex.Mask != _txtBoxMask.
Text
))
System\Windows\Forms\Design\StringCollectionEditor.StringCollectionForm.cs (1)
143
string[] lines = _textEntry.
Text
.Split('\n');
System\Windows\Forms\Design\ToolStripTemplateNode.cs (3)
753
string text = ((TextBox)(_centerTextBox.Control)).
Text
;
825
string text = (_centerTextBox is not null) ? ((TextBox)(_centerTextBox.Control)).
Text
: string.Empty;
1128
string text = ((TextBox)(_centerTextBox.Control)).
Text
;
System.Windows.Forms.Design.Tests (8)
System\ComponentModel\Design\ByteViewerTests.cs (4)
807
Assert.Equal(expected, textBox.
Text
);
814
Assert.Equal("123", textBox.
Text
);
837
Assert.Equal(expected, textBox.
Text
);
844
Assert.Equal("123", textBox.
Text
);
System\Windows\Forms\Design\MaskDesignerDialogTests.cs (1)
31
txtBoxMask.
Text
.Should().Be(_maskedTextBox.Mask);
System\Windows\Forms\Design\TextBoxBaseDesignerTests.cs (3)
80
_textbox.
Text
.Should().BeEmpty();
85
_textbox.
Text
.Should().Be("Test Text");
89
_textbox.
Text
.Should().BeEmpty();
System.Windows.Forms.Tests (111)
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (24)
121
Assert.Empty(control.
Text
);
212
Assert.Equal(expected, control.
Text
);
220
Assert.Equal(expected, control.
Text
);
242
Assert.Equal(expected, control.
Text
);
251
Assert.Equal(expected, control.
Text
);
267
Assert.Equal("text", control.
Text
);
276
Assert.Equal("text", control.
Text
);
344
Assert.Equal(expected, control.
Text
);
352
Assert.Equal(expected, control.
Text
);
374
Assert.Equal(expected, control.
Text
);
383
Assert.Equal(expected, control.
Text
);
400
Assert.Equal("text", control.
Text
);
409
Assert.Equal("text", control.
Text
);
433
Assert.Equal(expected, control.
Text
);
444
Assert.Equal(expected, control.
Text
);
467
Assert.Equal("text", control.
Text
);
472
Assert.Equal("text", control.
Text
);
477
Assert.Empty(control.
Text
);
483
Assert.Equal("text", control.
Text
);
510
Assert.Equal("text", control.
Text
);
519
Assert.Equal("text", control.
Text
);
528
Assert.Empty(control.
Text
);
538
Assert.Equal("text", control.
Text
);
992
Assert.NotSame(control.
Text
, instance);
TextBoxBaseTests.ClipboardTests.cs (18)
30
control.
Text
.Should().Be("bcxt");
34
control.
Text
.Should().Be("bcxt");
47
control.
Text
.Should().Be("abc");
54
control.
Text
.Should().Be("bcxt");
78
control.
Text
.Should().Be("abc");
88
control.
Text
.Should().Be("bcxt");
107
control.
Text
.Should().Be("a");
114
control.
Text
.Should().Be("bcxt");
138
control.
Text
.Should().Be("a");
148
control.
Text
.Should().Be("bcxt");
163
control.
Text
.Should().BeEmpty();
178
control.
Text
.Should().Be("a");
197
control.
Text
.Should().Be("bcxt");
200
control.
Text
.Should().Be("text");
208
control.
Text
.Should().BeEmpty();
213
control.
Text
.Should().Be("text");
230
control.
Text
.Should().BeEmpty();
238
control.
Text
.Should().Be("text");
TextBoxBaseTests.cs (68)
1645
Assert.Equal(expectedText, control.
Text
);
1651
Assert.Equal(expectedText, control.
Text
);
1712
Assert.Equal("Text", control.
Text
);
1764
Assert.Equal("Text", control.
Text
);
2597
Assert.Equal(expected, control.
Text
);
2651
Assert.Equal(expected, control.
Text
);
2673
Assert.Equal(expected, control.
Text
);
2695
Assert.Equal(expected, control.
Text
);
2724
Assert.Equal(expected, control.
Text
);
3184
Assert.Empty(control.
Text
);
3191
Assert.Empty(control.
Text
);
3202
Assert.Empty(control.
Text
);
3211
Assert.Empty(control.
Text
);
3222
Assert.Equal(expected, control.
Text
);
3233
Assert.Equal(expected, control.
Text
);
3276
Assert.Equal(expected, control.
Text
);
3287
Assert.Equal(expected, control.
Text
);
3306
Assert.Equal(expected, control.
Text
);
3317
Assert.Equal(expected, control.
Text
);
3341
Assert.Equal(expected, control.
Text
);
3354
Assert.Equal(expected, control.
Text
);
3385
Assert.Equal(expected, control.
Text
);
3398
Assert.Equal(expected, control.
Text
);
3450
Assert.Equal(expected, control.
Text
);
3464
Assert.Equal(expected, control.
Text
);
3492
Assert.Equal("text", control.
Text
);
3497
Assert.Equal("text", control.
Text
);
3502
Assert.Empty(control.
Text
);
3508
Assert.Equal("text", control.
Text
);
3535
Assert.Equal("text", control.
Text
);
3544
Assert.Equal("text", control.
Text
);
3553
Assert.Empty(control.
Text
);
3563
Assert.Equal("text", control.
Text
);
3577
Assert.Equal(expected, control.
Text
);
3582
Assert.Equal(expected, control.
Text
);
3594
Assert.Equal(expected, control.
Text
);
3599
Assert.Equal(expected, control.
Text
);
3866
Assert.Equal(expected, control.
Text
);
3884
Assert.Equal("abc" + text, control.
Text
);
3904
Assert.Equal("abc" + text, control.
Text
);
3925
Assert.Equal("abc" + text, control.
Text
);
3947
Assert.Equal("abc" + text, control.
Text
);
3970
Assert.Equal(expected, control.
Text
);
3999
Assert.Equal("abc" + text, control.
Text
);
4014
Assert.Empty(control.
Text
);
4018
Assert.Empty(control.
Text
);
4031
Assert.Empty(control.
Text
);
4035
Assert.Empty(control.
Text
);
4052
Assert.Empty(control.
Text
);
4059
Assert.Empty(control.
Text
);
4082
Assert.Empty(control.
Text
);
4089
Assert.Empty(control.
Text
);
4175
Assert.Empty(control.
Text
);
4180
Assert.Equal("text", control.
Text
);
4197
Assert.Empty(control.
Text
);
4205
Assert.Equal("text", control.
Text
);
5087
int width = TextRenderer.MeasureText(control.
Text
, control.Font).Width;
5107
int width = TextRenderer.MeasureText(control.
Text
, control.Font).Width;
5130
int width = TextRenderer.MeasureText(control.
Text
, control.Font, Size.Empty, TextFormatFlags.SingleLine).Width;
5945
Assert.Empty(control.
Text
);
5959
Assert.Equal("text", control.
Text
);
5974
Assert.Equal(expected, control.
Text
);
5994
Assert.Equal(expected, control.
Text
);
6009
Assert.Equal("12-9", control.
Text
);
6861
Assert.Empty(control.
Text
);
6877
Assert.Equal("abc", control.
Text
);
6896
Assert.Empty(control.
Text
);
6923
Assert.Equal("abc", control.
Text
);
TextBoxTests.cs (1)
755
return base.
Text
;
TestPassApp (1)
PrintingControls.cs (1)
28
e.Graphics.DrawString($"{txtPrint.
Text
} {_totalNumber}", font, brush, 50, currentY);
WinFormsControlsTest (6)
DragDrop.cs (2)
215
textBox.Text += textBox.
Text
.Length > 0
220
textBox.SelectionStart = textBox.
Text
.Length;
ListBoxes.cs (1)
22
listBox.Items.Add(textBox.
Text
);
PictureBoxes.cs (2)
20
if (string.IsNullOrWhiteSpace(imageUri.
Text
))
35
pictureBox1.LoadAsync(imageUri.
Text
);
RichTextBoxes.cs (1)
137
return prompt.ShowDialog() == DialogResult.OK ? textBox.
Text
: "";