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