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 1770height = 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)
38Assert.Equal(control.PreferredHeight, control.Bottom); 39Assert.Equal(new Rectangle(0, 0, 100, control.PreferredHeight), control.Bounds); 47Assert.Equal(new Size(96, control.PreferredHeight - 4), control.ClientSize); 48Assert.Equal(new Rectangle(0, 0, 96, control.PreferredHeight - 4), control.ClientRectangle); 62Assert.Equal(new Size(100, control.PreferredHeight), control.DefaultSize); 64Assert.Equal(new Rectangle(0, 0, 96, control.PreferredHeight - 4), control.DisplayRectangle); 80Assert.Equal(control.PreferredHeight, control.Height); 100Assert.True(control.PreferredHeight > 0); 116Assert.Equal(new Size(100, control.PreferredHeight), control.Size); 142Assert.Equal(control.PreferredHeight, createParams.Height);
System\Windows\Forms\RichTextBoxTests.cs (1)
107Assert.Equal(control.PreferredSize.Height, control.PreferredHeight);
TextBoxBaseTests.cs (9)
27Assert.Equal(control.PreferredHeight, createParams.Height); 53Assert.Equal(control.PreferredHeight, createParams.Height); 79Assert.Equal(control.PreferredHeight, createParams.Height); 134Assert.Equal(control.PreferredHeight, createParams.Height); 2197Assert.Equal(s_preferredHeight, control.PreferredHeight); 2203Assert.Equal(s_preferredHeight, control.PreferredHeight); 2222Assert.Equal(s_preferredHeight, control.PreferredHeight); 2231Assert.Equal(s_preferredHeight, control.PreferredHeight); 2290Assert.Equal(expected, control.PreferredHeight);
TextBoxTests.cs (10)
37Assert.Equal(control.PreferredHeight, control.Bottom); 38Assert.Equal(new Rectangle(0, 0, 100, control.PreferredHeight), control.Bounds); 46Assert.Equal(new Size(96, control.PreferredHeight - 4), control.ClientSize); 47Assert.Equal(new Rectangle(0, 0, 96, control.PreferredHeight - 4), control.ClientRectangle); 61Assert.Equal(new Size(100, control.PreferredHeight), control.DefaultSize); 63Assert.Equal(new Rectangle(0, 0, 96, control.PreferredHeight - 4), control.DisplayRectangle); 74Assert.Equal(control.PreferredHeight, control.Height); 94Assert.True(control.PreferredHeight > 0); 109Assert.Equal(new Size(100, control.PreferredHeight), control.Size); 135Assert.Equal(control.PreferredHeight, createParams.Height);