239 writes to Size
PresentationUI (135)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (50)
133
this.tableLayoutPanel3.
Size
= new System.Drawing.Size(362, 437);
143
this._tabControl.
Size
= new System.Drawing.Size(436, 535);
155
this._summaryTab.
Size
= new System.Drawing.Size(324, 355);
205
this.tableLayoutPanel1.
Size
= new System.Drawing.Size(324, 297);
213
this._language.
Size
= new System.Drawing.Size(335, 13);
223
this._title.
Size
= new System.Drawing.Size(335, 13);
232
this._titleLabel.
Size
= new System.Drawing.Size(27, 13);
240
this._identifier.
Size
= new System.Drawing.Size(335, 13);
249
this._versionLabel.
Size
= new System.Drawing.Size(42, 13);
257
this._authorLabel.
Size
= new System.Drawing.Size(38, 13);
265
this._statusLabel.
Size
= new System.Drawing.Size(37, 13);
273
this._contentLabel.
Size
= new System.Drawing.Size(44, 13);
281
this._languageLabel.
Size
= new System.Drawing.Size(55, 13);
289
this._subjectLabel.
Size
= new System.Drawing.Size(43, 13);
297
this._version.
Size
= new System.Drawing.Size(335, 13);
306
this._categoryLabel.
Size
= new System.Drawing.Size(49, 13);
314
this._category.
Size
= new System.Drawing.Size(335, 13);
323
this._status.
Size
= new System.Drawing.Size(335, 13);
332
this._content.
Size
= new System.Drawing.Size(335, 13);
341
this._keywordsLabel.
Size
= new System.Drawing.Size(53, 13);
350
this._author.
Size
= new System.Drawing.Size(335, 13);
359
this._subject.
Size
= new System.Drawing.Size(335, 13);
369
this._description.
Size
= new System.Drawing.Size(335, 101);
380
this._keywords.
Size
= new System.Drawing.Size(335, 28);
391
this._identifierLabel.
Size
= new System.Drawing.Size(47, 13);
400
this._descriptionLabel.
Size
= new System.Drawing.Size(60, 13);
426
this._infoTab.
Size
= new System.Drawing.Size(348, 379);
445
this.tableLayoutPanel2.
Size
= new System.Drawing.Size(314, 355);
477
this._size.
Size
= new System.Drawing.Size(270, 28);
485
this._iconPictureBox.
Size
= new System.Drawing.Size(40, 40);
495
this._filename.
Size
= new System.Drawing.Size(340, 13);
505
this._documentType.
Size
= new System.Drawing.Size(340, 13);
515
this._sizeLabel.
Size
= new System.Drawing.Size(40, 13);
526
this._documentDetailBox.
Size
= new System.Drawing.Size(305, 127);
563
this._documentPrintedDate.
Size
= new System.Drawing.Size(282, 13);
572
this._documentModifiedDate.
Size
= new System.Drawing.Size(282, 13);
581
this._documentCreatedDate.
Size
= new System.Drawing.Size(282, 13);
590
this._revision.
Size
= new System.Drawing.Size(282, 13);
599
this._documentPrintedLabel.
Size
= new System.Drawing.Size(43, 13);
607
this._documentModifiedLabel.
Size
= new System.Drawing.Size(50, 13);
615
this._documentCreatedLabel.
Size
= new System.Drawing.Size(47, 13);
623
this._revisionLabel.
Size
= new System.Drawing.Size(51, 13);
631
this._lastSavedLabel.
Size
= new System.Drawing.Size(79, 13);
639
this._lastSaved.
Size
= new System.Drawing.Size(282, 13);
679
this._fileModifiedDate.
Size
= new System.Drawing.Size(282, 13);
688
this._fileAccessedDate.
Size
= new System.Drawing.Size(282, 13);
697
this._fileCreatedLabel.
Size
= new System.Drawing.Size(47, 13);
705
this._fileModifiedLabel.
Size
= new System.Drawing.Size(50, 13);
713
this._fileCreatedDate.
Size
= new System.Drawing.Size(282, 13);
722
this._fileAccessedLabel.
Size
= new System.Drawing.Size(57, 13);
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (3)
69
this._mainDialogTableLayoutPanel.
Size
= new System.Drawing.Size(398, 157);
144
this._credListBox.
Size
= new System.Drawing.Size(299, 82);
154
this._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)
69
this._flowLayoutPanel1.
Size
= new System.Drawing.Size(548, 43);
101
this._flowLayoutPanel2.
Size
= new System.Drawing.Size(548, 326);
110
this._label1.
Size
= new System.Drawing.Size(322, 13);
122
this._flowLayoutPanel3.
Size
= new System.Drawing.Size(528, 38);
131
this._pictureBox1.
Size
= new System.Drawing.Size(16, 16);
142
this._label2.
Size
= new System.Drawing.Size(490, 26);
164
this._tableLayoutPanel1.
Size
= new System.Drawing.Size(488, 234);
173
this._networkRadioButton.
Size
= new System.Drawing.Size(126, 17);
184
this._pictureBox2.
Size
= new System.Drawing.Size(100, 50);
193
this._passportRadioButton.
Size
= new System.Drawing.Size(132, 17);
203
this._pictureBox4.
Size
= new System.Drawing.Size(100, 50);
MS\Internal\Documents\RMEnrollmentPage3.Designer.cs (6)
60
this.tableLayoutPanel1.
Size
= new System.Drawing.Size(419, 218);
70
this.flowLayoutPanel2.
Size
= new System.Drawing.Size(413, 27);
79
this.label2.
Size
= new System.Drawing.Size(245, 13);
95
this.tableLayoutPanel2.
Size
= new System.Drawing.Size(413, 135);
105
this.label3.
Size
= new System.Drawing.Size(115, 13);
114
this.progressBar1.
Size
= new System.Drawing.Size(100, 14);
MS\Internal\Documents\RMPublishingDialog.cs (3)
920
buttonPeoplePicker.
Size
= imageButtonSize;
921
buttonEveryone.
Size
= imageButtonSize;
922
buttonRemoveUser.
Size
= imageButtonSize;
MS\Internal\Documents\RMPublishingDialog.Designer.cs (12)
93
this.radioButtonUnrestricted.
Size
= new System.Drawing.Size(85, 17);
102
this.radioButtonPermissions.
Size
= new System.Drawing.Size(85, 17);
111
this.radioButtonTemplate.
Size
= new System.Drawing.Size(85, 17);
124
this.groupBoxMainContent.
Size
= new System.Drawing.Size(650, 270);
165
this.textBoxUnrestrictedText.
Size
= new System.Drawing.Size(625, 230);
181
this.comboBoxTemplates.
Size
= new System.Drawing.Size(350, 21);
242
this.rightsTable.
Size
= new System.Drawing.Size(635, 150);
268
this.textBoxPermissionsContact.
Size
= new System.Drawing.Size(612, 20);
307
this.flowLayoutPanelActions.
Size
= new System.Drawing.Size(541, 29);
316
this.buttonCancel.
Size
= new System.Drawing.Size(75, 23);
323
this.buttonSave.
Size
= new System.Drawing.Size(75, 23);
330
this.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)
425
Size
= new Size(width, height);
9199
Size
= DefaultSize;
10233
Size
= SizeFromClientSizeInternal(new(x, y));
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
3765
editingControl.
Size
= new Size(editingControlBounds.Width, editingControlBounds.Height);
3851
DataGridView.EditingPanel.
Size
= new Size(wEditingPanel, hEditingPanel);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
801
DataGridView.EditingControl.
Size
= new Size(editingControlBounds.Width, editingControlBounds.Height);
System\Windows\Forms\Controls\Labels\Label.cs (1)
838
Size
= preferredSize;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
602
Size
= new Size(oldSize.Width + 1, oldSize.Height);
603
Size
= oldSize;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
820
set => base.
Size
= value;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (2)
961
Size
= PreferredSize;
965
Size
= _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)
130
Size
= new(208, 43),
138
Size
= new(64, 64),
151
Size
= new(100, 23),
163
Size
= new(75, 23),
176
Size
= new(75, 23),
190
Size
= new(290, 29),
213
Size
= new(284, 73),
230
Size
= new(290, 108),
255
Size
= new(273, 100),
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (2)
54
Size
= new(LogicalToDeviceUnits(LogicalDefaultWidth), LogicalToDeviceUnits(LogicalDefaultHeight));
72
Size
= 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);
5179
DialogButton.
Size
= DropDownButton.Size;
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
1535
Size
= new Size(size.Width + 1, size.Height);
1536
Size
= size;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
883
Size
= size;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
640
controlArray[i].
Size
= controlArray[i].PreferredSize;
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (1)
240
Size
= new Size(100, 15)
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (1)
182
toolStrip.
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)
1908
set => base.
Size
= value;
System\Windows\Forms\Panels\SplitterPanel.cs (1)
224
set => base.
Size
= value;
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (2)
40
Size
= new Size(240, 64),
47
Size
= ScaleHelper.ScaleToDpi(new Size(75, 23), ScaleHelper.InitialSystemDpi),
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
60
Size
= 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)
442
Size
= new Size(
562
Size
= new Size(
System\ComponentModel\Design\DateTimeEditor.DateTimeUI.cs (3)
22
Size
= _monthCalendar.SingleMonthSize;
59
Size
= _monthCalendar.SingleMonthSize;
71
Size
= _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)
46
CurrentPanel.
Size
= panelSize;
157
Size
= panel.Size;
172
Size
= ctrl.Size;
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
72
Size
= new Size(
System\Drawing\Design\ColorEditor.ColorUI.cs (2)
89
Size
= new Size(size.Width + 2 * CMARGIN, size.Height + 2 * CMARGIN + rectItemSize.Height);
90
_tabControl.
Size
= Size;
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (10)
221
Size
= 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)
35
Size
= 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)
28
Size
= _typesListBox.Size;
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
343
Size
= _initialSize;
455
Size
= 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)
409
explanationLabel.
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)
239
Control.
Size
= value;
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
52
Size
= new Drawing.Size(100, 52);
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
232
Size
= new Size(Size.Width + _resetButton.Size.Width - resetButtonSize.Width, Size.Height);
System\Windows\Forms\Design\ToolStripEditorManager.cs (1)
142
private void UpdateSize() =>
Size
= new Size(_wrappedEditor.Size.Width, _wrappedEditor.Size.Height);
WindowsFormsIntegration (2)
System\Windows\Integration\WindowsFormsHost.cs (2)
280
Child.
Size
= targetSize;
790
this.
Size
= SD.Size.Empty;
167 references to Size
PresentationUI (4)
MS\Internal\Documents\DialogDivider.cs (1)
53
base.SetBoundsCore(Parent.Location.X, y, Parent.
Size
.Width, 1, specified);
MS\Internal\Documents\RMPublishingDialog.cs (3)
505
button.
Size
,
914
buttonAddUser.
Size
.Height,
915
buttonAddUser.
Size
.Height);
System.Windows.Forms (119)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3245
Size setExtent =
Size
;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
699
Size size = _control.
Size
;
1716
if (_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)
8817
PrintToMetaFileRecursive(hDC, lParam, new Rectangle(Point.Empty,
Size
));
8874
using 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)
89
return AutoSizeMode == AutoSizeMode.GrowAndShrink ? preferredSize : LayoutUtils.UnionSizes(preferredSize,
Size
);
107
return AutoSizeMode == AutoSizeMode.GrowAndShrink ? paddedSize : LayoutUtils.UnionSizes(paddedSize,
Size
);
System\Windows\Forms\Controls\Labels\Label.cs (3)
912
=> CreateTextFormatFlags(
Size
- GetBordersAndPadding());
1355
ControlPaint.PrintBorder(g, new Rectangle(Point.Empty,
Size
), BorderStyle, Border3DStyle.SunkenOuter);
1398
Debug.Assert(!AutoSize || (AutoSize && !SelfSizing) ||
Size
== PreferredSize,
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (3)
601
Size oldSize =
Size
;
2325
Rectangle rect = new(0, 0,
Size
.Width - 1,
Size
.Height - 1);
System\Windows\Forms\Controls\ListView\ListView.cs (2)
6960
Rectangle rect = new(0, 0,
Size
.Width - 1,
Size
.Height - 1);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
819
get => 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)
1919
int gridBottom = gridTop + _gridView.
Size
.Height;
1941
high += _commandsPane.
Size
.Height + 2;
2604
_gridView.Size =
Size
;
2624
int endSize =
Size
.Height;
2642
helpRequestedHeight = _helpPane.Visible ? _helpPane.
Size
.Height : 0;
2643
commandsRequestedHeight = _commandsPane.Visible ? _commandsPane.
Size
.Height : 0;
2649
helpOptimalHeight = _helpPane.GetOptimalHeight(
Size
.Width - s_cyDivider);
2652
helpRequestedHeight = _helpPane.
Size
.Height;
2666
commandsOptimalHeight = _commandsPane.GetOptimalHeight(
Size
.Width - s_cyDivider);
2669
commandsRequestedHeight = _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);
2821
Size size = _targetMove.
Size
;
2828
Invalidate(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));
2887
int width =
Size
.Width;
2892
int yLast = psheetLoc.Y + _gridView.
Size
.Height;
2900
yLast += _commandsPane.
Size
.Height;
2909
yLast += _helpPane.
Size
.Height;
2913
pevent.Graphics.FillRectangle(backgroundBrush, new Rectangle(0, yLast, width,
Size
.Height - yLast));
4091
Size size = child.
Size
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
81
int height = _titleLabel.
Size
.Height;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (19)
1882
Size sizeWindow =
Size
;
1893
Size sizeScroll = ScrollBar.
Size
;
2029
rect.Height =
Size
.Height - rect.Y - 1;
2144
Invalidate(new Rectangle(left, 0,
Size
.Width - left,
Size
.Height));
2233
if ((
Size
.Width > doubleOffset) && (
Size
.Height > doubleOffset))
2236
DrawFocusRectangle(g, new Rectangle(_offset2Units, _offset2Units,
Size
.Width - doubleOffset,
Size
.Height - doubleOffset));
2382
Rectangle clearRect = new(1, 1,
Size
.Width - 2,
Size
.Height - 2);
3306
Size sizeWindow =
Size
;
3385
if (yPosition <
Size
.Height)
3388
Rectangle clearRect = new(1, yPosition,
Size
.Width - 2,
Size
.Height - yPosition - 1);
3829
int overhang = toolTip.Location.X + toolTip.
Size
.Width - SystemInformation.VirtualScreen.Width;
4365
sizeBtn = button.
Size
;
4893
if (topControl.
Size
.Equals(dialog.Size))
5179
DialogButton.Size = DropDownButton.
Size
;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
1534
Size size =
Size
;
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (2)
2890
Rectangle rect = new(0, 0,
Size
.Width - 1,
Size
.Height - 1);
System\Windows\Forms\Controls\TextBox\TextBox.cs (2)
807
Rectangle rect = new(0, 0,
Size
.Width - 1,
Size
.Height - 1);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
212
Size statusStripSize =
Size
;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
2379
if (toolStrip.
Size
!= maxSize)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (3)
150
return _control.
Size
;
660
bounds = LayoutUtils.Align(_control.
Size
, Bounds, ControlAlign);
811
Size = ControlInternal.
Size
;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
881
if (size !=
Size
)
1049
internal Size GetSuggestedSize() => AutoSize ? GetPreferredSize(Size.Empty) :
Size
;
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (2)
258
Rectangle bounds = new(Point.Empty, e.ToolStrip.
Size
);
287
Rectangle 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)
287
preferredSize = (!_wrappedToolStrip.AutoSize) ? _wrappedToolStrip.
Size
: _wrappedToolStrip.GetPreferredSize(constrainingSize);
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (1)
53
Rectangle bounds = new(Point.Empty, e.ToolStrip.
Size
);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (10)
416
Rectangle bounds = new(Point.Empty, toolStrip.
Size
);
845
Rectangle bounds = new(Point.Empty, toolStrip.
Size
);
1133
g.FillRectangle(brush, new Rectangle(Point.Empty, control.
Size
));
1140
Rectangle gradientBounds = new(Point.Empty, parent.
Size
);
1149
g.FillRectangle(b, new Rectangle(Point.Empty, control.
Size
));
1154
Rectangle gradientBounds = new(Point.Empty, control.
Size
);
1173
Rectangle bounds = new(Point.Empty, e.ToolStrip.
Size
);
1182
Rectangle bounds = new(Point.Empty, e.ToolStrip.
Size
);
1194
Rectangle bounds = new(Point.Empty, toolStripDropDown.
Size
);
1337
Rectangle 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)
42
Size = toolStrip.
Size
;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (4)
784
int maxTickCount = (Orientation == Orientation.Horizontal ?
Size
.Width :
Size
.Height) / 2;
1144
int size = Orientation == Orientation.Horizontal ?
Size
.Width :
Size
.Height;
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
3138
Rectangle rect = new(0, 0,
Size
.Width - 1,
Size
.Height - 1);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
63
int half_height =
Size
.Height / 2;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
781
Size extent =
Size
;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
351
Size pageSize = page.
Size
;
System\Windows\Forms\Form.cs (1)
1907
get => 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)
1659
Panel2.Size =
Size
;
1664
Panel1.Size =
Size
;
1715
Panel2.Size =
Size
;
1720
Panel1.Size =
Size
;
2202
Panel2.Size =
Size
;
2207
Panel1.Size =
Size
;
2243
Panel2.Size =
Size
;
2248
Panel1.Size =
Size
;
System\Windows\Forms\Panels\Panel.cs (1)
230
ControlPaint.PrintBorder(g, new Rectangle(Point.Empty,
Size
), BorderStyle, Border3DStyle.Sunken);
System\Windows\Forms\Panels\SplitterPanel.cs (1)
223
get => Collapsed ? Size.Empty : base.
Size
;
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
482
Size 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)
460
DoLayout(
Size
, false);
System\ComponentModel\Design\DesignerActionUI.cs (1)
657
Point pt = DesignerActionPanel.ComputePreferredDesktopLocation(rectGlyph, _designerActionHost.
Size
, out DockStyle edgeToDock);
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (9)
36
if (CurrentPanel.
Size
== panelSize)
153
Size = panel.
Size
157
Size = panel.
Size
;
169
if (
Size
.Width != ctrl.
Size
.Width ||
Size
.Height != ctrl.
Size
.Height)
172
Size = ctrl.
Size
;
173
_panel?.Size = ctrl.
Size
;
System\Drawing\Design\ColorEditor.ColorUI.cs (3)
86
Size size = _pal.
Size
;
90
_tabControl.Size =
Size
;
316
_pal.
Size
.Height - rectItemSize.Height + 2 * CMARGIN);
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
302
return new Rectangle(loc, c.
Size
);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
689
Rectangle currentBounds = new(_behaviorService.ControlToAdornerWindow(targetControl), targetControl.
Size
);
1087
Rectangle dragBounds = new(_behaviorService.ControlToAdornerWindow(targetControl), targetControl.
Size
);
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
119
Rectangle translatedBounds = new(loc, parent.
Size
);
System\Windows\Forms\Design\CommandSet.cs (2)
3245
Size size = c.
Size
;
3311
if (!child.
Size
.Equals(parentSize))
System\Windows\Forms\Design\ComponentTray.cs (2)
1848
if (newLoc.X + c.
Size
.Width >
Size
.Width)
System\Windows\Forms\Design\ControlCommandSet.cs (1)
640
Size primaryControlsize = primaryControl.
Size
;
System\Windows\Forms\Design\ControlDesigner.cs (2)
2130
if (Control is not null && Control.
Size
!= Control.ClientSize && Control.Parent is { } parent)
2133
Rectangle controlScreenBounds = new(parent.PointToScreen(Control.Location), Control.
Size
);
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
28
Size = _typesListBox.
Size
;
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
241
_initialSize = _treeViewCtrl.
Size
;
System\Windows\Forms\Design\DocumentDesigner.cs (1)
471
Rectangle translatedBounds = new(loc, ((Control)Component).
Size
);
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
232
get => Control.
Size
;
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
1042
Rectangle translatedBounds = new(loc, ((Control)Component).
Size
);
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
605
sz = control.
Size
;
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (3)
232
Size = new Size(
Size
.Width + _resetButton.
Size
.Width - resetButtonSize.Width,
Size
.Height);
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1352
Rectangle translatedBounds = new(loc, ((Control)Component).
Size
);
System\Windows\Forms\Design\ToolStripEditorManager.cs (2)
142
private void UpdateSize() => Size = new Size(_wrappedEditor.
Size
.Width, _wrappedEditor.
Size
.Height);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1151
if (_toolStripAdornerWindowService is not null && (dropDown.Width < _dropDownSizeToInvalidate.Width || dropDown.
Size
.Height < _dropDownSizeToInvalidate.Height))
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
543
nameof(ToolStripPanel.
Size
),
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1259
Rectangle translatedBounds = new(loc, _miniToolStrip.
Size
);
1823
Rectangle bounds = new(Point.Empty, e.ToolStrip.
Size
);
WindowsFormsIntegration (3)
System\Windows\Integration\ElementHost.cs (1)
998
OnPropertyChanged("Size", this.
Size
);
System\Windows\Integration\WindowsFormsHost.cs (2)
277
if ((Child.
Size
!= targetSize) && ((finalSize != _priorConstraint) || scaled))
282
Size returnSize = Convert.ToSystemWindowsSize(Child.
Size
, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY);