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)
1200public override int TextLength
System.Windows.Forms.Tests (1)
TextBoxTests.cs (1)
746public override int TextLength => TextCount;
45 references to TextLength
System.Windows.Forms (8)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1206return 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)
121Assert.Equal(0, control.TextLength); 211Assert.Equal(expected.Length, control.TextLength); 219Assert.Equal(expected.Length, control.TextLength); 241Assert.Equal(expected.Length, control.TextLength); 250Assert.Equal(expected.Length, control.TextLength); 266Assert.Equal(4, control.TextLength); 275Assert.Equal(4, control.TextLength); 343Assert.Equal(expected.Length, control.TextLength); 351Assert.Equal(expected.Length, control.TextLength); 373Assert.Equal(expected.Length, control.TextLength); 382Assert.Equal(expected.Length, control.TextLength); 399Assert.Equal(4, control.TextLength); 408Assert.Equal(4, control.TextLength); 432Assert.Equal(expected.Length, control.TextLength); 443Assert.Equal(expected.Length, control.TextLength);
TextBoxBaseTests.cs (20)
3221Assert.Equal(expected.Length, control.TextLength); 3232Assert.Equal(expected.Length, control.TextLength); 3275Assert.Equal(expected.Length, control.TextLength); 3286Assert.Equal(expected.Length, control.TextLength); 3305Assert.Equal(expected.Length, control.TextLength); 3316Assert.Equal(expected.Length, control.TextLength); 3340Assert.Equal(expected.Length, control.TextLength); 3353Assert.Equal(expected.Length, control.TextLength); 3384Assert.Equal(expected.Length, control.TextLength); 3397Assert.Equal(expected.Length, control.TextLength); 3449Assert.Equal(expected.Length, control.TextLength); 3463Assert.Equal(expected.Length, control.TextLength); 3605Assert.Equal(0, control.TextLength); 3609Assert.Equal(0, control.TextLength); 3625Assert.Equal(0, control.TextLength); 3632Assert.Equal(0, control.TextLength); 3650Assert.Equal(expected, control.TextLength); 3671Assert.Equal(expected, control.TextLength); 3682Assert.Equal(0, control.TextLength); 3691Assert.Equal(0, control.TextLength);
WinFormsControlsTest (2)
ErrorProviderTest.cs (2)
16if (textBox1.TextLength is < 5 or > 10) 26if (textBox2.TextLength is < 5 or > 20)