2 overrides of MaxLength
System.Windows.Forms (2)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
487
public override int
MaxLength
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
792
public override int
MaxLength
17 writes to MaxLength
PresentationUI (3)
MS\Internal\Documents\RequestedSignatureDialog.Designer.cs (2)
135
_requestedLocationTextBox.
MaxLength
= _maxLocationLength;
171
_requestedSignerNameTextBox.
MaxLength
= _maxNameLength;
MS\Internal\Documents\SigningDialog.Designer.cs (1)
166
_locationTextBox.
MaxLength
= _maxLocationLength;
System.Windows.Forms (4)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (2)
75
EditingTextBox.
MaxLength
= value;
518
textBox.
MaxLength
= MaxInputLength;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
490
set => base.
MaxLength
= value;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
269
set { TextBox.
MaxLength
= value; }
System.Windows.Forms.Tests (9)
TextBoxBaseTests.cs (9)
1690
MaxLength
= value
1696
control.
MaxLength
= value;
1707
MaxLength
= 2
1731
control.
MaxLength
= value;
1739
control.
MaxLength
= value;
1760
control.
MaxLength
= 2;
1780
control.
MaxLength
= value;
1788
Assert.Throws<ArgumentOutOfRangeException>("value", () => control.
MaxLength
= -1);
2688
MaxLength
= 1
WinFormsControlsTest (1)
PictureBoxes.Designer.cs (1)
72
this.imageUri.
MaxLength
= 500;
18 references to MaxLength
System.Windows.Forms (3)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
489
get => base.
MaxLength
;
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
794
get => base.
MaxLength
;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
268
get { return TextBox.
MaxLength
; }
System.Windows.Forms.Tests (15)
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
91
Assert.Equal(32767, control.
MaxLength
);
TextBoxBaseTests.cs (13)
1665
Assert.Equal(0x7FFF, control.
MaxLength
);
1673
Assert.Equal(0x7FFF, control.
MaxLength
);
1692
Assert.Equal(value, control.
MaxLength
);
1697
Assert.Equal(value, control.
MaxLength
);
1709
Assert.Equal(2, control.
MaxLength
);
1732
Assert.Equal(value, control.
MaxLength
);
1740
Assert.Equal(value, control.
MaxLength
);
1761
Assert.Equal(2, control.
MaxLength
);
2597
Assert.Equal(0x7FFF, control.
MaxLength
);
2651
Assert.Equal(0x7FFF, control.
MaxLength
);
2673
Assert.Equal(0x7FFF, control.
MaxLength
);
2695
Assert.Equal(1, control.
MaxLength
);
2724
Assert.Equal(0x7FFF, control.
MaxLength
);
TextBoxTests.cs (1)
85
Assert.Equal(32767, control.
MaxLength
);