35 references to PreferredHeight
System.Windows.Forms (5)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (4)
486return new Size(100, PreferredHeight); 1183Height = PreferredHeight; 1194Height = Math.Max(saveHeight, PreferredHeight + 2); // 2 = fudge factor 1772height = PreferredHeight;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
93return new Size(bounds.Width, TextBox.PreferredHeight);
System.Windows.Forms.Tests (30)
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (10)
40Assert.Equal(control.PreferredHeight, control.Bottom); 41Assert.Equal(new Rectangle(0, 0, 100, control.PreferredHeight), control.Bounds); 49Assert.Equal(new Size(96, control.PreferredHeight - 4), control.ClientSize); 50Assert.Equal(new Rectangle(0, 0, 96, control.PreferredHeight - 4), control.ClientRectangle); 64Assert.Equal(new Size(100, control.PreferredHeight), control.DefaultSize); 66Assert.Equal(new Rectangle(0, 0, 96, control.PreferredHeight - 4), control.DisplayRectangle); 82Assert.Equal(control.PreferredHeight, control.Height); 102Assert.True(control.PreferredHeight > 0); 118Assert.Equal(new Size(100, control.PreferredHeight), control.Size); 144Assert.Equal(control.PreferredHeight, createParams.Height);
System\Windows\Forms\RichTextBoxTests.cs (1)
109Assert.Equal(control.PreferredSize.Height, control.PreferredHeight);
TextBoxBaseTests.cs (9)
29Assert.Equal(control.PreferredHeight, createParams.Height); 55Assert.Equal(control.PreferredHeight, createParams.Height); 81Assert.Equal(control.PreferredHeight, createParams.Height); 136Assert.Equal(control.PreferredHeight, createParams.Height); 2199Assert.Equal(s_preferredHeight, control.PreferredHeight); 2205Assert.Equal(s_preferredHeight, control.PreferredHeight); 2224Assert.Equal(s_preferredHeight, control.PreferredHeight); 2233Assert.Equal(s_preferredHeight, control.PreferredHeight); 2292Assert.Equal(expected, control.PreferredHeight);
TextBoxTests.cs (10)
39Assert.Equal(control.PreferredHeight, control.Bottom); 40Assert.Equal(new Rectangle(0, 0, 100, control.PreferredHeight), control.Bounds); 48Assert.Equal(new Size(96, control.PreferredHeight - 4), control.ClientSize); 49Assert.Equal(new Rectangle(0, 0, 96, control.PreferredHeight - 4), control.ClientRectangle); 63Assert.Equal(new Size(100, control.PreferredHeight), control.DefaultSize); 65Assert.Equal(new Rectangle(0, 0, 96, control.PreferredHeight - 4), control.DisplayRectangle); 76Assert.Equal(control.PreferredHeight, control.Height); 96Assert.True(control.PreferredHeight > 0); 111Assert.Equal(new Size(100, control.PreferredHeight), control.Size); 137Assert.Equal(control.PreferredHeight, createParams.Height);