Base:
property
AutoSize
System.Windows.Forms.Control.AutoSize
1 override of AutoSize
WinFormsControlsTest (1)
CurrentDPILabel.cs (1)
16public override bool AutoSize
169 writes to AutoSize
Accessibility_Core_App (49)
CommonControl1.Designer.cs (16)
257this.label7.AutoSize = true; 334this.label11.AutoSize = true; 359this.label10.AutoSize = true; 396this.label8.AutoSize = true; 430this.linkLabel6.AutoSize = true; 442this.linkLabel5.AutoSize = true; 454this.linkLabel4.AutoSize = true; 466this.linkLabel3.AutoSize = true; 478this.label6.AutoSize = true; 489this.label5.AutoSize = true; 500this.label4.AutoSize = true; 511this.label3.AutoSize = true; 531this.linkLabel1.AutoSize = true; 551this.label1.AutoSize = true; 589this.label12.AutoSize = true; 620this.label9.AutoSize = true;
CommonControl2.Designer.cs (8)
68this.label3.AutoSize = true; 89this.label4.AutoSize = true; 122this.label5.AutoSize = true; 142this.label6.AutoSize = true; 165this.label7.AutoSize = true; 202this.label8.AutoSize = true; 223this.label1.AutoSize = true; 240this.label2.AutoSize = true;
ContainerControls.Designer.cs (8)
166this.label2.AutoSize = true; 176this.label3.AutoSize = true; 186this.label4.AutoSize = true; 287this.label6.AutoSize = true; 297this.label7.AutoSize = true; 409this.label10.AutoSize = true; 564this.label1.AutoSize = true; 628this.label5.AutoSize = true;
ContainerControls2.Designer.cs (8)
74this.label8.AutoSize = true; 127this.label9.AutoSize = true; 260this.label13.AutoSize = true; 279this.label14.AutoSize = true; 302this.label15.AutoSize = true; 321this.label16.AutoSize = true; 349this.label17.AutoSize = true; 392this.label18.AutoSize = true;
DataBindingExample.Designer.cs (5)
79this.label1.AutoSize = true; 196this.linkLabel1.AutoSize = true; 208this.label2.AutoSize = true; 228this.label3.AutoSize = true; 251this.label4.AutoSize = true;
PrintingControls.Designer.cs (2)
72this.label1.AutoSize = true; 135this.label2.AutoSize = true;
RemainingControls.Designer.cs (2)
79this.label1.AutoSize = true; 98this.label2.AutoSize = true;
PresentationUI (54)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (20)
228this._titleLabel.AutoSize = true; 245this._versionLabel.AutoSize = true; 253this._authorLabel.AutoSize = true; 261this._statusLabel.AutoSize = true; 269this._contentLabel.AutoSize = true; 277this._languageLabel.AutoSize = true; 285this._subjectLabel.AutoSize = true; 302this._categoryLabel.AutoSize = true; 337this._keywordsLabel.AutoSize = true; 387this._identifierLabel.AutoSize = true; 395this._descriptionLabel.AutoSize = true; 511this._sizeLabel.AutoSize = true; 595this._documentPrintedLabel.AutoSize = true; 603this._documentModifiedLabel.AutoSize = true; 611this._documentCreatedLabel.AutoSize = true; 619this._revisionLabel.AutoSize = true; 627this._lastSavedLabel.AutoSize = true; 693this._fileCreatedLabel.AutoSize = true; 701this._fileModifiedLabel.AutoSize = true; 718this._fileAccessedLabel.AutoSize = true;
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (1)
150this._instructionLabel.AutoSize = true;
MS\Internal\Documents\RequestedSignatureDialog.Designer.cs (4)
143_signatureAppliedByDateLabel.AutoSize = true; 152_requestSignerNameLabel.AutoSize = true; 161_requestLocationLabel.AutoSize = true; 179_intentLabel.AutoSize = true;
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (5)
109_label1.AutoSize = true; 119_label2.AutoSize = true; 129_label3.AutoSize = true; 139_privacyLabel.AutoSize = true; 149_instructionlabel.AutoSize = true;
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (2)
106this._label1.AutoSize = true; 137this._label2.AutoSize = true;
MS\Internal\Documents\RMEnrollmentPage3.Designer.cs (2)
75this.label2.AutoSize = true; 101this.label3.AutoSize = true;
MS\Internal\Documents\RMPermissions.cs (1)
184permissionLabel.AutoSize = true;
MS\Internal\Documents\RMPermissions.Designer.cs (7)
82this.authenticatedAsTextLabel.AutoSize = true; 87this.authenticatedAsLabel.AutoSize = true; 101this.permissionsHeldLabel.AutoSize = true; 115this.requestFromTextLabel.AutoSize = true; 120this.requestFromLabel.AutoSize = true; 135this.expiresOnTextLabel.AutoSize = true; 140this.expiresOnLabel.AutoSize = true;
MS\Internal\Documents\RMPublishingDialog.Designer.cs (1)
171this.labelSelectTemplate.AutoSize = true;
MS\Internal\Documents\SignatureSummaryDialog.cs (6)
234nameHeader.AutoSize = true; 243intentHeader.AutoSize = true; 252locationHeader.AutoSize = true; 261signByHeader.AutoSize = true; 278statusHeader.AutoSize = true; 287intentHeader.AutoSize = true;
MS\Internal\Documents\SigningDialog.Designer.cs (4)
109_signerlabel.AutoSize = true; 129_reasonLabel.AutoSize = true; 147_actionlabel.AutoSize = true; 156_locationLabel.AutoSize = true;
MS\Internal\Documents\SigningProgress.Designer.cs (1)
41_label.AutoSize = true;
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
126AutoSize = true,
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (1)
37AutoSize = true,
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (1)
22AutoSize = false,
System\Windows\Forms\Design\FormatControl.cs (1)
355thirdRowLabel.AutoSize = true;
System.Windows.Forms.Tests (9)
System\Windows\Forms\LabelTests.cs (9)
266AutoSize = autoSize 291AutoSize = autoSize, 320AutoSize = autoSize 442label.AutoSize = label.AutoSize; 445label.AutoSize = !label.AutoSize; 448label.AutoSize = label.AutoSize; 451label.AutoSize = !label.AutoSize; 455label.AutoSize = !label.AutoSize; 870AutoSize = true,
WinFormsControlsTest (53)
Calendar.Designer.cs (5)
92this.label1.AutoSize = true; 102this.label2.AutoSize = true; 131this.label3.AutoSize = true; 159this.label4.AutoSize = true; 215this.label5.AutoSize = true;
CollectionEditors.Designer.cs (1)
90this.label1.AutoSize = true;
ComboBoxes.Designer.cs (2)
248this.label1.AutoSize = true; 257this.dataBoundLabel.AutoSize = true;
ComboBoxesWithScrollBars.Designer.cs (3)
124this.label1.AutoSize = true; 149this.label2.AutoSize = true; 172this.label3.AutoSize = true;
CurrentDPILabel.cs (1)
19set => base.AutoSize = value;
DataGridViewTest.Designer.cs (1)
185this.label1.AutoSize = true;
DesignTimeAligned.Designer.cs (2)
43this.label1.AutoSize = true; 54this.label2.AutoSize = true;
ErrorProviderTest.Designer.cs (4)
58this.label1.AutoSize = true; 68this.label1_2.AutoSize = true; 88this.label2.AutoSize = true; 98this.label2_1.AutoSize = true;
FormBorderStyles.Designer.cs (1)
47this.lblFormBorderStyle.AutoSize = true;
MenuStripAndCheckedListBox.Designer.cs (1)
273this.currentDpiLabel.AutoSize = true;
MultipleControls.Designer.cs (3)
91this.label1.AutoSize = true; 260this.linkLabel1.AutoSize = true; 270this.linkLabel2.AutoSize = true;
Password.Designer.cs (11)
76label1.AutoSize = true; 85label2.AutoSize = true; 156label3.AutoSize = true; 165label4.AutoSize = true; 174label5.AutoSize = true; 183label6.AutoSize = true; 192label7.AutoSize = true; 201label8.AutoSize = true; 210label9.AutoSize = true; 219label10.AutoSize = true; 228label11.AutoSize = true;
ScrollableControls.Designer.cs (7)
149label1.AutoSize = true; 207label2.AutoSize = true; 303label3.AutoSize = true; 353label4.AutoSize = true; 362label5.AutoSize = true; 408label6.AutoSize = true; 417label7.AutoSize = true;
ScrollBars.Designer.cs (4)
99this.lblMinimum.AutoSize = true; 108this.lblMaximum.AutoSize = true; 117this.lblHValue.AutoSize = true; 126this.lblVValue.AutoSize = true;
ToolStripSeparatorPreferredSize.cs (1)
81_label1.AutoSize = true;
ToolStripTests.Designer.cs (1)
390this.label1.AutoSize = true;
TrackBars.Designer.cs (5)
202this.lblMinimum.AutoSize = true; 211this.lblMaximum.AutoSize = true; 220this.lblTickFrequency.AutoSize = true; 229this.lblTrackBarSize.AutoSize = true; 238this.lblTrackBarValue.AutoSize = true;
28 references to AutoSize
System.Windows.Forms (18)
System\Windows\Forms\Controls\Labels\Label.cs (15)
108if (AutoSize != value) 157LayoutTransaction.DoLayoutIf(AutoSize, ParentInternal, this, PropertyNames.AutoEllipsis); 224LayoutTransaction.DoLayoutIf(AutoSize, ParentInternal, this, PropertyNames.BorderStyle); 227if (AutoSize) 318protected override Size DefaultSize => new(100, AutoSize ? PreferredHeight : 23); 347LayoutTransaction.DoLayoutIf(AutoSize, ParentInternal, this, PropertyNames.BorderStyle); 348if (AutoSize) 560LayoutTransaction.DoLayoutIf(AutoSize, ParentInternal, this, PropertyNames.ImageAlign); 787using (LayoutTransaction.CreateTransactionIf(AutoSize, ParentInternal, this, PropertyNames.Text)) 826if (!AutoSize && 839Size preferredSize = (AutoSize) ? PreferredSize : new Size(saveWidth, saveHeight); 1213using (LayoutTransaction.CreateTransactionIf(AutoSize, ParentInternal, this, PropertyNames.Text)) 1391if (AutoSize && SelfSizing) 1400Debug.Assert(!AutoSize || (AutoSize && !SelfSizing) || Size == PreferredSize,
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (3)
161if (_owner.AutoSize) 302bool doLayout = _owner._links.Count > 0 && _owner.AutoSize; 343if (_owner.AutoSize)
System.Windows.Forms.Tests (9)
System\Windows\Forms\LabelTests.cs (9)
25Assert.False(control.AutoSize); 328Assert.Equal(autoSize, control.AutoSize); 335Assert.Equal(autoSize, control.AutoSize); 344Assert.Equal(autoSize, control.AutoSize); 442label.AutoSize = label.AutoSize; 445label.AutoSize = !label.AutoSize; 448label.AutoSize = label.AutoSize; 451label.AutoSize = !label.AutoSize; 455label.AutoSize = !label.AutoSize;
WinFormsControlsTest (1)
CurrentDPILabel.cs (1)
18get => base.AutoSize;