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)
748
public override string
Text
192 writes to Text
Accessibility_Core_App (2)
DataBindingExample.Designer.cs (1)
94
this.textBox1.
Text
= "TextBox";
PrintingControls.Designer.cs (1)
87
this.txtPrint.
Text
= "This is the test message.";
DesignSurface (4)
MainForm.cs (1)
192
t1.
Text
= "I'm a TextBox";
MainForm.MyUserControl.cs (3)
27
Text
= "UserControl TextBox 1",
34
Text
= "UserControl TextBox 2",
41
Text
= "UserControl TextBox 3",
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
86
TextBox.
Text
= defaultResponse
PresentationUI (6)
MS\Internal\Documents\RMPublishingDialog.cs (4)
60
textBoxPermissionsContact.
Text
= user.Name;
78
textBoxPermissionsContact.
Text
= address;
700
textBoxUserName.
Text
=
918
textBoxUnrestrictedText.
Text
= SR.RMPublishingUnrestrictedText;
MS\Internal\Documents\SigningDialog.cs (2)
189
_locationTextBox.
Text
= na;
198
_locationTextBox.
Text
= String.IsNullOrEmpty(_digitalSignatureRequest.Location) ?
System.Windows.Forms (9)
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)
52
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)
312
_details.
Text
= detailsText;
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.BackgroundThread.cs (1)
90
_dialog!._cancellingTextBox.
Text
= string.Format(
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (1)
94
_cancellingTextBox.
Text
= SR.PrintControllerWithStatusDialog_Canceling;
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)
146
_nameTextBox.
Text
= _headerTextBox.
Text
= AssignName();
194
_headerTextBox.
Text
= _nameTextBox.
Text
= AssignName();
498
_headerTextBox.
Text
= _nameTextBox.
Text
= ((ListBoxItem)_dataColumns.SelectedItem).PropertyName;
509
_nameTextBox.
Text
= _headerTextBox.
Text
= AssignName();
595
_headerTextBox.
Text
= _nameTextBox.
Text
= AssignName();
601
_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.Tests (135)
System\Windows\Forms\AccessibleObjects\TextBoxAccessibleObjectTests.cs (1)
98
textBox.
Text
= "some text";
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (19)
338
Text
= value
347
control.
Text
= value;
368
Text
= value
378
control.
Text
= value;
395
Assert.Throws<InvalidOperationException>(() => control.
Text
= "text");
404
control.
Text
= "text";
428
control.
Text
= value;
439
control.
Text
= value;
464
control.
Text
= "text";
469
control.
Text
= "text";
474
control.
Text
= null;
480
control.
Text
= "text";
507
control.
Text
= "text";
516
control.
Text
= "text";
525
control.
Text
= null;
535
control.
Text
= "text";
1092
Text
= "text"
1456
Text
= "text"
1489
Text
= "text"
TextBoxBaseTests.ClipboardTests.cs (15)
17
Text
= "abc",
24
control.
Text
= "text";
40
Text
= "abc",
48
control.
Text
= "text";
63
Text
= "abc",
82
control.
Text
= "text";
100
Text
= "abc",
108
control.
Text
= "text";
123
Text
= "abc",
142
control.
Text
= "text";
171
Text
= "abc",
185
Text
= "abc",
191
control.
Text
= "text";
209
control.
Text
= "text";
234
control.
Text
= "text";
TextBoxBaseTests.cs (99)
892
Text
= "text",
936
Text
= "text"
1000
Text
= "text"
1086
Text
= "text"
1620
control.
Text
= text;
1706
Text
= "Text",
1759
control.
Text
= "Text";
2589
Text
= text,
2641
Text
= text,
2662
Text
= text,
2684
Text
= text,
2706
Text
= text,
2811
Text
= text,
2839
Text
= text,
2866
Text
= text
2906
Text
= "Text",
2987
Text
= text,
3015
Text
= text,
3043
Text
= text
3083
Text
= "Text",
3218
Text
= value
3230
control.
Text
= value;
3268
Text
= oldValue,
3273
control.
Text
= value;
3284
control.
Text
= value;
3302
Text
= value
3314
control.
Text
= value;
3338
control.
Text
= value;
3351
control.
Text
= value;
3382
control.
Text
= value;
3395
control.
Text
= value;
3435
Text
= oldValue,
3447
control.
Text
= value;
3461
control.
Text
= value;
3489
control.
Text
= "text";
3494
control.
Text
= "text";
3499
control.
Text
= null;
3505
control.
Text
= "text";
3532
control.
Text
= "text";
3541
control.
Text
= "text";
3550
control.
Text
= null;
3560
control.
Text
= "text";
3574
control.
Text
= value;
3579
control.
Text
= value;
3591
control.
Text
= value;
3596
control.
Text
= value;
3648
Text
= text
3670
control.
Text
= text;
3879
Text
= "abc"
3897
Text
= "abc",
3917
Text
= "abc",
3938
Text
= "abc",
3986
Text
= "abc"
4025
Text
= "Text"
4069
Text
= "Text"
4149
Text
= "Text",
4176
control.
Text
= "text";
4201
control.
Text
= "text";
4226
Text
= "text",
4265
Text
= "Text"
4286
Text
= "Text"
4317
Text
= "Text"
4340
Text
= "Text"
4378
Text
= "Text"
4400
Text
= "Text"
4431
Text
= "Text"
4455
Text
= "Text"
4496
Text
= text,
4627
Text
= "text"
4657
Text
= "text"
4737
Text
= "text"
4776
Text
= "text"
4853
Text
= "text"
4869
Text
= "text"
4906
Text
= "text"
4933
Text
= "text"
4965
Text
= "text",
5082
Text
= "Text",
5101
Text
= "a\rn\nb",
5125
Text
= "a\rn\nb",
5463
Text
= "Text",
5951
Text
= "text",
5966
Text
= text,
5981
Text
= text,
6000
Text
= "123-5-7-9",
6095
Text
= text
6121
Text
= text
6152
Text
= "Text"
6177
Text
= "Text"
6229
Text
= text
6251
Text
= text
6292
Text
= "Text"
6340
Text
= "text"
6393
Text
= "text"
6428
Text
= "Text"
6839
Text
= "Text"
6849
Text
= new string('a', 41)
6870
Text
= "abc",
6908
Text
= "abc",
TextBoxTests.cs (1)
755
set => base.
Text
= value;
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
416
textBox.
Text
= "New TextBox Text";
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
159 references to Text
Accessibility_Core_App (1)
PrintingControls.cs (1)
28
e.Graphics.DrawString($"{txtPrint.
Text
} {_totalNumber}", font, brush, 50, currentY);
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
119
Output = TextBox.
Text
PresentationUI (8)
MS\Internal\Documents\RequestedSignatureDialog.cs (3)
59
sigResources._subjectName = _requestedSignerNameTextBox.
Text
;
61
sigResources._location = _requestedLocationTextBox.
Text
;
88
string requestSignerName = _requestedSignerNameTextBox.
Text
.Trim();
MS\Internal\Documents\RMPublishingDialog.cs (4)
265
rmLicense.ReferralInfoName = textBoxPermissionsContact.
Text
;
461
textBoxPermissionsContact.
Text
.Trim();
477
textBoxPermissionsContact.
Text
),
652
string userNames = textBoxUserName.
Text
;
MS\Internal\Documents\SigningDialog.cs (1)
289
return _locationTextBox.
Text
;
System.Windows.Forms (13)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (9)
134
if ((RightToLeft == RightToLeft.No && !(SelectionLength == 0 && SelectionStart ==
Text
.Length)) ||
147
(RightToLeft == RightToLeft.Yes && !(SelectionLength == 0 && SelectionStart ==
Text
.Length)))
158
if (
Text
.IndexOf("\r\n", end, StringComparison.Ordinal) != -1)
168
if (!(
Text
.IndexOf("\r\n", StringComparison.Ordinal) < 0
169
|| SelectionStart + SelectionLength <
Text
.IndexOf("\r\n", StringComparison.Ordinal)))
178
if (SelectionLength !=
Text
.Length)
196
SelectionStart <
Text
.Length)
217
return
Text
;
230
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\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (1)
107
using var textVariant = (VARIANT)_cancellingTextBox.
Text
;
System.Windows.Forms.Design (15)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (6)
96
column.HeaderText = _headerTextBox.
Text
;
97
column.Name = _nameTextBox.
Text
;
109
column.HeaderText = _headerTextBox.
Text
;
110
column.Name = _nameTextBox.
Text
;
643
if (!ValidName(_nameTextBox.
Text
,
782
if (ValidName(_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 (4)
System\ComponentModel\Design\ByteViewerTests.cs (4)
805
Assert.Equal(expected, textBox.
Text
);
812
Assert.Equal("123", textBox.
Text
);
835
Assert.Equal(expected, textBox.
Text
);
842
Assert.Equal("123", textBox.
Text
);
System.Windows.Forms.Tests (111)
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (24)
119
Assert.Empty(control.
Text
);
210
Assert.Equal(expected, control.
Text
);
218
Assert.Equal(expected, control.
Text
);
240
Assert.Equal(expected, control.
Text
);
249
Assert.Equal(expected, control.
Text
);
265
Assert.Equal("text", control.
Text
);
274
Assert.Equal("text", control.
Text
);
342
Assert.Equal(expected, control.
Text
);
350
Assert.Equal(expected, control.
Text
);
372
Assert.Equal(expected, control.
Text
);
381
Assert.Equal(expected, control.
Text
);
398
Assert.Equal("text", control.
Text
);
407
Assert.Equal("text", control.
Text
);
431
Assert.Equal(expected, control.
Text
);
442
Assert.Equal(expected, control.
Text
);
465
Assert.Equal("text", control.
Text
);
470
Assert.Equal("text", control.
Text
);
475
Assert.Empty(control.
Text
);
481
Assert.Equal("text", control.
Text
);
508
Assert.Equal("text", control.
Text
);
517
Assert.Equal("text", control.
Text
);
526
Assert.Empty(control.
Text
);
536
Assert.Equal("text", control.
Text
);
990
Assert.NotSame(control.
Text
, instance);
TextBoxBaseTests.ClipboardTests.cs (18)
28
control.
Text
.Should().Be("bcxt");
32
control.
Text
.Should().Be("bcxt");
45
control.
Text
.Should().Be("abc");
52
control.
Text
.Should().Be("bcxt");
76
control.
Text
.Should().Be("abc");
86
control.
Text
.Should().Be("bcxt");
105
control.
Text
.Should().Be("a");
112
control.
Text
.Should().Be("bcxt");
136
control.
Text
.Should().Be("a");
146
control.
Text
.Should().Be("bcxt");
161
control.
Text
.Should().BeEmpty();
176
control.
Text
.Should().Be("a");
195
control.
Text
.Should().Be("bcxt");
198
control.
Text
.Should().Be("text");
206
control.
Text
.Should().BeEmpty();
211
control.
Text
.Should().Be("text");
228
control.
Text
.Should().BeEmpty();
236
control.
Text
.Should().Be("text");
TextBoxBaseTests.cs (68)
1643
Assert.Equal(expectedText, control.
Text
);
1649
Assert.Equal(expectedText, control.
Text
);
1710
Assert.Equal("Text", control.
Text
);
1762
Assert.Equal("Text", control.
Text
);
2595
Assert.Equal(expected, control.
Text
);
2649
Assert.Equal(expected, control.
Text
);
2671
Assert.Equal(expected, control.
Text
);
2693
Assert.Equal(expected, control.
Text
);
2722
Assert.Equal(expected, control.
Text
);
3182
Assert.Empty(control.
Text
);
3189
Assert.Empty(control.
Text
);
3200
Assert.Empty(control.
Text
);
3209
Assert.Empty(control.
Text
);
3220
Assert.Equal(expected, control.
Text
);
3231
Assert.Equal(expected, control.
Text
);
3274
Assert.Equal(expected, control.
Text
);
3285
Assert.Equal(expected, control.
Text
);
3304
Assert.Equal(expected, control.
Text
);
3315
Assert.Equal(expected, control.
Text
);
3339
Assert.Equal(expected, control.
Text
);
3352
Assert.Equal(expected, control.
Text
);
3383
Assert.Equal(expected, control.
Text
);
3396
Assert.Equal(expected, control.
Text
);
3448
Assert.Equal(expected, control.
Text
);
3462
Assert.Equal(expected, control.
Text
);
3490
Assert.Equal("text", control.
Text
);
3495
Assert.Equal("text", control.
Text
);
3500
Assert.Empty(control.
Text
);
3506
Assert.Equal("text", control.
Text
);
3533
Assert.Equal("text", control.
Text
);
3542
Assert.Equal("text", control.
Text
);
3551
Assert.Empty(control.
Text
);
3561
Assert.Equal("text", control.
Text
);
3575
Assert.Equal(expected, control.
Text
);
3580
Assert.Equal(expected, control.
Text
);
3592
Assert.Equal(expected, control.
Text
);
3597
Assert.Equal(expected, control.
Text
);
3864
Assert.Equal(expected, control.
Text
);
3882
Assert.Equal("abc" + text, control.
Text
);
3902
Assert.Equal("abc" + text, control.
Text
);
3923
Assert.Equal("abc" + text, control.
Text
);
3945
Assert.Equal("abc" + text, control.
Text
);
3968
Assert.Equal(expected, control.
Text
);
3997
Assert.Equal("abc" + text, control.
Text
);
4012
Assert.Empty(control.
Text
);
4016
Assert.Empty(control.
Text
);
4029
Assert.Empty(control.
Text
);
4033
Assert.Empty(control.
Text
);
4050
Assert.Empty(control.
Text
);
4057
Assert.Empty(control.
Text
);
4080
Assert.Empty(control.
Text
);
4087
Assert.Empty(control.
Text
);
4173
Assert.Empty(control.
Text
);
4178
Assert.Equal("text", control.
Text
);
4195
Assert.Empty(control.
Text
);
4203
Assert.Equal("text", control.
Text
);
5085
int width = TextRenderer.MeasureText(control.
Text
, control.Font).Width;
5105
int width = TextRenderer.MeasureText(control.
Text
, control.Font).Width;
5128
int width = TextRenderer.MeasureText(control.
Text
, control.Font, Size.Empty, TextFormatFlags.SingleLine).Width;
5943
Assert.Empty(control.
Text
);
5957
Assert.Equal("text", control.
Text
);
5972
Assert.Equal(expected, control.
Text
);
5992
Assert.Equal(expected, control.
Text
);
6007
Assert.Equal("12-9", control.
Text
);
6859
Assert.Empty(control.
Text
);
6875
Assert.Equal("abc", control.
Text
);
6894
Assert.Empty(control.
Text
);
6921
Assert.Equal("abc", control.
Text
);
TextBoxTests.cs (1)
753
return base.
Text
;
WinFormsControlsTest (6)
DragDrop.cs (2)
215
textBox.Text += textBox.
Text
.Length > 0
220
textBox.SelectionStart = textBox.
Text
.Length;
ListBoxes.cs (1)
21
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
: "";