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