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