3 overrides of TextLength
System.Windows.Forms (2)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
1381public override unsafe int TextLength
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1196public override int TextLength
System.Windows.Forms.Tests (1)
TextBoxTests.cs (1)
748public override int TextLength => TextCount;
45 references to TextLength
System.Windows.Forms (8)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1202return base.TextLength;
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
981TextLength == 0;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (5)
1310return IsHandleCreated ? TextLength + 1 : TextLength; 1695int textLen = TextLength; 1756int textLength = TextLength; 1804textLength = TextLength;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
347get { return TextBox.TextLength; }
System.Windows.Forms.Tests (35)
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (15)
123Assert.Equal(0, control.TextLength); 213Assert.Equal(expected.Length, control.TextLength); 221Assert.Equal(expected.Length, control.TextLength); 243Assert.Equal(expected.Length, control.TextLength); 252Assert.Equal(expected.Length, control.TextLength); 268Assert.Equal(4, control.TextLength); 277Assert.Equal(4, control.TextLength); 345Assert.Equal(expected.Length, control.TextLength); 353Assert.Equal(expected.Length, control.TextLength); 375Assert.Equal(expected.Length, control.TextLength); 384Assert.Equal(expected.Length, control.TextLength); 401Assert.Equal(4, control.TextLength); 410Assert.Equal(4, control.TextLength); 434Assert.Equal(expected.Length, control.TextLength); 445Assert.Equal(expected.Length, control.TextLength);
TextBoxBaseTests.cs (20)
3223Assert.Equal(expected.Length, control.TextLength); 3234Assert.Equal(expected.Length, control.TextLength); 3277Assert.Equal(expected.Length, control.TextLength); 3288Assert.Equal(expected.Length, control.TextLength); 3307Assert.Equal(expected.Length, control.TextLength); 3318Assert.Equal(expected.Length, control.TextLength); 3342Assert.Equal(expected.Length, control.TextLength); 3355Assert.Equal(expected.Length, control.TextLength); 3386Assert.Equal(expected.Length, control.TextLength); 3399Assert.Equal(expected.Length, control.TextLength); 3451Assert.Equal(expected.Length, control.TextLength); 3465Assert.Equal(expected.Length, control.TextLength); 3607Assert.Equal(0, control.TextLength); 3611Assert.Equal(0, control.TextLength); 3627Assert.Equal(0, control.TextLength); 3634Assert.Equal(0, control.TextLength); 3652Assert.Equal(expected, control.TextLength); 3673Assert.Equal(expected, control.TextLength); 3684Assert.Equal(0, control.TextLength); 3693Assert.Equal(0, control.TextLength);
WinFormsControlsTest (2)
ErrorProviderTest.cs (2)
16if (textBox1.TextLength is < 5 or > 10) 26if (textBox2.TextLength is < 5 or > 20)