Base:
property
Text
System.Windows.Forms.Control.Text
3 overrides of Text
System.Windows.Forms (3)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
1306public override string Text
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1145public override string Text
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
427public override string Text
36 writes to Text
System.Windows.Forms (6)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1160base.Text = value;
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
432base.Text = value;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (4)
617Text = string.Join(Environment.NewLine, value); 621Text = string.Empty; 1129Text = value.Length == 0 ? null : value; 1252Text = null;
System.Windows.Forms.Tests (30)
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (1)
94textBoxBase.Text = "Some test text";
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (27)
201textBoxBase.Text = "Some long long test text for testing GetFirstVisibleLine method"; 235textBoxBase.Text += "1\r\n"; 238textBoxBase.Text += "2\r\n"; 241textBoxBase.Text += "3\r\n"; 244textBoxBase.Text += "4\r\n"; 261textBoxBase.Text += "1\r\n"; 281textBoxBase.Text = "Some test text for testing GetLineFromCharIndex method"; 297Text = "Some test text for testing GetLineFromCharIndex method" 325Text = "Some test text for testing GetLineIndex method" 345Text = "Some test text for testing GetLineIndex method" 400using SubTextBoxBase textBoxBase = new() { Size = size, Text = text, Multiline = multiline }; 416using SubTextBoxBase textBoxBase = new() { Size = size, Text = text, Multiline = multiline }; 446using SubTextBoxBase textBoxBase = new() { Size = size, Text = text, Multiline = multiline }; 460using SubTextBoxBase textBoxBase = new() { Size = size, Text = text, Multiline = multiline }; 523textBoxBase.Text = text; 539textBoxBase.Text = text; 556Text = text 625Text = "Some test text for testing", 673Text = "Some test text for testing", 698textBoxBase.Text = "Some test text for testing"; 721Text = "Some test text for testing", 739Text = "Some test text for testing", 821textBoxBase.Text = "Some test text for testing"; 844textBoxBase.Text = "Some test text for testing"; 863textBoxBase.Text = "Some test text for testing"; 889Text = "Some long long test text for testing GetFirstVisibleLine method", 911textBoxBase.Text = "Some long long test text for testing GetFirstVisibleLine method";
TextBoxBaseTests.cs (2)
7805textBoxBase.Text = "Some test text for testing GetLineFromCharIndex method"; 7825textBoxBase.Text = "Some test text for testing GetPositionFromCharIndex method";
28 references to Text
System.Windows.Forms (18)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
1312return base.Text; 1329return base.Text;
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (2)
1151return base.Text; 2328textValue = base.Text;
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
429get => base.Text;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (11)
22[DefaultBindingProperty(nameof(Text))] 217int boundaryStart = ClientUtils.GetWordBoundaryStart(Text, SelectionStart); 571string text = Text; 850Size textSize = TextRenderer.MeasureText(Text, Font, proposedConstraints, format); 966return Text.Substring(selStart, selLength); 1084=> IsHandleCreated ? PInvokeCore.GetWindowTextLength(this) : Text.Length; 1530using var textVariant = PasswordProtect ? (VARIANT)string.Empty : (VARIANT)Text; 1540string t = Text; 1559string t = Text; 1587if (index < 0 || index >= Text.Length) 1954string 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)
62Assert.Equal(text, textBoxBase.Text); 96Assert.Equal(textBoxBase.Text, accessibleObject.Value);
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (8)
449Point actualPoint = provider.GetPositionFromCharForUpperRightCorner(charIndex, textBoxBase.Text); 462Point actualPoint = provider.GetPositionFromCharForUpperRightCorner(charIndex, textBoxBase.Text); 526string expected = textBoxBase.Text; 561Assert.Equal(textBoxBase.Text.Length, provider.TextLength); 634Assert.True(providerVisibleStart < textBoxBase.Text.Length); 636Assert.True(providerVisibleEnd <= textBoxBase.Text.Length); 683Assert.True(providerVisibleStart < textBoxBase.Text.Length); 685Assert.True(providerVisibleEnd <= textBoxBase.Text.Length);