Base:
property
MaxLength
System.Windows.Forms.TextBoxBase.MaxLength
9 writes to MaxLength
System.Windows.Forms (1)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
105
MaxLength
= int.MaxValue;
System.Windows.Forms.Tests (8)
System\Windows\Forms\RichTextBoxTests.cs (8)
1956
MaxLength
= value
1962
control.
MaxLength
= value;
1973
MaxLength
= 2
1997
control.
MaxLength
= value;
2005
control.
MaxLength
= value;
2026
control.
MaxLength
= 2;
2046
control.
MaxLength
= value;
2054
Assert.Throws<ArgumentOutOfRangeException>("value", () => control.
MaxLength
= -1);
12 references to MaxLength
System.Windows.Forms (2)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
3211
PInvokeCore.SendMessage(this, PInvokeCore.EM_EXLIMITTEXT, 0, (IntPtr)
MaxLength
);
3396
if (selStart == selEnd && textLength ==
MaxLength
)
System.Windows.Forms.Tests (10)
System\Windows\Forms\RichTextBoxTests.cs (10)
98
Assert.Equal(int.MaxValue, control.
MaxLength
);
1923
Assert.Equal(0x7FFFFFFF, control.
MaxLength
);
1931
Assert.Equal(0x7FFFFFFF, control.
MaxLength
);
1939
Assert.Equal(0x7FFFFFFF, control.
MaxLength
);
1958
Assert.Equal(value, control.
MaxLength
);
1963
Assert.Equal(value, control.
MaxLength
);
1975
Assert.Equal(2, control.
MaxLength
);
1998
Assert.Equal(value, control.
MaxLength
);
2006
Assert.Equal(value, control.
MaxLength
);
2027
Assert.Equal(2, control.
MaxLength
);