239 writes to Size
PresentationUI (135)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (50)
133this.tableLayoutPanel3.Size = new System.Drawing.Size(362, 437); 143this._tabControl.Size = new System.Drawing.Size(436, 535); 155this._summaryTab.Size = new System.Drawing.Size(324, 355); 205this.tableLayoutPanel1.Size = new System.Drawing.Size(324, 297); 213this._language.Size = new System.Drawing.Size(335, 13); 223this._title.Size = new System.Drawing.Size(335, 13); 232this._titleLabel.Size = new System.Drawing.Size(27, 13); 240this._identifier.Size = new System.Drawing.Size(335, 13); 249this._versionLabel.Size = new System.Drawing.Size(42, 13); 257this._authorLabel.Size = new System.Drawing.Size(38, 13); 265this._statusLabel.Size = new System.Drawing.Size(37, 13); 273this._contentLabel.Size = new System.Drawing.Size(44, 13); 281this._languageLabel.Size = new System.Drawing.Size(55, 13); 289this._subjectLabel.Size = new System.Drawing.Size(43, 13); 297this._version.Size = new System.Drawing.Size(335, 13); 306this._categoryLabel.Size = new System.Drawing.Size(49, 13); 314this._category.Size = new System.Drawing.Size(335, 13); 323this._status.Size = new System.Drawing.Size(335, 13); 332this._content.Size = new System.Drawing.Size(335, 13); 341this._keywordsLabel.Size = new System.Drawing.Size(53, 13); 350this._author.Size = new System.Drawing.Size(335, 13); 359this._subject.Size = new System.Drawing.Size(335, 13); 369this._description.Size = new System.Drawing.Size(335, 101); 380this._keywords.Size = new System.Drawing.Size(335, 28); 391this._identifierLabel.Size = new System.Drawing.Size(47, 13); 400this._descriptionLabel.Size = new System.Drawing.Size(60, 13); 426this._infoTab.Size = new System.Drawing.Size(348, 379); 445this.tableLayoutPanel2.Size = new System.Drawing.Size(314, 355); 477this._size.Size = new System.Drawing.Size(270, 28); 485this._iconPictureBox.Size = new System.Drawing.Size(40, 40); 495this._filename.Size = new System.Drawing.Size(340, 13); 505this._documentType.Size = new System.Drawing.Size(340, 13); 515this._sizeLabel.Size = new System.Drawing.Size(40, 13); 526this._documentDetailBox.Size = new System.Drawing.Size(305, 127); 563this._documentPrintedDate.Size = new System.Drawing.Size(282, 13); 572this._documentModifiedDate.Size = new System.Drawing.Size(282, 13); 581this._documentCreatedDate.Size = new System.Drawing.Size(282, 13); 590this._revision.Size = new System.Drawing.Size(282, 13); 599this._documentPrintedLabel.Size = new System.Drawing.Size(43, 13); 607this._documentModifiedLabel.Size = new System.Drawing.Size(50, 13); 615this._documentCreatedLabel.Size = new System.Drawing.Size(47, 13); 623this._revisionLabel.Size = new System.Drawing.Size(51, 13); 631this._lastSavedLabel.Size = new System.Drawing.Size(79, 13); 639this._lastSaved.Size = new System.Drawing.Size(282, 13); 679this._fileModifiedDate.Size = new System.Drawing.Size(282, 13); 688this._fileAccessedDate.Size = new System.Drawing.Size(282, 13); 697this._fileCreatedLabel.Size = new System.Drawing.Size(47, 13); 705this._fileModifiedLabel.Size = new System.Drawing.Size(50, 13); 713this._fileCreatedDate.Size = new System.Drawing.Size(282, 13); 722this._fileAccessedLabel.Size = new System.Drawing.Size(57, 13);
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (3)
69this._mainDialogTableLayoutPanel.Size = new System.Drawing.Size(398, 157); 144this._credListBox.Size = new System.Drawing.Size(299, 82); 154this._instructionLabel.Size = new System.Drawing.Size(0, 0);
MS\Internal\Documents\RequestedSignatureDialog.Designer.cs (13)
65_buttomControlLayoutpanel.Size = new System.Drawing.Size(56, 24); 73_addButton.Size = new System.Drawing.Size(65, 6); 83_cancelButton.Size = new System.Drawing.Size(65, 6); 118_userInputTableLayoutPanel.Size = new System.Drawing.Size(407, 197); 125_dateTimePicker.Size = new System.Drawing.Size(245, 20); 137_requestedLocationTextBox.Size = new System.Drawing.Size(401, 20); 147_signatureAppliedByDateLabel.Size = new System.Drawing.Size(17, 13); 156_requestSignerNameLabel.Size = new System.Drawing.Size(17, 13); 165_requestLocationLabel.Size = new System.Drawing.Size(17, 13); 173_requestedSignerNameTextBox.Size = new System.Drawing.Size(401, 20); 183_intentLabel.Size = new System.Drawing.Size(17, 13); 192_intentComboBox.Size = new System.Drawing.Size(401, 21); 211_mainDialogTableLayoutPanel.Size = new System.Drawing.Size(433, 273);
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (11)
69_panel1.Size = new System.Drawing.Size(398, 196); 80_flowLayoutPanel2.Size = new System.Drawing.Size(398, 153); 90_flowLayoutPanel3.Size = new System.Drawing.Size(353, 111); 104_flowLayoutPanel4.Size = new System.Drawing.Size(198, 89); 114_label1.Size = new System.Drawing.Size(392, 13); 124_label2.Size = new System.Drawing.Size(0, 0); 134_label3.Size = new System.Drawing.Size(165, 13); 144_privacyLabel.Size = new System.Drawing.Size(89, 13); 154_instructionlabel.Size = new System.Drawing.Size(140, 13); 162_panel2.Size = new System.Drawing.Size(13, 105); 170_pictureBox.Size = new System.Drawing.Size(78, 75);
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (11)
69this._flowLayoutPanel1.Size = new System.Drawing.Size(548, 43); 101this._flowLayoutPanel2.Size = new System.Drawing.Size(548, 326); 110this._label1.Size = new System.Drawing.Size(322, 13); 122this._flowLayoutPanel3.Size = new System.Drawing.Size(528, 38); 131this._pictureBox1.Size = new System.Drawing.Size(16, 16); 142this._label2.Size = new System.Drawing.Size(490, 26); 164this._tableLayoutPanel1.Size = new System.Drawing.Size(488, 234); 173this._networkRadioButton.Size = new System.Drawing.Size(126, 17); 184this._pictureBox2.Size = new System.Drawing.Size(100, 50); 193this._passportRadioButton.Size = new System.Drawing.Size(132, 17); 203this._pictureBox4.Size = new System.Drawing.Size(100, 50);
MS\Internal\Documents\RMEnrollmentPage3.Designer.cs (6)
60this.tableLayoutPanel1.Size = new System.Drawing.Size(419, 218); 70this.flowLayoutPanel2.Size = new System.Drawing.Size(413, 27); 79this.label2.Size = new System.Drawing.Size(245, 13); 95this.tableLayoutPanel2.Size = new System.Drawing.Size(413, 135); 105this.label3.Size = new System.Drawing.Size(115, 13); 114this.progressBar1.Size = new System.Drawing.Size(100, 14);
MS\Internal\Documents\RMPublishingDialog.cs (3)
920buttonPeoplePicker.Size = imageButtonSize; 921buttonEveryone.Size = imageButtonSize; 922buttonRemoveUser.Size = imageButtonSize;
MS\Internal\Documents\RMPublishingDialog.Designer.cs (12)
93this.radioButtonUnrestricted.Size = new System.Drawing.Size(85, 17); 102this.radioButtonPermissions.Size = new System.Drawing.Size(85, 17); 111this.radioButtonTemplate.Size = new System.Drawing.Size(85, 17); 124this.groupBoxMainContent.Size = new System.Drawing.Size(650, 270); 165this.textBoxUnrestrictedText.Size = new System.Drawing.Size(625, 230); 181this.comboBoxTemplates.Size = new System.Drawing.Size(350, 21); 242this.rightsTable.Size = new System.Drawing.Size(635, 150); 268this.textBoxPermissionsContact.Size = new System.Drawing.Size(612, 20); 307this.flowLayoutPanelActions.Size = new System.Drawing.Size(541, 29); 316this.buttonCancel.Size = new System.Drawing.Size(75, 23); 323this.buttonSave.Size = new System.Drawing.Size(75, 23); 330this.buttonSaveAs.Size = new System.Drawing.Size(75, 23);
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (11)
59_buttonDone.Size = new System.Drawing.Size(75, 23); 82_flowpanelMiddleControls.Size = new System.Drawing.Size(335, 49); 95_flowpanelBottomControls.Size = new System.Drawing.Size(335, 49); 102_buttonSign.Size = new System.Drawing.Size(75, 23); 112_buttonViewCert.Size = new System.Drawing.Size(75, 23); 122_buttonRequestDelete.Size = new System.Drawing.Size(75, 23); 130_buttonRequestAdd.Size = new System.Drawing.Size(75, 23); 143_columnHeaderPanel.Size = new System.Drawing.Size(600, 25); 154_listBoxSummary.Size = new System.Drawing.Size(600, 217); 170_listboxMainPanel.Size = new System.Drawing.Size(602, 272); 179_listboxItemPanel.Size = new System.Drawing.Size(600, 217);
MS\Internal\Documents\SigningDialog.Designer.cs (15)
66_userInputFlowPanel.Size = new System.Drawing.Size(475, 195); 95_signatureControlInputLayoutTable.Size = new System.Drawing.Size(466, 173); 103_addDigSigCheckBox.Size = new System.Drawing.Size(15, 14); 113_signerlabel.Size = new System.Drawing.Size(0, 0); 123_addDocPropCheckBox.Size = new System.Drawing.Size(15, 14); 132_reasonLabel.Size = new System.Drawing.Size(0, 0); 141_reasonComboBox.Size = new System.Drawing.Size(460, 21); 151_actionlabel.Size = new System.Drawing.Size(0, 0); 160_locationLabel.Size = new System.Drawing.Size(0, 0); 168_locationTextBox.Size = new System.Drawing.Size(460, 20); 190_buttonflowLayoutPanel.Size = new System.Drawing.Size(475, 17); 203_cancelButton.Size = new System.Drawing.Size(36, 6); 217_signButton.Size = new System.Drawing.Size(36, 6); 231_signSaveAsButton.Size = new System.Drawing.Size(36, 6); 249_mainLayoutTable.Size = new System.Drawing.Size(481, 292);
System.Windows.Forms (47)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1713_control.Size = size;
System\Windows\Forms\Control.cs (3)
425Size = new Size(width, height); 9199Size = DefaultSize; 10233Size = SizeFromClientSizeInternal(new(x, y));
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
3765editingControl.Size = new Size(editingControlBounds.Width, editingControlBounds.Height); 3851DataGridView.EditingPanel.Size = new Size(wEditingPanel, hEditingPanel);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
801DataGridView.EditingControl.Size = new Size(editingControlBounds.Width, editingControlBounds.Height);
System\Windows\Forms\Controls\Labels\Label.cs (1)
838Size = preferredSize;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
602Size = new Size(oldSize.Width + 1, oldSize.Height); 603Size = oldSize;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
820set => base.Size = value;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (2)
961Size = PreferredSize; 965Size = _savedSize;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
2604_gridView.Size = Size; 2755_gridView.Size = new Size(Size.Width, endSize - _gridView.Location.Y); 2823_targetMove.Size = size;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (9)
130Size = new(208, 43), 138Size = new(64, 64), 151Size = new(100, 23), 163Size = new(75, 23), 176Size = new(75, 23), 190Size = new(290, 29), 213Size = new(284, 73), 230Size = new(290, 108), 255Size = new(273, 100),
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (2)
54Size = new(LogicalToDeviceUnits(LogicalDefaultWidth), LogicalToDeviceUnits(LogicalDefaultHeight)); 72Size = new(Width, 1 + value * _lineHeight);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
229_dropDownButton.Size = ScaleHelper.IsScalingRequirementMet 276_dialogButton.Size = ScaleHelper.IsScalingRequirementMet 5170_dropDownButton.Size = new(SystemInformation.VerticalScrollBarArrowHeightForDpi(DeviceDpiInternal), RowHeight); 5174_dropDownButton.Size = new(SystemInformation.VerticalScrollBarArrowHeight, RowHeight); 5179DialogButton.Size = DropDownButton.Size;
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
1535Size = new Size(size.Width + 1, size.Height); 1536Size = size;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
883Size = size;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
640controlArray[i].Size = controlArray[i].PreferredSize;
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (1)
240Size = new Size(100, 15)
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (1)
182toolStrip.Size = settings.Size;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
62_upDownButtons.Size = new Size(_defaultButtonsWidth, PreferredHeight);
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
366_pageSites[n].GetPageControl().Size = _maxSize;
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
257_pictureBox.Size = new Size(_scaledPictureWidth * 3 / 4, _scaledPictureHeight * 3 / 4);
System\Windows\Forms\Form.cs (1)
1908set => base.Size = value;
System\Windows\Forms\Panels\SplitterPanel.cs (1)
224set => base.Size = value;
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (2)
40Size = new Size(240, 64), 47Size = ScaleHelper.ScaleToDpi(new Size(75, 23), ScaleHelper.InitialSystemDpi),
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
60Size = new Size(100, 100);
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
910_previewControl.Size = new Size(792, 610);
System.Windows.Forms.Design (55)
System\ComponentModel\Design\ByteViewer.cs (2)
442Size = new Size( 562Size = new Size(
System\ComponentModel\Design\DateTimeEditor.DateTimeUI.cs (3)
22Size = _monthCalendar.SingleMonthSize; 59Size = _monthCalendar.SingleMonthSize; 71Size = _monthCalendar.Size;
System\ComponentModel\Design\DesignerActionPanel.CheckBoxPropertyLine.cs (1)
40_checkBox.Size = checkBoxPreferredSize;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
175_button.Size = new Size(buttonHeight, buttonHeight);
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (1)
49_linkLabel.Size = linkLabelSize;
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (2)
66_titleLabel.Size = titleSize; 69_subtitleLabel.Size = subtitleSize;
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
111_label.Size = new Size(labelPreferredWidth, height);
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (1)
44_label.Size = labelSize;
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (3)
46CurrentPanel.Size = panelSize; 157Size = panel.Size; 172Size = ctrl.Size;
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
72Size = new Size(
System\Drawing\Design\ColorEditor.ColorUI.cs (2)
89Size = new Size(size.Width + 2 * CMARGIN, size.Height + 2 * CMARGIN + rectItemSize.Height); 90_tabControl.Size = Size;
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (10)
221Size = new Size(pixel_125, pixel_89); 223_topLeft.Size = new Size(pixel_24, pixel_25); 226_topCenter.Size = new Size(pixel_59, pixel_25); 229_topRight.Size = new Size(pixel_24, pixel_25); 232_middleLeft.Size = new Size(pixel_24, pixel_25); 235_middleCenter.Size = new Size(pixel_59, pixel_25); 238_middleRight.Size = new Size(pixel_24, pixel_25); 241_bottomLeft.Size = new Size(pixel_24, pixel_25); 244_bottomCenter.Size = new Size(pixel_59, pixel_25); 247_bottomRight.Size = new Size(pixel_24, pixel_25);
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (6)
87_container.Size = new Size(pixel_90, pixel_90); 91_control.Size = new Size(pixel_30, pixel_30); 95_right.Size = new Size(pixel_30 - XBORDER, pixel_10); 102_left.Size = new Size(pixel_30 - XBORDER, pixel_10); 109_top.Size = new Size(pixel_10, pixel_30 - YBORDER); 116_bottom.Size = new Size(pixel_10, pixel_30 - YBORDER);
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (1)
35Size = PreferredSize;
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (2)
47_sampleDataGridViewSelected.Size = new Drawing.Size(100, Font.Height + 9); 48_sampleDataGridView.Size = new Drawing.Size(100, Font.Height + 9);
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
28Size = _typesListBox.Size;
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
343Size = _initialSize; 455Size = new Size(
System\Windows\Forms\Design\DockEditor.DockUI.cs (7)
191_none.Size = ScaleHelper.ScaleToDpi(new Size(LogicalNoneWidth, LogicalNoneHeight), dpi); 195_container.Size = ScaleHelper.ScaleToDpi(new Size(LogicalContainerSize, LogicalContainerSize), dpi); 199_right.Size = scaledButtonSize; 200_left.Size = scaledButtonSize; 201_top.Size = scaledButtonSize; 202_bottom.Size = scaledButtonSize; 203_fill.Size = scaledButtonSize;
System\Windows\Forms\Design\FormatControl.cs (1)
409explanationLabel.Size = new Drawing.Size(formatGroupBox.Width - 10, 30);
System\Windows\Forms\Design\FormatStringDialog.cs (3)
177_formatControl1.Size = new Drawing.Size(376, 268); 184_cancelButton.Size = new Drawing.Size(87, 23); 194_okButton.Size = new Drawing.Size(87, 23);
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
239Control.Size = value;
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
52Size = new Drawing.Size(100, 52);
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
232Size = new Size(Size.Width + _resetButton.Size.Width - resetButtonSize.Width, Size.Height);
System\Windows\Forms\Design\ToolStripEditorManager.cs (1)
142private void UpdateSize() => Size = new Size(_wrappedEditor.Size.Width, _wrappedEditor.Size.Height);
WindowsFormsIntegration (2)
System\Windows\Integration\WindowsFormsHost.cs (2)
280Child.Size = targetSize; 790this.Size = SD.Size.Empty;
167 references to Size
PresentationUI (4)
MS\Internal\Documents\DialogDivider.cs (1)
53base.SetBoundsCore(Parent.Location.X, y, Parent.Size.Width, 1, specified);
MS\Internal\Documents\RMPublishingDialog.cs (3)
505button.Size, 914buttonAddUser.Size.Height, 915buttonAddUser.Size.Height);
System.Windows.Forms (119)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3245Size setExtent = Size;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
699Size size = _control.Size; 1716if (_control.Size.Equals(size))
System\Windows\Forms\BoundsSpecified.cs (1)
46/// Both <see cref="Control.Location"/> and <see cref="Control.Size"/>
System\Windows\Forms\Control.cs (3)
8817PrintToMetaFileRecursive(hDC, lParam, new Rectangle(Point.Empty, Size)); 8874using MetafileDCWrapper dcWrapper = new(hDC, Size); 10755/// Determines if the <see cref="Size"/> property needs to be persisted.
System\Windows\Forms\Controls\Buttons\Button.cs (2)
89return AutoSizeMode == AutoSizeMode.GrowAndShrink ? preferredSize : LayoutUtils.UnionSizes(preferredSize, Size); 107return AutoSizeMode == AutoSizeMode.GrowAndShrink ? paddedSize : LayoutUtils.UnionSizes(paddedSize, Size);
System\Windows\Forms\Controls\Labels\Label.cs (3)
912=> CreateTextFormatFlags(Size - GetBordersAndPadding()); 1355ControlPaint.PrintBorder(g, new Rectangle(Point.Empty, Size), BorderStyle, Border3DStyle.SunkenOuter); 1398Debug.Assert(!AutoSize || (AutoSize && !SelfSizing) || Size == PreferredSize,
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (3)
601Size oldSize = Size; 2325Rectangle rect = new(0, 0, Size.Width - 1, Size.Height - 1);
System\Windows\Forms\Controls\ListView\ListView.cs (2)
6960Rectangle rect = new(0, 0, Size.Width - 1, Size.Height - 1);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
819get => base.Size;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (3)
114_savedSize = Size; 840_savedSize = Size; 1164_savedSize = Size;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (23)
1919int gridBottom = gridTop + _gridView.Size.Height; 1941high += _commandsPane.Size.Height + 2; 2604_gridView.Size = Size; 2624int endSize = Size.Height; 2642helpRequestedHeight = _helpPane.Visible ? _helpPane.Size.Height : 0; 2643commandsRequestedHeight = _commandsPane.Visible ? _commandsPane.Size.Height : 0; 2649helpOptimalHeight = _helpPane.GetOptimalHeight(Size.Width - s_cyDivider); 2652helpRequestedHeight = _helpPane.Size.Height; 2666commandsOptimalHeight = _commandsPane.GetOptimalHeight(Size.Width - s_cyDivider); 2669commandsRequestedHeight = _commandsPane.Size.Height; 2705_helpPane.SetBounds(0, endSize - height, Size.Width, height); 2750_commandsPane.SetBounds(0, endSize - height, Size.Width, height); 2755_gridView.Size = new Size(Size.Width, endSize - _gridView.Location.Y); 2821Size size = _targetMove.Size; 2828Invalidate(new Rectangle(0, me.Y - s_cyDivider, Size.Width, me.Y + s_cyDivider)); 2831_gridView.Invalidate(new Rectangle(0, _gridView.Size.Height - s_cyDivider, Size.Width, s_cyDivider)); 2887int width = Size.Width; 2892int yLast = psheetLoc.Y + _gridView.Size.Height; 2900yLast += _commandsPane.Size.Height; 2909yLast += _helpPane.Size.Height; 2913pevent.Graphics.FillRectangle(backgroundBrush, new Rectangle(0, yLast, width, Size.Height - yLast)); 4091Size size = child.Size;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
81int height = _titleLabel.Size.Height;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (19)
1882Size sizeWindow = Size; 1893Size sizeScroll = ScrollBar.Size; 2029rect.Height = Size.Height - rect.Y - 1; 2144Invalidate(new Rectangle(left, 0, Size.Width - left, Size.Height)); 2233if ((Size.Width > doubleOffset) && (Size.Height > doubleOffset)) 2236DrawFocusRectangle(g, new Rectangle(_offset2Units, _offset2Units, Size.Width - doubleOffset, Size.Height - doubleOffset)); 2382Rectangle clearRect = new(1, 1, Size.Width - 2, Size.Height - 2); 3306Size sizeWindow = Size; 3385if (yPosition < Size.Height) 3388Rectangle clearRect = new(1, yPosition, Size.Width - 2, Size.Height - yPosition - 1); 3829int overhang = toolTip.Location.X + toolTip.Size.Width - SystemInformation.VirtualScreen.Width; 4365sizeBtn = button.Size; 4893if (topControl.Size.Equals(dialog.Size)) 5179DialogButton.Size = DropDownButton.Size;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
1534Size size = Size;
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (2)
2890Rectangle rect = new(0, 0, Size.Width - 1, Size.Height - 1);
System\Windows\Forms\Controls\TextBox\TextBox.cs (2)
807Rectangle rect = new(0, 0, Size.Width - 1, Size.Height - 1);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
212Size statusStripSize = Size;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
2379if (toolStrip.Size != maxSize)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (3)
150return _control.Size; 660bounds = LayoutUtils.Align(_control.Size, Bounds, ControlAlign); 811Size = ControlInternal.Size;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
881if (size != Size) 1049internal Size GetSuggestedSize() => AutoSize ? GetPreferredSize(Size.Empty) : Size;
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (2)
258Rectangle bounds = new(Point.Empty, e.ToolStrip.Size); 287Rectangle bounds = new(Point.Empty, e.ToolStrip.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.ToolStripLayoutData.cs (2)
22_size = toolStrip.Size; 26=> toolStrip is not null && toolStrip.Size == _size && toolStrip.LayoutStyle == _layoutStyle && toolStrip.AutoSize == _autoSize;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
287preferredSize = (!_wrappedToolStrip.AutoSize) ? _wrappedToolStrip.Size : _wrappedToolStrip.GetPreferredSize(constrainingSize);
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (1)
53Rectangle bounds = new(Point.Empty, e.ToolStrip.Size);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (10)
416Rectangle bounds = new(Point.Empty, toolStrip.Size); 845Rectangle bounds = new(Point.Empty, toolStrip.Size); 1133g.FillRectangle(brush, new Rectangle(Point.Empty, control.Size)); 1140Rectangle gradientBounds = new(Point.Empty, parent.Size); 1149g.FillRectangle(b, new Rectangle(Point.Empty, control.Size)); 1154Rectangle gradientBounds = new(Point.Empty, control.Size); 1173Rectangle bounds = new(Point.Empty, e.ToolStrip.Size); 1182Rectangle bounds = new(Point.Empty, e.ToolStrip.Size); 1194Rectangle bounds = new(Point.Empty, toolStripDropDown.Size); 1337Rectangle bounds = new(Point.Empty, e.ToolStrip.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (1)
16: this(g, toolStrip, new Rectangle(Point.Empty, toolStrip.OrThrowIfNull().Size), Color.Empty)
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.SettingsStub.cs (1)
42Size = toolStrip.Size;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (4)
784int maxTickCount = (Orientation == Orientation.Horizontal ? Size.Width : Size.Height) / 2; 1144int size = Orientation == Orientation.Horizontal ? Size.Width : Size.Height;
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
3138Rectangle rect = new(0, 0, Size.Width - 1, Size.Height - 1);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
63int half_height = Size.Height / 2;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
781Size extent = Size;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
351Size pageSize = page.Size;
System\Windows\Forms\Form.cs (1)
1907get => base.Size;
System\Windows\Forms\Layout\CommonProperties.cs (2)
264/// The main purpose of this function is to remember what size someone specified in the <see cref="Control.Size"/>, 267/// to <see cref="DockStyle.Fill"/>, then <see cref="DockStyle.None"/>. When filled, the <see cref="Control.Size"/>
System\Windows\Forms\Layout\Containers\SplitContainer.cs (8)
1659Panel2.Size = Size; 1664Panel1.Size = Size; 1715Panel2.Size = Size; 1720Panel1.Size = Size; 2202Panel2.Size = Size; 2207Panel1.Size = Size; 2243Panel2.Size = Size; 2248Panel1.Size = Size;
System\Windows\Forms\Panels\Panel.cs (1)
230ControlPaint.PrintBorder(g, new Rectangle(Point.Empty, Size), BorderStyle, Border3DStyle.Sunken);
System\Windows\Forms\Panels\SplitterPanel.cs (1)
223get => Collapsed ? Size.Empty : base.Size;
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
482Size controlPhysicalSize = PixelsToPhysical(Size, _screenDPI);
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
357_scrollMargin.Height += current.Size.Height; 360_scrollMargin.Width += current.Size.Width;
System.Windows.Forms.Design (41)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
460DoLayout(Size, false);
System\ComponentModel\Design\DesignerActionUI.cs (1)
657Point pt = DesignerActionPanel.ComputePreferredDesktopLocation(rectGlyph, _designerActionHost.Size, out DockStyle edgeToDock);
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (9)
36if (CurrentPanel.Size == panelSize) 153Size = panel.Size 157Size = panel.Size; 169if (Size.Width != ctrl.Size.Width || Size.Height != ctrl.Size.Height) 172Size = ctrl.Size; 173_panel?.Size = ctrl.Size;
System\Drawing\Design\ColorEditor.ColorUI.cs (3)
86Size size = _pal.Size; 90_tabControl.Size = Size; 316_pal.Size.Height - rectItemSize.Height + 2 * CMARGIN);
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
302return new Rectangle(loc, c.Size);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
689Rectangle currentBounds = new(_behaviorService.ControlToAdornerWindow(targetControl), targetControl.Size); 1087Rectangle dragBounds = new(_behaviorService.ControlToAdornerWindow(targetControl), targetControl.Size);
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
119Rectangle translatedBounds = new(loc, parent.Size);
System\Windows\Forms\Design\CommandSet.cs (2)
3245Size size = c.Size; 3311if (!child.Size.Equals(parentSize))
System\Windows\Forms\Design\ComponentTray.cs (2)
1848if (newLoc.X + c.Size.Width > Size.Width)
System\Windows\Forms\Design\ControlCommandSet.cs (1)
640Size primaryControlsize = primaryControl.Size;
System\Windows\Forms\Design\ControlDesigner.cs (2)
2130if (Control is not null && Control.Size != Control.ClientSize && Control.Parent is { } parent) 2133Rectangle controlScreenBounds = new(parent.PointToScreen(Control.Location), Control.Size);
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
28Size = _typesListBox.Size;
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
241_initialSize = _treeViewCtrl.Size;
System\Windows\Forms\Design\DocumentDesigner.cs (1)
471Rectangle translatedBounds = new(loc, ((Control)Component).Size);
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
232get => Control.Size;
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
1042Rectangle translatedBounds = new(loc, ((Control)Component).Size);
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
605sz = control.Size;
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (3)
232Size = new Size(Size.Width + _resetButton.Size.Width - resetButtonSize.Width, Size.Height);
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1352Rectangle translatedBounds = new(loc, ((Control)Component).Size);
System\Windows\Forms\Design\ToolStripEditorManager.cs (2)
142private void UpdateSize() => Size = new Size(_wrappedEditor.Size.Width, _wrappedEditor.Size.Height);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1151if (_toolStripAdornerWindowService is not null && (dropDown.Width < _dropDownSizeToInvalidate.Width || dropDown.Size.Height < _dropDownSizeToInvalidate.Height))
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
543nameof(ToolStripPanel.Size),
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1259Rectangle translatedBounds = new(loc, _miniToolStrip.Size); 1823Rectangle bounds = new(Point.Empty, e.ToolStrip.Size);
WindowsFormsIntegration (3)
System\Windows\Integration\ElementHost.cs (1)
998OnPropertyChanged("Size", this.Size);
System\Windows\Integration\WindowsFormsHost.cs (2)
277if ((Child.Size != targetSize) && ((finalSize != _priorConstraint) || scaled)) 282Size returnSize = Convert.ToSystemWindowsSize(Child.Size, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY);