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