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)
1200
public override int
TextLength
System.Windows.Forms.Tests (1)
TextBoxTests.cs (1)
746
public override int
TextLength
=> TextCount;
45 references to TextLength
System.Windows.Forms (8)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1206
return base.
TextLength
;
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
981
TextLength
== 0;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (5)
1318
return IsHandleCreated ?
TextLength
+ 1 :
TextLength
;
1703
int textLen =
TextLength
;
1762
int textLength =
TextLength
;
1810
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)
121
Assert.Equal(0, control.
TextLength
);
211
Assert.Equal(expected.Length, control.
TextLength
);
219
Assert.Equal(expected.Length, control.
TextLength
);
241
Assert.Equal(expected.Length, control.
TextLength
);
250
Assert.Equal(expected.Length, control.
TextLength
);
266
Assert.Equal(4, control.
TextLength
);
275
Assert.Equal(4, control.
TextLength
);
343
Assert.Equal(expected.Length, control.
TextLength
);
351
Assert.Equal(expected.Length, control.
TextLength
);
373
Assert.Equal(expected.Length, control.
TextLength
);
382
Assert.Equal(expected.Length, control.
TextLength
);
399
Assert.Equal(4, control.
TextLength
);
408
Assert.Equal(4, control.
TextLength
);
432
Assert.Equal(expected.Length, control.
TextLength
);
443
Assert.Equal(expected.Length, control.
TextLength
);
TextBoxBaseTests.cs (20)
3221
Assert.Equal(expected.Length, control.
TextLength
);
3232
Assert.Equal(expected.Length, control.
TextLength
);
3275
Assert.Equal(expected.Length, control.
TextLength
);
3286
Assert.Equal(expected.Length, control.
TextLength
);
3305
Assert.Equal(expected.Length, control.
TextLength
);
3316
Assert.Equal(expected.Length, control.
TextLength
);
3340
Assert.Equal(expected.Length, control.
TextLength
);
3353
Assert.Equal(expected.Length, control.
TextLength
);
3384
Assert.Equal(expected.Length, control.
TextLength
);
3397
Assert.Equal(expected.Length, control.
TextLength
);
3449
Assert.Equal(expected.Length, control.
TextLength
);
3463
Assert.Equal(expected.Length, control.
TextLength
);
3605
Assert.Equal(0, control.
TextLength
);
3609
Assert.Equal(0, control.
TextLength
);
3625
Assert.Equal(0, control.
TextLength
);
3632
Assert.Equal(0, control.
TextLength
);
3650
Assert.Equal(expected, control.
TextLength
);
3671
Assert.Equal(expected, control.
TextLength
);
3682
Assert.Equal(0, control.
TextLength
);
3691
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)