Base:
property
Text
System.Windows.Forms.TextBoxBase.Text
1 override of Text
System.Windows.Forms.Design (1)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
324public override string Text
115 writes to Text
Accessibility_Core_App (2)
CommonControl2.Designer.cs (1)
138this.richTextBox1.Text = "winforms\nclickonce\ncontrols\nteam\nwinforms1\nwinforms2\nwinforms3";
DataBindingExample.Designer.cs (1)
167this.richTextBox1.Text = "RichTestBox";
DesignSurface (1)
MainForm.cs (1)
329richTextBox.Text = "I'm a RichTextBox";
System.Windows.Forms (1)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2480Text = text;
System.Windows.Forms.Design (1)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
349set => base.Text = value;
System.Windows.Forms.Tests (104)
System\Windows\Forms\RichTextBoxTests.cs (104)
1354Text = "text", 1398Text = "text" 1462Text = "text" 1548Text = "text" 1972Text = "Text", 2025control.Text = "Text"; 2629Text = "Text" 2648Text = "Text" 2697control.Text = "text"; 2797control.Text = null; 3202Text = "Text", 3220Text = "Text", 3457Text = "Text", 3475Text = "Text", 3580Text = "Hello World", 3598Text = "Hello World" 5446Text = text, 5474Text = text, 5501Text = text 5541Text = "Text", 6035Text = text, 6063Text = text, 6091Text = text 6131Text = "Text", 6473Text = "text", 6518Text = "text", 6705Text = text 6727control.Text = text; 6897control.Text = text; 6905riched20.Text = text; 6943control.Text = text; 6957riched20.Text = text; 6981control.Text = text; 7035control.Text = value; 7043control.Text = value; 7058Text = value 7072control.Text = value; 7121control.Text = value; 7130control.Text = value; 7171Text = oldValue, 7176control.Text = value; 7187control.Text = value; 7207Text = value 7219control.Text = value; 7248control.Text = value; 7262control.Text = value; 7292control.Text = value; 7308control.Text = value; 7356control.Text = value; 7368control.Text = value; 7403control.Text = value; 7416control.Text = value; 7456Text = oldValue, 7468control.Text = value; 7482control.Text = value; 7510control.Text = "text"; 7515control.Text = "text"; 7520control.Text = null; 7526control.Text = "text"; 7553control.Text = "text"; 7562control.Text = "text"; 7571control.Text = null; 7581control.Text = "text"; 7595control.Text = value; 7600control.Text = value; 7612control.Text = value; 7617control.Text = value; 7959Text = text 8010Text = text 8068Text = text 8132Text = text 8144Text = text 8167Text = text 8190Text = text 8213Text = text 8262Text = text 8304Text = text 8352Text = text 8364Text = text 8387Text = text 8410Text = text 8447Text = "t" 8479Text = "t" 8510Text = "t" 8531Text = "t" 8542Text = "t" 8834Text = "text" 8872Text = "text" 9346Text = "Hello World" 9381Text = "Hello World" 9415Text = "Hello World" 9450Text = "Hello World" 9485Text = "Hello World" 9521Text = "Hello World" 9557Text = "Hello World" 9592Text = "Hello World" 9616Text = "Hello World" 9652Text = "Hello World" 9686Text = "Text" 9713Text = "Text" 10120Text = "text" 10286Text = "text" 10614Text = richTextBoxContent, 10636richTextBox1.Text = "Hello, World!";
WinFormsControlsTest (6)
DragDrop.Designer.cs (1)
103richTextBox.Text = "";
MultipleControls.Designer.cs (1)
114this.richTextBox1.Text = "LLLL";
RichTextBoxes.Designer.cs (2)
45this.richTextBox1.Text = ""; 56this.richTextBox2.Text = "";
TextBoxes.Designer.cs (2)
112this.richTextBox.Text = @"Some long 134this.RTLRichTextBox.Text = @"Some long
114 references to Text
System.Windows.Forms (3)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (3)
2221string t = Text; 2268if (index < 0 || index > Text.Length) 2411Text);
System.Windows.Forms.Tests (86)
System\Windows\Forms\RichTextBoxTests.ClipboardTests.cs (3)
25control.Text.Should().BeEmpty(); 46richTextBox1.Text.Should().Be(value); 59richTextBox1.Text.Should().BeEmpty();
System\Windows\Forms\RichTextBoxTests.cs (83)
127Assert.Empty(control.Text); 1976Assert.Equal("Text", control.Text); 2028Assert.Equal("Text", control.Text); 2713Assert.Equal("Hello World", control.Text); 2719Assert.Empty(control.Text); 2736Assert.Equal(plainText, control.Text); 2757Assert.Equal("Hello World", control.Text); 2766Assert.Empty(control.Text); 2788Assert.Equal("text", control.Text); 2793Assert.Equal("text", control.Text); 2798Assert.Empty(control.Text); 2804Assert.Equal("text", control.Text); 2831Assert.Equal("text", control.Text); 2840Assert.Equal("text", control.Text); 2849Assert.Empty(control.Text); 2859Assert.Equal("text", control.Text); 2874Assert.Empty(control.Text); 3381Assert.Empty(control.Text); 6898Assert.Equal(expectedText, control.Text); 6906Assert.Equal(oldControlExpectedText, riched20.Text); 6937Assert.Empty(control.Text); 6945Assert.Equal(expected, control.Text); 6954Assert.Empty(riched20.Text); 6959Assert.Equal(expected, riched20.Text); 6979Assert.Empty(control.Text); 6991Assert.Empty(control.Text); 7002Assert.Equal("Hello World", control.Text); 7011Assert.Empty(control.Text); 7036Assert.Equal(expected, control.Text); 7044Assert.Equal(expected, control.Text); 7060Assert.Equal(expected, control.Text); 7073Assert.Equal(expected, control.Text); 7122Assert.Equal(expected, control.Text); 7131Assert.Equal(expected, control.Text); 7177Assert.Equal(expected, control.Text); 7188Assert.Equal(expected, control.Text); 7209Assert.Equal(expected, control.Text); 7220Assert.Equal(expected, control.Text); 7249Assert.Equal(expected, control.Text); 7263Assert.Equal(expected, control.Text); 7293Assert.Equal(expected, control.Text); 7309Assert.Equal(expected, control.Text); 7357Assert.Equal(expected, control.Text); 7369Assert.Equal(expected, control.Text); 7404Assert.Equal(expected, control.Text); 7417Assert.Equal(expected, control.Text); 7469Assert.Equal(expected, control.Text); 7483Assert.Equal(expected, control.Text); 7511Assert.Equal("text", control.Text); 7516Assert.Equal("text", control.Text); 7521Assert.Empty(control.Text); 7527Assert.Equal("text", control.Text); 7554Assert.Equal("text", control.Text); 7563Assert.Equal("text", control.Text); 7572Assert.Empty(control.Text); 7582Assert.Equal("text", control.Text); 7596Assert.Equal(expected, control.Text); 7601Assert.Equal(expected, control.Text); 7613Assert.Empty(control.Text); 7618Assert.Empty(control.Text); 8556Assert.Empty(control.Text); 8570Assert.Equal("Hello World", control.Text); 8588Assert.Empty(control.Text); 8612Assert.Equal("Hello World", control.Text); 8632Assert.Equal("Hello World", control.Text); 8643Assert.Empty(control.Text); 8657Assert.Equal("Hello World", control.Text); 8675Assert.Empty(control.Text); 8699Assert.Equal("Hello World", control.Text); 8719Assert.Equal("Hello World", control.Text); 8734Assert.Equal("Hello World", control.Text); 8751Assert.Equal("Hello World", control.Text); 8790Assert.Empty(control.Text); 9761Assert.Equal(input, control.Text[0]); 10139Assert.Equal("text", control.Text); 10313Assert.Equal("text", control.Text); 10584Assert.Equal(riched20.Text, richTextBox.Text); 10585Assert.Equal(richTextBox.Text.Length, richTextBox.TextLength); 10587int startOfIs = riched20.Text.IndexOf("is", StringComparison.Ordinal); 10588int endOfHidden = riched20.Text.IndexOf("hidden", StringComparison.Ordinal) + "hidden".Length; 10686int startOfSample = richTextBox2.Text.IndexOf("Sample", StringComparison.Ordinal); 10687int endOfText = richTextBox2.Text.IndexOf("text", StringComparison.Ordinal) + "text".Length;
System.Windows.Forms.UI.IntegrationTests (21)
DragDropTests.cs (11)
160dragAcceptRtfTextContent = richTextBox.Text; 222TestOutputHelper.WriteLine($"RichTextBoxDropTarget.Text: {dragDropForm.RichTextBoxDropTarget.Text}"); 223Assert.False(string.IsNullOrWhiteSpace(dragDropForm.RichTextBoxDropTarget.Text), 224$"Actual form.RichTextBoxDropTarget.Text: {dragDropForm.RichTextBoxDropTarget.Text}"); 227Assert.Equal(dragAcceptRtfTextContent, dragDropForm.RichTextBoxDropTarget?.Text); 426string dragAcceptRtfTextContent = richTextBox.Text; 441Assert.False(string.IsNullOrWhiteSpace(form.RichTextBoxDropTarget.Text)); 443Assert.Equal(dragAcceptRtfTextContent, form.RichTextBoxDropTarget?.Text); 456string dragAcceptRtfTextContent = richTextBox.Text; 484Assert.False(string.IsNullOrWhiteSpace(form.RichTextBoxDropTarget.Text)); 486Assert.Equal(dragAcceptRtfTextContent, form.RichTextBoxDropTarget?.Text);
RichTextBoxTests.cs (10)
38Point pt = richTextBox.PointToScreen(richTextBox.GetPositionFromCharIndex(richTextBox.Text.IndexOf("Click link #2", StringComparison.Ordinal))); 55Assert.True(result!.LinkStart + result.LinkLength <= richTextBox.Text.Length); 56Assert.Equal(result.LinkText, richTextBox.Text.Substring(result.LinkStart, result.LinkLength)); 98Point pt = richTextBox.PointToScreen(richTextBox.GetPositionFromCharIndex(richTextBox.Text.IndexOf("#link2#custom link", StringComparison.Ordinal))); 115Assert.True(result!.LinkStart + result.LinkLength <= richTextBox.Text.Length); 116Assert.Equal(result.LinkText, richTextBox.Text.Substring(result.LinkStart, result.LinkLength)); 159richTextBox.Text.IndexOf("custom link#link2#", StringComparison.Ordinal))); 176Assert.True(result!.LinkStart + result.LinkLength <= richTextBox.Text.Length); 177Assert.Equal(result.LinkText, richTextBox.Text.Substring(result.LinkStart, result.LinkLength)); 198control.Select(control.Text.IndexOf(text, StringComparison.Ordinal), text.Length);
WinFormsControlsTest (4)
RichTextBoxes.cs (4)
41control.Select(control.Text.IndexOf(text, StringComparison.Ordinal), text.Length); 62string prefix = control.Text.Remove(e.LinkStart); 63string content = control.Text.Substring(e.LinkStart, e.LinkLength); 64string suffix = control.Text[(e.LinkStart + e.LinkLength)..];