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