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