22 references to PreferredSize
System.Windows.Forms (21)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1240
Size preferredSize =
PreferredSize
;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
214
preferredHeight = txtEditingControl.
PreferredSize
.Height;
System\Windows\Forms\Controls\Labels\Label.cs (5)
640
public virtual int PreferredHeight =>
PreferredSize
.Height;
650
public virtual int PreferredWidth =>
PreferredSize
.Width;
837
Size preferredSize = (AutoSize) ?
PreferredSize
: new Size(saveWidth, saveHeight);
1391
Size preferredSize =
PreferredSize
;
1398
Debug.Assert(!AutoSize || (AutoSize && !SelfSizing) || Size ==
PreferredSize
,
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
961
Size =
PreferredSize
;
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
372
public new Size PreferredSize => base.
PreferredSize
;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
640
controlArray[i].Size = controlArray[i].
PreferredSize
;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (8)
162
if (MaximumSize.Height >= Control.
PreferredSize
.Height)
171
if (MaximumSize.Height + growBy >= Control.
PreferredSize
.Height)
173
int freed = Control.
PreferredSize
.Height - MaximumSize.Height;
181
if (MaximumSize.Height + growBy < Control.
PreferredSize
.Height)
195
if (MaximumSize.Width >= Control.
PreferredSize
.Width)
204
if (MaximumSize.Width + growBy >= Control.
PreferredSize
.Width)
206
int freed = Control.
PreferredSize
.Width - MaximumSize.Width;
214
if (MaximumSize.Width + growBy < Control.
PreferredSize
.Width)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (1)
438
int controlToDragWidth = (toolStripToDrag.AutoSize) ? toolStripToDrag.
PreferredSize
.Width : toolStripToDrag.Width;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (1)
444
int controlToDragWidth = (toolStripToDrag.AutoSize) ? toolStripToDrag.
PreferredSize
.Height : toolStripToDrag.Height;
System\Windows\Forms\Form.cs (1)
4250
Size prefSize =
PreferredSize
;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (1)
35
Size =
PreferredSize
;