Base:
property
AutoSize
System.Windows.Forms.Control.AutoSize
4 writes to AutoSize
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
126
AutoSize
= true,
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (1)
37
AutoSize
= true,
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (1)
22
AutoSize
= false,
System\Windows\Forms\Design\FormatControl.cs (1)
355
thirdRowLabel.
AutoSize
= true;
18 references to AutoSize
System.Windows.Forms (18)
System\Windows\Forms\Controls\Labels\Label.cs (15)
104
if (
AutoSize
!= value)
153
LayoutTransaction.DoLayoutIf(
AutoSize
, ParentInternal, this, PropertyNames.AutoEllipsis);
220
LayoutTransaction.DoLayoutIf(
AutoSize
, ParentInternal, this, PropertyNames.BorderStyle);
223
if (
AutoSize
)
316
protected override Size DefaultSize => new(100,
AutoSize
? PreferredHeight : 23);
345
LayoutTransaction.DoLayoutIf(
AutoSize
, ParentInternal, this, PropertyNames.BorderStyle);
346
if (
AutoSize
)
558
LayoutTransaction.DoLayoutIf(
AutoSize
, ParentInternal, this, PropertyNames.ImageAlign);
785
using (LayoutTransaction.CreateTransactionIf(
AutoSize
, ParentInternal, this, PropertyNames.Text))
824
if (!
AutoSize
&&
837
Size preferredSize = (
AutoSize
) ? PreferredSize : new Size(saveWidth, saveHeight);
1211
using (LayoutTransaction.CreateTransactionIf(
AutoSize
, ParentInternal, this, PropertyNames.Text))
1389
if (
AutoSize
&& SelfSizing)
1398
Debug.Assert(!
AutoSize
|| (
AutoSize
&& !SelfSizing) || Size == PreferredSize,
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (3)
161
if (_owner.
AutoSize
)
302
bool doLayout = _owner._links.Count > 0 && _owner.
AutoSize
;
343
if (_owner.
AutoSize
)