Base:
property
Text
System.Windows.Forms.Control.Text
3 overrides of Text
System.Windows.Forms (3)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
1306
public override string
Text
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1145
public override string
Text
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
427
public override string
Text
36 writes to Text
System.Windows.Forms (6)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1160
base.
Text
= value;
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
432
base.
Text
= value;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (4)
617
Text
= string.Join(Environment.NewLine, value);
621
Text
= string.Empty;
1129
Text
= value.Length == 0 ? null : value;
1252
Text
= null;
System.Windows.Forms.Tests (30)
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (1)
96
textBoxBase.
Text
= "Some test text";
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (27)
203
textBoxBase.
Text
= "Some long long test text for testing GetFirstVisibleLine method";
237
textBoxBase.
Text
+= "1\r\n";
240
textBoxBase.
Text
+= "2\r\n";
243
textBoxBase.
Text
+= "3\r\n";
246
textBoxBase.
Text
+= "4\r\n";
263
textBoxBase.
Text
+= "1\r\n";
283
textBoxBase.
Text
= "Some test text for testing GetLineFromCharIndex method";
299
Text
= "Some test text for testing GetLineFromCharIndex method"
327
Text
= "Some test text for testing GetLineIndex method"
347
Text
= "Some test text for testing GetLineIndex method"
402
using SubTextBoxBase textBoxBase = new() { Size = size,
Text
= text, Multiline = multiline };
418
using SubTextBoxBase textBoxBase = new() { Size = size,
Text
= text, Multiline = multiline };
448
using SubTextBoxBase textBoxBase = new() { Size = size,
Text
= text, Multiline = multiline };
462
using SubTextBoxBase textBoxBase = new() { Size = size,
Text
= text, Multiline = multiline };
525
textBoxBase.
Text
= text;
541
textBoxBase.
Text
= text;
558
Text
= text
627
Text
= "Some test text for testing",
675
Text
= "Some test text for testing",
700
textBoxBase.
Text
= "Some test text for testing";
723
Text
= "Some test text for testing",
741
Text
= "Some test text for testing",
823
textBoxBase.
Text
= "Some test text for testing";
846
textBoxBase.
Text
= "Some test text for testing";
865
textBoxBase.
Text
= "Some test text for testing";
891
Text
= "Some long long test text for testing GetFirstVisibleLine method",
913
textBoxBase.
Text
= "Some long long test text for testing GetFirstVisibleLine method";
TextBoxBaseTests.cs (2)
7807
textBoxBase.
Text
= "Some test text for testing GetLineFromCharIndex method";
7827
textBoxBase.
Text
= "Some test text for testing GetPositionFromCharIndex method";
28 references to Text
System.Windows.Forms (18)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
1312
return base.
Text
;
1329
return base.
Text
;
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (2)
1151
return base.
Text
;
2328
textValue = base.
Text
;
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
429
get => base.
Text
;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (11)
22
[DefaultBindingProperty(nameof(
Text
))]
217
int boundaryStart = ClientUtils.GetWordBoundaryStart(
Text
, SelectionStart);
571
string text =
Text
;
850
Size textSize = TextRenderer.MeasureText(
Text
, Font, proposedConstraints, format);
966
return
Text
.Substring(selStart, selLength);
1084
=> IsHandleCreated ? PInvokeCore.GetWindowTextLength(this) :
Text
.Length;
1530
using var textVariant = PasswordProtect ? (VARIANT)string.Empty : (VARIANT)
Text
;
1540
string t =
Text
;
1559
string t =
Text
;
1587
if (index < 0 || index >=
Text
.Length)
1956
string txt =
Text
;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (2)
272
: Owner.
Text
279
: ((MaskedTextBox)Owner).PasswordChar, Owner.
Text
.Length)
System.Windows.Forms.Tests (10)
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (2)
64
Assert.Equal(text, textBoxBase.
Text
);
98
Assert.Equal(textBoxBase.
Text
, accessibleObject.Value);
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (8)
451
Point actualPoint = provider.GetPositionFromCharForUpperRightCorner(charIndex, textBoxBase.
Text
);
464
Point actualPoint = provider.GetPositionFromCharForUpperRightCorner(charIndex, textBoxBase.
Text
);
528
string expected = textBoxBase.
Text
;
563
Assert.Equal(textBoxBase.
Text
.Length, provider.TextLength);
636
Assert.True(providerVisibleStart < textBoxBase.
Text
.Length);
638
Assert.True(providerVisibleEnd <= textBoxBase.
Text
.Length);
685
Assert.True(providerVisibleStart < textBoxBase.
Text
.Length);
687
Assert.True(providerVisibleEnd <= textBoxBase.
Text
.Length);