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