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)
1272Size preferredSize = GetPreferredSize(new Size(clientRect.Width, clientRect.Height));
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
987Size preferredSize = GetPreferredSize(new Size(clientRect.Width, clientRect.Height));
System.Windows.Forms.Design (6)
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (1)
45Size linkLabelSize = _linkLabel.GetPreferredSize(new Size(int.MaxValue, int.MaxValue));
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (2)
56Size titleSize = _titleLabel.GetPreferredSize(new Size(int.MaxValue, int.MaxValue)); 60subtitleSize = _subtitleLabel.GetPreferredSize(new Size(int.MaxValue, int.MaxValue));
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (2)
83return LineLeftMargin + _label.GetPreferredSize(new Size(int.MaxValue, int.MaxValue)).Width + TextBoxLineCenterMargin; 110int labelPreferredWidth = _label.GetPreferredSize(new Size(int.MaxValue, int.MaxValue)).Width;
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (1)
40Size labelSize = _label.GetPreferredSize(new Size(int.MaxValue, int.MaxValue));