5 overrides of MaximumSize
System.Windows.Forms (5)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
660
public override Size
MaximumSize
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
350
public override Size
MaximumSize
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (1)
192
public override Size
MaximumSize
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
283
public override Size
MaximumSize
System\Windows\Forms\Form.cs (1)
1191
public override Size
MaximumSize
71 writes to MaximumSize
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\MyServices\Internal\ProgressDialog.vb (2)
133
LabelInfo.
MaximumSize
= New Size(300, 0)
206
LabelInfo.
MaximumSize
= New Size(ClientSize.Width - BORDER_SIZE, 0)
PresentationUI (12)
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (1)
152
this._instructionLabel.
MaximumSize
= new System.Drawing.Size(400, 0);
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (4)
112
_label1.
MaximumSize
= new System.Drawing.Size(400, 0);
122
_label2.
MaximumSize
= new System.Drawing.Size(400, 0);
132
_label3.
MaximumSize
= new System.Drawing.Size(400, 0);
142
_privacyLabel.
MaximumSize
= new System.Drawing.Size(400, 0);
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (1)
140
this._label2.
MaximumSize
= new System.Drawing.Size(490, 0);
MS\Internal\Documents\SignatureSummaryDialog.cs (6)
238
nameHeader.
MaximumSize
= new Size(IconWidth + SummaryNameTextWidth, 0);
247
intentHeader.
MaximumSize
= new Size(IntentTextWidth, 0);
256
locationHeader.
MaximumSize
= new Size(LocaleTextWidth, 0);
265
signByHeader.
MaximumSize
= new Size(SignByTextWidth, 0);
281
statusHeader.
MaximumSize
= new Size(IconWidth + SummaryNameTextWidth,0);
291
intentHeader.
MaximumSize
= new Size(IntentTextWidth, 0);
System.Windows.Forms (10)
System\Windows\Forms\Control.cs (3)
353
MaximumSize
= DefaultMaximumSize;
9710
MaximumSize
= Size.Empty;
9788
MaximumSize
= maxSize;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
663
set => base.
MaximumSize
= new Size(value.Width, 0);
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
353
set => base.
MaximumSize
= value;
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (1)
195
set => base.
MaximumSize
= value;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
1473
MaximumSize
= ScaleSize(maxSize, dx, dy);
1507
MaximumSize
= ScaleSize(maxSize, factor.Width, factor.Height);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
286
set => base.
MaximumSize
= new Size(value.Width, 0);
System\Windows\Forms\Panels\SplitterPanel.cs (1)
176
set => base.
MaximumSize
= value;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\FormatControl.cs (1)
351
thirdRowLabel.
MaximumSize
= new Drawing.Size(tableLayoutPanel1.Width, 0);
System.Windows.Forms.Tests (45)
System\Windows\Forms\ControlTests.Methods.cs (5)
2424
MaximumSize
= maximumSize,
7491
MaximumSize
= maximumSize
8278
MaximumSize
= maximumSize
9099
MaximumSize
= maximumSize
11061
MaximumSize
= maximumSize
System\Windows\Forms\ControlTests.Properties.cs (40)
2522
MaximumSize
= maximumSize
5793
MaximumSize
= maximumSize
7933
control.
MaximumSize
= value;
7940
control.
MaximumSize
= value;
7953
MaximumSize
= new Size(1, 2)
7958
control.
MaximumSize
= value;
7965
control.
MaximumSize
= value;
8010
control.
MaximumSize
= value;
8017
control.
MaximumSize
= value;
8035
control.
MaximumSize
= value;
8042
control.
MaximumSize
= value;
8055
MaximumSize
= new Size(4, 5),
8067
control.
MaximumSize
= value;
8074
control.
MaximumSize
= value;
8118
control.
MaximumSize
= value;
8126
control.
MaximumSize
= value;
8158
MaximumSize
= new Size(1, 2),
8174
control.
MaximumSize
= value;
8183
control.
MaximumSize
= value;
8209
control.
MaximumSize
= value;
8219
control.
MaximumSize
= value;
8235
MaximumSize
= new Size(1, 2)
8247
control.
MaximumSize
= value;
8257
control.
MaximumSize
= value;
8285
control.
MaximumSize
= value;
8295
control.
MaximumSize
= value;
8340
control.
MaximumSize
= value;
8355
control.
MaximumSize
= value;
8379
MaximumSize
= new Size(1, 2),
8408
control.
MaximumSize
= value;
8423
control.
MaximumSize
= value;
8447
control.
MaximumSize
= new Size(1, 0);
8451
control.
MaximumSize
= new Size(0, 1);
8455
control.
MaximumSize
= new Size(1, 2);
8471
control.
MaximumSize
= new Size(1, 0);
8475
control.
MaximumSize
= new Size(0, 1);
8479
control.
MaximumSize
= new Size(1, 2);
8668
MaximumSize
= new Size(-1, -2)
11178
MaximumSize
= maximumSize
13212
MaximumSize
= maximumSize
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
319
MaximumSize
= HostUtils.ConvertUnboundedToZero(new SD.Size(maxWidth, maxHeight));
101 references to MaximumSize
System.Windows.Forms (16)
System\Windows\Forms\Control.cs (7)
2476
Debug.Assert(
MaximumSize
== DefaultMaximumSize, "Error detected while resetting MaximumSize.");
2478
else if (value !=
MaximumSize
)
2482
Debug.Assert(
MaximumSize
== value, "Error detected while setting MaximumSize.");
5193
if (
MaximumSize
!= Size.Empty || MinimumSize != Size.Empty)
5195
Size maximumSize = LayoutUtils.ConvertZeroToUnbounded(
MaximumSize
);
9706
Size maxSize =
MaximumSize
;
10631
return
MaximumSize
!= DefaultMaximumSize;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
662
get => base.
MaximumSize
;
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
352
get => base.
MaximumSize
;
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (1)
194
get => base.
MaximumSize
;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (4)
1464
Size maxSize =
MaximumSize
;
1471
if (!
MaximumSize
.IsEmpty)
1499
Size maxSize =
MaximumSize
;
1505
if (!
MaximumSize
.IsEmpty)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
285
get => base.
MaximumSize
;
System\Windows\Forms\Panels\SplitterPanel.cs (1)
175
get => base.
MaximumSize
;
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
98
Assert.Equal(Size.Empty, control.
MaximumSize
);
System.Windows.Forms.Tests (81)
System\Windows\Forms\AxHostTests.cs (2)
90
Assert.Equal(Size.Empty, control.
MaximumSize
);
184
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\ButtonBaseTests.cs (1)
88
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\ButtonTests.cs (1)
91
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\CheckBoxTests.cs (1)
92
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\ContainerControlTests.cs (1)
96
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\ControlTests.cs (5)
74
Assert.Equal(Size.Empty, control.
MaximumSize
);
163
Assert.Equal(Size.Empty, control.
MaximumSize
);
259
Assert.Equal(Size.Empty, control.
MaximumSize
);
355
Assert.Equal(Size.Empty, control.
MaximumSize
);
451
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\ControlTests.Properties.cs (35)
7891
Assert.Equal(expected, control.
MaximumSize
);
7934
Assert.Equal(value, control.
MaximumSize
);
7941
Assert.Equal(value, control.
MaximumSize
);
7959
Assert.Equal(value, control.
MaximumSize
);
7966
Assert.Equal(value, control.
MaximumSize
);
8011
Assert.Equal(value, control.
MaximumSize
);
8018
Assert.Equal(value, control.
MaximumSize
);
8036
Assert.Equal(value, control.
MaximumSize
);
8043
Assert.Equal(value, control.
MaximumSize
);
8068
Assert.Equal(value, control.
MaximumSize
);
8075
Assert.Equal(value, control.
MaximumSize
);
8119
Assert.Equal(value, control.
MaximumSize
);
8127
Assert.Equal(value, control.
MaximumSize
);
8175
Assert.Equal(value, control.
MaximumSize
);
8184
Assert.Equal(value, control.
MaximumSize
);
8210
Assert.Equal(value, control.
MaximumSize
);
8220
Assert.Equal(value, control.
MaximumSize
);
8248
Assert.Equal(value, control.
MaximumSize
);
8258
Assert.Equal(value, control.
MaximumSize
);
8286
Assert.Equal(value, control.
MaximumSize
);
8296
Assert.Equal(value, control.
MaximumSize
);
8341
Assert.Equal(value, control.
MaximumSize
);
8356
Assert.Equal(value, control.
MaximumSize
);
8409
Assert.Equal(value, control.
MaximumSize
);
8424
Assert.Equal(value, control.
MaximumSize
);
8443
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.
MaximumSize
)];
8448
Assert.Equal(new Size(1, 0), control.
MaximumSize
);
8452
Assert.Equal(new Size(0, 1), control.
MaximumSize
);
8456
Assert.Equal(new Size(1, 2), control.
MaximumSize
);
8460
Assert.Equal(Size.Empty, control.
MaximumSize
);
8467
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.
MaximumSize
)];
8472
Assert.Equal(new Size(1, 0), control.
MaximumSize
);
8476
Assert.Equal(new Size(0, 1), control.
MaximumSize
);
8480
Assert.Equal(new Size(1, 2), control.
MaximumSize
);
8484
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
90
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\DateTimePickerTests.cs (1)
92
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
97
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
90
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\GroupBoxTests.cs (1)
78
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\HScrollBarTests.cs (1)
87
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\LabelTests.cs (1)
83
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\ListBoxTests.cs (1)
94
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\ListControlTests.cs (1)
84
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\ListViewTests.cs (1)
110
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\MdiClientTests.cs (1)
62
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\MenuStripTests.cs (1)
108
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\MonthCalendarTests.cs (1)
96
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\PanelTests.cs (1)
90
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\PictureBoxTests.cs (1)
85
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\ProgressBarTests.cs (1)
76
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\PropertyGridTests.cs (1)
125
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\RadioButtonTests.cs (1)
91
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\RichTextBoxTests.cs (1)
97
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\ScrollableControlTests.cs (1)
89
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\ScrollBarTests.cs (1)
77
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\SplitterTests.cs (1)
76
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\StatusStripTests.cs (1)
108
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\TabControlTests.cs (1)
81
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
98
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
115
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
92
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\ToolStripTests.cs (2)
126
Assert.Equal(Size.Empty, control.
MaximumSize
);
281
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\TreeViewTests.cs (1)
89
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\UserControlTests.cs (1)
96
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\VScrollBarTests.cs (1)
86
Assert.Equal(Size.Empty, control.
MaximumSize
);
System\Windows\Forms\WebBrowserTests.cs (1)
73
Assert.Equal(Size.Empty, control.
MaximumSize
);
TextBoxTests.cs (1)
84
Assert.Equal(Size.Empty, control.
MaximumSize
);
TrackBarTests.cs (1)
79
Assert.Equal(Size.Empty, control.
MaximumSize
);
WindowsFormsIntegration (3)
System\Windows\Integration\ElementHost.cs (3)
100
proposedSize = HostUtils.IntersectSizes(HostUtils.ConvertZeroOrOneToUnbounded(proposedSize), HostUtils.ConvertZeroToUnbounded(
MaximumSize
));
117
prefSize = HostUtils.IntersectSizes(prefSize, HostUtils.ConvertZeroToUnbounded(
MaximumSize
));
316
SD.Size priorMaxSize = HostUtils.ConvertZeroToUnbounded(
MaximumSize
);