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;
1137
Text
= value.Length == 0 ? null : value;
1260
Text
= null;
System.Windows.Forms.Tests (30)
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (1)
94
textBoxBase.
Text
= "Some test text";
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (27)
201
textBoxBase.
Text
= "Some long long test text for testing GetFirstVisibleLine method";
235
textBoxBase.
Text
+= "1\r\n";
238
textBoxBase.
Text
+= "2\r\n";
241
textBoxBase.
Text
+= "3\r\n";
244
textBoxBase.
Text
+= "4\r\n";
261
textBoxBase.
Text
+= "1\r\n";
281
textBoxBase.
Text
= "Some test text for testing GetLineFromCharIndex method";
297
Text
= "Some test text for testing GetLineFromCharIndex method"
325
Text
= "Some test text for testing GetLineIndex method"
345
Text
= "Some test text for testing GetLineIndex method"
400
using SubTextBoxBase textBoxBase = new() { Size = size,
Text
= text, Multiline = multiline };
416
using SubTextBoxBase textBoxBase = new() { Size = size,
Text
= text, Multiline = multiline };
446
using SubTextBoxBase textBoxBase = new() { Size = size,
Text
= text, Multiline = multiline };
460
using SubTextBoxBase textBoxBase = new() { Size = size,
Text
= text, Multiline = multiline };
523
textBoxBase.
Text
= text;
539
textBoxBase.
Text
= text;
556
Text
= text
625
Text
= "Some test text for testing",
673
Text
= "Some test text for testing",
698
textBoxBase.
Text
= "Some test text for testing";
721
Text
= "Some test text for testing",
739
Text
= "Some test text for testing",
821
textBoxBase.
Text
= "Some test text for testing";
844
textBoxBase.
Text
= "Some test text for testing";
863
textBoxBase.
Text
= "Some test text for testing";
889
Text
= "Some long long test text for testing GetFirstVisibleLine method",
911
textBoxBase.
Text
= "Some long long test text for testing GetFirstVisibleLine method";
TextBoxBaseTests.cs (2)
7805
textBoxBase.
Text
= "Some test text for testing GetLineFromCharIndex method";
7825
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
;
2339
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);
1092
=> IsHandleCreated ? PInvokeCore.GetWindowTextLength(this) :
Text
.Length;
1538
using var textVariant = PasswordProtect ? (VARIANT)string.Empty : (VARIANT)
Text
;
1548
string t =
Text
;
1567
string t =
Text
;
1595
if (index < 0 || index >=
Text
.Length)
1962
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)
62
Assert.Equal(text, textBoxBase.
Text
);
96
Assert.Equal(textBoxBase.
Text
, accessibleObject.Value);
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (8)
449
Point actualPoint = provider.GetPositionFromCharForUpperRightCorner(charIndex, textBoxBase.
Text
);
462
Point actualPoint = provider.GetPositionFromCharForUpperRightCorner(charIndex, textBoxBase.
Text
);
526
string expected = textBoxBase.
Text
;
561
Assert.Equal(textBoxBase.
Text
.Length, provider.TextLength);
634
Assert.True(providerVisibleStart < textBoxBase.
Text
.Length);
636
Assert.True(providerVisibleEnd <= textBoxBase.
Text
.Length);
683
Assert.True(providerVisibleStart < textBoxBase.
Text
.Length);
685
Assert.True(providerVisibleEnd <= textBoxBase.
Text
.Length);