Base:
method
GetPreferredSize
System.Windows.Forms.Control.GetPreferredSize(System.Drawing.Size)
8 references to GetPreferredSize
System.Windows.Forms (2)
System\Windows\Forms\Controls\Labels\Label.cs (1)
1272
Size preferredSize =
GetPreferredSize
(new Size(clientRect.Width, clientRect.Height));
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
987
Size preferredSize =
GetPreferredSize
(new Size(clientRect.Width, clientRect.Height));
System.Windows.Forms.Design (6)
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (1)
45
Size linkLabelSize = _linkLabel.
GetPreferredSize
(new Size(int.MaxValue, int.MaxValue));
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (2)
56
Size titleSize = _titleLabel.
GetPreferredSize
(new Size(int.MaxValue, int.MaxValue));
60
subtitleSize = _subtitleLabel.
GetPreferredSize
(new Size(int.MaxValue, int.MaxValue));
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (2)
83
return LineLeftMargin + _label.
GetPreferredSize
(new Size(int.MaxValue, int.MaxValue)).Width + TextBoxLineCenterMargin;
110
int labelPreferredWidth = _label.
GetPreferredSize
(new Size(int.MaxValue, int.MaxValue)).Width;
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (1)
40
Size labelSize = _label.
GetPreferredSize
(new Size(int.MaxValue, int.MaxValue));