726 instantiations of Size
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyValueDialogHost.cs (1)
108
_dialogWindow.MinimumSize = new System.Drawing.
Size
(575, 400); // Magic min-size numbers from Dan
System.Drawing (22)
commonui\System\Drawing\BufferedGraphicsContext.cs (2)
396
bufferSize = new
Size
(optWidth, optHeight);
406
virtualSize = new
Size
(width, height);
commonui\System\Drawing\Design\ToolboxItem.cs (1)
759
itemBitmap = new Bitmap(itemBitmap, new
Size
(iconWidth, iconHeight));
commonui\System\Drawing\Icon.cs (2)
333
iconSize = new
Size
(bmp.bmWidth, bmp.bmHeight);
337
iconSize = new
Size
(bmp.bmWidth, bmp.bmHeight / 2);
commonui\System\Drawing\Image.cs (1)
821
return new
Size
(Width, Height);
commonui\System\Drawing\Point.cs (1)
137
return new
Size
(p.X, p.Y);
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (1)
69
return new
Size
(
commonui\System\Drawing\Rectangle.cs (1)
115
return new
Size
(Width, Height);
commonui\System\Drawing\Size.cs (6)
39
public static readonly Size Empty = new
Size
();
184
return new
Size
(sz1.Width + sz2.Width, sz1.Height + sz2.Height);
193
return new
Size
((int)Math.Ceiling(value.Width), (int)Math.Ceiling(value.Height));
202
return new
Size
(sz1.Width - sz2.Width, sz1.Height - sz2.Height);
211
return new
Size
((int)value.Width, (int)value.Height);
220
return new
Size
((int)Math.Round(value.Width), (int)Math.Round(value.Height));
commonui\System\Drawing\SizeConverter.cs (2)
88
return new
Size
(values[0], values[1]);
166
return new
Size
((int)width,
commonui\System\Drawing\ToolboxBitmapAttribute.cs (2)
72
private static readonly Size largeSize = new
Size
(32, 32);
78
private static readonly Size smallSize = new
Size
(16, 16);
misc\DpiHelper.cs (1)
558
return new
Size
(LogicalToDeviceUnits(logicalSize.Width, deviceDpi),
misc\GDI\NativeMethods.cs (2)
198
return new
Size
(this.right - this.left, this.bottom - this.top);
440
return new System.Drawing.
Size
(this.cx, this.cy);
System.Web.DataVisualization (14)
Common\General\ChartGraphics.cs (2)
2681
return new
Size
( (int)Math.Ceiling(size.Width), (int)Math.Ceiling(size.Height));
2697
return new
Size
( (int)Math.Ceiling(size.Width), (int)Math.Ceiling(size.Height));
Common\General\Legend.cs (8)
888
Size maxSize = new
Size
((int)maxSizeAbs.Width, (int)maxSizeAbs.Height);
4382
size = new
Size
(1, 1);
4386
size = new
Size
(1, 1);
4390
size = new
Size
(1, 1);
4394
size = new
Size
(2, 2);
4398
size = new
Size
(3, 3);
4402
size = new
Size
(1, 1);
4406
size = new
Size
(2, 2);
Common\General\LegendColumns.cs (2)
146
private Size _seriesSymbolSize = new
Size
(200, 70);
847
private Size _seriesSymbolSize = new
Size
(200, 70);
Common\Utilities\ImageLoader.cs (1)
412
Bitmap scaledImage = new Bitmap(image, new
Size
((int)(image.Width * graphics.DpiX / image.HorizontalResolution),
Common\Utilities\XmlSerializer.cs (1)
3136
objValue = new
Size
(reader.ReadInt32(), reader.ReadInt32());
System.Web.Entity.Design (46)
System\Data\WebControls\Design\EntityDataSourceConfigureObjectContextPanel.cs (9)
46
_databaseConnectionGroupLabel.Size = new
Size
(500, 13);
50
_databaseConnectionGroupBox.Size = new
Size
(503, 124);
52
_radioButtonsGroupContainer.Size = new
Size
(503, 124);
57
_namedConnectionRadioButton.Size = new
Size
(116, 17);
61
_namedConnectionComboBox.Size = new
Size
(454, 21);
65
_connectionStringRadioButton.Size = new
Size
(109, 17);
69
_connectionStringTextBox.Size = new
Size
(454, 20);
73
_containerNameLabel.Size = new
Size
(117, 13);
77
_containerNameComboBox.Size = new
Size
(502, 21);
System\Data\WebControls\Design\EntityDataSourceConfigureObjectContextPanel.designer.cs (1)
134
this.Size = new System.Drawing.
Size
(528, 319);
System\Data\WebControls\Design\EntityDataSourceDataSelectionPanel.cs (10)
43
_entitySetLabel.Size = new
Size
(80, 13);
47
_entitySetComboBox.Size = new
Size
(502, 21);
51
_entityTypeFilterLabel.Size = new
Size
(118, 13);
55
_entityTypeFilterComboBox.Size = new System.Drawing.
Size
(502, 21);
59
_selectLabel.Size = new
Size
(40, 13);
64
_selectAdvancedTextBox.Size = new
Size
(502, 137);
73
_insertUpdateDeletePanel.Size = new
Size
(502, 69);
77
_enableInsertCheckBox.Size = new
Size
(141, 17);
81
_enableUpdateCheckBox.Size = new
Size
(149, 17);
85
_enableDeleteCheckBox.Size = new
Size
(145, 17);
System\Data\WebControls\Design\EntityDataSourceDataSelectionPanel.designer.cs (1)
157
this.Size = new System.Drawing.
Size
(528, 319);
System\Data\WebControls\Design\EntityDataSourceStatementEditorForm.cs (10)
251
_checkBoxPanel.Size = new
Size
(456, 32);
253
_autoGenerateCheckBox.Size = new
Size
(456, 30);
257
_statementPanel.Size = new
Size
(456, 124);
261
_statementLabel.Size = new
Size
(200, 16);
265
_statementTextBox.Size = new
Size
(456, 78);
269
_parameterEditorUserControl.Size = new
Size
(460, 216);
273
_okButton.Size = new
Size
(75, 23);
275
_cancelButton.Size = new
Size
(75, 23);
278
ClientSize = new
Size
(480, top + 12);
279
MinimumSize = new
Size
(480 + 8, top + 12 + 27);
System\Data\WebControls\Design\Util\DesignerForm.cs (1)
88
AutoScaleBaseSize = new System.Drawing.
Size
(5, 14);
System\Data\WebControls\Design\Util\TaskFormBase.cs (6)
93
this._taskPanel.Size = new System.Drawing.
Size
(528, 319);
103
this._bottomDividerLabel.Size = new System.Drawing.
Size
(572, 1);
115
this._headerPanel.Size = new System.Drawing.
Size
(572, 63);
122
this._glyphPictureBox.Size = new System.Drawing.
Size
(65, 63);
132
this._captionLabel.Size = new System.Drawing.
Size
(487, 47);
137
this.ClientSize = new System.Drawing.
Size
(530, 423);
System\Data\WebControls\Design\Util\WizardForm.cs (8)
127
this._wizardButtonsTableLayoutPanel.Size = new System.Drawing.
Size
(317, 20);
137
this._previousButton.MinimumSize = new System.Drawing.
Size
(75, 23);
147
this._dummyLabel1.Size = new System.Drawing.
Size
(3, 0);
156
this._nextButton.MinimumSize = new System.Drawing.
Size
(75, 23);
166
this._dummyLabel2.Size = new System.Drawing.
Size
(7, 0);
176
this._finishButton.MinimumSize = new System.Drawing.
Size
(75, 23);
186
this._dummyLabel3.Size = new System.Drawing.
Size
(7, 0);
196
this._cancelButton.MinimumSize = new System.Drawing.
Size
(75, 23);
System.Web.Mobile (72)
UI\MobileControls\Design\Adapters\MSHTMLHostUtil.cs (1)
38
_tridentControl.Size = new
Size
(CONTROL_WIDTH, CONTROL_HEIGHT);
UI\MobileControls\Design\AppliedDeviceFiltersDialog.cs (10)
161
this._appliedFiltersList.Size = new System.Drawing.
Size
(275, 208);
166
this._btnEditFilters.Size = new System.Drawing.
Size
(75, 23);
189
this._pnlMain.Size = new System.Drawing.
Size
(276, 357);
195
this._tbArgument.Size = new System.Drawing.
Size
(275, 20);
202
this._lblArgument.Size = new System.Drawing.
Size
(275, 16);
213
this._lblAvailableFilters.Size = new System.Drawing.
Size
(198, 16);
220
this._cbAvailableFilters.Size = new System.Drawing.
Size
(195, 21);
227
this._btnApplyFilter.Size = new System.Drawing.
Size
(195, 23);
232
this.AutoScaleBaseSize = new System.Drawing.
Size
(5, 13);
234
this.ClientSize = new System.Drawing.
Size
(285, 373);
UI\MobileControls\Design\DeviceFilterEditorDialog.cs (21)
236
this._txtType.Size = new System.Drawing.
Size
(211, 20);
239
this._lblHeader.Size = new System.Drawing.
Size
(434, 16);
246
this._pnlHeader.Size = new System.Drawing.
Size
(434, 16);
253
this._pnlMain.Size = new System.Drawing.
Size
(434, 253);
256
this._filterList.Size = new System.Drawing.
Size
(198, 224);
259
this._rbCompare.Size = new System.Drawing.
Size
(211, 17);
261
this._lblCompare.Size = new System.Drawing.
Size
(211, 16);
263
this._dialogButtons.Size = new System.Drawing.
Size
(237, 23);
265
this._lblType.Size = new System.Drawing.
Size
(211, 16);
267
this._txtMethod.Size = new System.Drawing.
Size
(211, 20);
269
this._txtArgument.Size = new System.Drawing.
Size
(211, 20);
277
this._pnlRight.Size = new System.Drawing.
Size
(219, 226);
279
this._lblMethod.Size = new System.Drawing.
Size
(211, 16);
281
this._glAttributes.Size = new System.Drawing.
Size
(216, 16);
283
this._rbDelegate.Size = new System.Drawing.
Size
(211, 17);
284
this._glType.Size = new System.Drawing.
Size
(216, 16);
290
this._pnlCompare.Size = new System.Drawing.
Size
(211, 136);
293
this._cbCompare.Size = new System.Drawing.
Size
(211, 21);
296
this._lblArgument.Size = new System.Drawing.
Size
(211, 16);
302
this._pnlDelegate.Size = new System.Drawing.
Size
(211, 136);
304
this.ClientSize = new System.Drawing.
Size
(448, 289);
UI\MobileControls\Design\ListGeneralPage.cs (1)
192
this.Size = new
Size
(382, 270);
UI\MobileControls\Design\ListItemsPage.cs (1)
93
this.Size = new
Size
(382, 220);
UI\MobileControls\Design\MobileContainerDesigner.cs (1)
59
_defaultSize = new
Size
(300, 100);
UI\MobileControls\Design\ObjectListCommandsPage.cs (1)
73
this.Size = new
Size
(402, 300);
UI\MobileControls\Design\ObjectListFieldsPage.cs (1)
75
this.Size = new
Size
(402, 300);
UI\MobileControls\Design\ObjectListGeneralPage.cs (1)
132
this.Size = new
Size
(402, 300);
UI\MobileControls\Design\PanelDesigner.cs (1)
40
_defaultSize = new
Size
(300, 45);
UI\MobileControls\Design\PropertyOverridesDialog.cs (7)
147
this._cbChoices.Size = new System.Drawing.
Size
(195, 21);
151
this._btnEditFilters.Size = new System.Drawing.
Size
(75, 23);
163
this._pnlMain.Size = new System.Drawing.
Size
(276, 313);
170
this._pgProperties.Size = new System.Drawing.
Size
(275, 220);
177
this._lblProperties.Size = new System.Drawing.
Size
(275, 16);
178
this._lblAppliedFilters.Size = new System.Drawing.
Size
(275, 16);
181
this.ClientSize = new System.Drawing.
Size
(285, 325);
UI\MobileControls\Design\StylesEditorDialog.cs (3)
303
_btnOK.Size = new System.Drawing.
Size
(75, 23);
310
_btnCancel.Size = new System.Drawing.
Size
(75, 23);
322
this.ClientSize = new
Size
(444, 401);
UI\MobileControls\Design\StyleSheetDesigner.cs (5)
1294
this.LblStyles.Size = new System.Drawing.
Size
(160, 16);
1299
this.CbStyles.Size = new System.Drawing.
Size
(160, 21);
1302
this.BtnEdit.Size = new System.Drawing.
Size
(75, 23);
1304
this.LblHeader.Size = new System.Drawing.
Size
(240, 16);
1309
this.Size = new System.Drawing.
Size
(240, 70);
UI\MobileControls\Design\TemplatingOptionsDialog.cs (8)
123
_lblChoices.Size = new System.Drawing.
Size
(276, 16);
127
_cmbChoices.Size = new System.Drawing.
Size
(195, 21);
135
_btnEditChoices.Size = new System.Drawing.
Size
(75, 23);
140
_lblSchemas.Size = new System.Drawing.
Size
(276, 16);
144
_cmbSchemas.Size = new System.Drawing.
Size
(276, 21);
151
_btnClose.Size = new System.Drawing.
Size
(75, 23);
164
this._pnlMain.Size = new System.Drawing.
Size
(276, 128);
168
this.ClientSize = new
Size
(285, 139);
UI\MobileControls\Design\Util\DefaultDialogButtons.cs (2)
63
CmdOK.Size = new System.Drawing.
Size
(75, 23);
66
CmdCancel.Size = new System.Drawing.
Size
(75, 23);
UI\MobileControls\Design\Util\EditableTreeList.cs (7)
64
LblTitle.Size = new System.Drawing.
Size
(210, 16);
68
TvList.Size = new System.Drawing.
Size
(178, 148);
86
BtnUp.Size = new System.Drawing.
Size
(28, 27);
93
BtnDown.Size = new System.Drawing.
Size
(28, 27);
100
BtnRemove.Size = new System.Drawing.
Size
(28, 27);
107
BtnAdd.Size = new System.Drawing.
Size
(178, 25);
114
this.Size = new System.Drawing.
Size
(210, 196);
UI\MobileControls\Design\Util\GenericUI.cs (1)
54
dialog.AutoScaleBaseSize = new
Size
(5, 14);
System.Windows.Forms (368)
misc\DpiHelper.cs (1)
558
return new
Size
(LogicalToDeviceUnits(logicalSize.Width, deviceDpi),
misc\GDI\DeviceContext2.cs (1)
146
return new
Size
(GetDeviceCapabilities(DeviceCapabilities.LogicalPixelsX), GetDeviceCapabilities(DeviceCapabilities.LogicalPixelsY));
misc\GDI\NativeMethods.cs (2)
198
return new
Size
(this.right - this.left, this.bottom - this.top);
440
return new System.Drawing.
Size
(this.cx, this.cy);
misc\GDI\WindowsGraphics2.cs (2)
40
public static readonly Size MaxSize = new
Size
(Int32.MaxValue, Int32.MaxValue);
400
return new
Size
(size.cx, size.cy);
winforms\Managed\System\WinForms\AxHost.cs (2)
479
return new
Size
(75, 23);
1533
return new
Size
(sz.cx, sz.cy);
winforms\Managed\System\WinForms\Button.cs (4)
53
private Size systemSize = new
Size
(InvalidDimensionValue, InvalidDimensionValue);
284
systemSize = new
Size
(InvalidDimensionValue, InvalidDimensionValue);
318
systemSize = new
Size
(InvalidDimensionValue, InvalidDimensionValue);
335
systemSize = new
Size
(InvalidDimensionValue, InvalidDimensionValue);
winforms\Managed\System\WinForms\ButtonBase.cs (1)
191
return new
Size
(75, 23);
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (6)
974
return new
Size
(
1001
return new
Size
(
1039
Size bordersAndPadding = new
Size
(linearBorderAndPadding, linearBorderAndPadding);
1045
Size checkSize = checkSizeLinear > 0 ? new
Size
(checkSizeLinear + 1, checkSizeLinear) : Size.Empty;
1049
Size textImageInsetSize = new
Size
(textImageInset * 2, textImageInset * 2);
1322
size = new
Size
(size.Width + 1, size.Height + 1);
winforms\Managed\System\WinForms\CheckBox.cs (1)
346
return new
Size
(104, 24);
winforms\Managed\System\WinForms\CheckBoxRenderer.cs (1)
241
return new
Size
(13, 13);
winforms\Managed\System\WinForms\ComboBox.cs (6)
460
return new
Size
(121, PreferredHeight);
823
base.MaximumSize = new
Size
(value.Width, 0);
830
base.MinimumSize = new
Size
(value.Width, 0);
936
Size textSize = TextRenderer.MeasureText(LayoutUtils.TestString, this.Font, new
Size
(Int16.MaxValue, (int)(FontHeight * 1.25)), TextFormatFlags.SingleLine);
946
Size textSize = TextRenderer.MeasureText(LayoutUtils.TestString, this.Font, new
Size
(Int16.MaxValue, (int)(FontHeight * 1.25)), TextFormatFlags.SingleLine);
5934
outerBorder = new Rectangle(clientRect.Location, new
Size
(clientRect.Width - 1, clientRect.Height - 1));
winforms\Managed\System\WinForms\Control.cs (6)
588
this.Size = new
Size
( width, height );
1613
return new
Size
(clientWidth, clientHeight);
3893
return new
Size
(width, height);
6461
newBounds.Size = LayoutUtils.IntersectSizes(new
Size
(proposedWidth,proposedHeight), maximumSize);
18252
Size size = new
Size
(HiMetricToPixel(pSizel.cx, pSizel.cy));
18263
Size adjusted = new
Size
(size.Width, size.Height);
winforms\Managed\System\WinForms\Cursor.cs (3)
331
cursorSize = new
Size
(
599
iconSize = new
Size
(bmp.bmWidth, bmp.bmHeight);
603
iconSize = new
Size
(bmp.bmWidth, bmp.bmHeight / 2);
winforms\Managed\System\WinForms\DataGrid.cs (2)
375
Size = new
Size
(130, 80);
601
return new
Size
(130, 80);
winforms\Managed\System\WinForms\DataGridBoolColumn.cs (1)
218
return new
Size
(idealCheckSize+2, idealCheckSize+2);
winforms\Managed\System\WinForms\DataGridCaption.cs (1)
467
Size textSize = new
Size
((int) g.MeasureString(text, this.Font).Width + 2, this.Font.Height + 2);
winforms\Managed\System\WinForms\DataGridView.cs (1)
2673
return new
Size
(240, 150);
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (5)
330
return new
Size
(-1, -1);
371
preferredSize = new
Size
(DataGridViewCell.MeasureTextWidth(graphics,
380
preferredSize = new
Size
(DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.Font, flags).Width,
390
preferredSize = new
Size
(0,
399
preferredSize = new
Size
(0,
winforms\Managed\System\WinForms\DataGridViewCell.cs (14)
1545
Bitmap scaledBitmap = DpiHelper.CreateResizedBitmap(b, new
Size
(iconsWidth, iconsHeight));
2576
return GetPreferredSize(g, dataGridViewCellStyle, rowIndex, new
Size
(width, 0)).Height;
2584
return new
Size
(-1, -1);
2596
return new
Size
(-1, -1);
2633
return GetPreferredSize(g, dataGridViewCellStyle, rowIndex, new
Size
(0, height)).Width;
2642
return new
Size
(-1, -1);
2650
return new
Size
(this.owningColumn.Thickness, this.owningRow.GetHeight(rowIndex));
2867
Size requiredSize = TextRenderer.MeasureText(text, font, new
Size
(maxWidth, System.Int32.MaxValue), flags);
2900
return new
Size
(0, 0);
2915
textSize = TextRenderer.MeasureText(text, font, new
Size
((int)maxWidth, System.Int32.MaxValue), flags);
2950
return TextRenderer.MeasureText(text, font, new
Size
(System.Int32.MaxValue, System.Int32.MaxValue), flags);
2978
textSize = TextRenderer.MeasureText(text, font, new
Size
((int)maxWidth, maxHeight), flags);
4512
this.DataGridView.EditingControl.Size = new
Size
(editingControlBounds.Width, editingControlBounds.Height);
4599
this.DataGridView.EditingPanel.Size = new
Size
(wEditingPanel, hEditingPanel);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (8)
752
return new
Size
(-1, -1);
787
preferredSize = new
Size
(checkBoxSize.Width + borderAndPaddingWidths + 2 * DATAGRIDVIEWCHECKBOXCELL_margin, 0);
792
preferredSize = new
Size
(0, checkBoxSize.Height + borderAndPaddingHeights + 2 * DATAGRIDVIEWCHECKBOXCELL_margin);
797
preferredSize = new
Size
(checkBoxSize.Width + borderAndPaddingWidths + 2 * DATAGRIDVIEWCHECKBOXCELL_margin,
822
preferredSize = new
Size
(checkBoxSize + borderAndPaddingWidths, 0);
827
preferredSize = new
Size
(0, checkBoxSize + borderAndPaddingHeights);
832
preferredSize = new
Size
(checkBoxSize + borderAndPaddingWidths, checkBoxSize + borderAndPaddingHeights);
1294
checkBoxSize = new
Size
(SystemInformation.Border3DSize.Width * 2 + 9, SystemInformation.Border3DSize.Width * 2 + 9);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (10)
523
return new
Size
(-1, -1);
551
preferredSize = new
Size
(0, 0);
556
preferredSize = new
Size
(DataGridViewCell.MeasureTextWidth(graphics,
565
preferredSize = new
Size
(DataGridViewCell.MeasureTextSize(graphics,
590
preferredSize = new
Size
(0, 0);
596
glyphSize = new
Size
(sortGlyphWidth + 2 * sortGlyphHorizontalMargin,
616
preferredSize = new
Size
(0,
629
preferredSize = new
Size
(0,
641
preferredSize = new
Size
(0,
667
preferredSize = new
Size
(0, 0);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (2)
755
Size adjustedSize = new
Size
(size.Width - borderAndPaddingWidths.X - borderAndPaddingWidths.Width,
1361
return new
Size
(-1, -1);
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (4)
445
return new
Size
(-1, -1);
454
return new
Size
(this.OwningColumn.Thickness, this.DataGridView.ColumnHeadersHeight);
467
return new
Size
(this.DataGridView.RowHeadersWidth, this.OwningRow.GetHeight(rowIndex));
476
return new
Size
(this.DataGridView.RowHeadersWidth, this.DataGridView.ColumnHeadersHeight);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (10)
466
return new
Size
(-1, -1);
501
preferredSize = new
Size
(0, Math.Min(img.Height, Decimal.ToInt32((decimal)img.Height * imgWidthAllowed / img.Width)));
513
preferredSize = new
Size
(0, Math.Min(ico.Height, Decimal.ToInt32((decimal)ico.Height * icoWidthAllowed / ico.Width)));
519
preferredSize = new
Size
(0, 1);
536
preferredSize = new
Size
(Math.Min(img.Width, Decimal.ToInt32((decimal)img.Width * imgHeightAllowed / img.Height)), 0);
548
preferredSize = new
Size
(Math.Min(ico.Width, Decimal.ToInt32((decimal)ico.Width * icoHeightAllowed / ico.Height)), 0);
554
preferredSize = new
Size
(1, 0);
561
preferredSize = new
Size
(img.Width, img.Height);
565
preferredSize = new
Size
(ico.Width, ico.Height);
569
preferredSize = new
Size
(1, 1);
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (5)
653
return new
Size
(-1, -1);
684
preferredSize = new
Size
(DataGridViewCell.MeasureTextWidth(graphics,
694
preferredSize = new
Size
(0,
719
preferredSize = new
Size
(DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.Font, flags).Width,
725
preferredSize = new
Size
(0,
winforms\Managed\System\WinForms\DataGridViewMethods.cs (5)
9101
return new
Size
(preferredWidth, preferredHeight);
19354
new
Size
(-step, ClientSize.Height)));
19365
new
Size
(step, ClientSize.Height)));
19372
new
Size
(-step, ClientSize.Width)));
19379
new
Size
(ClientSize.Width, ClientSize.Height - (pt.Y - rect.Bottom) - step)));
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (3)
195
Size desiredSize = new
Size
(iconsWidth, iconsHeight);
649
return new
Size
(-1, -1);
978
Size maxBounds = new
Size
(valBounds.Width - iconsWidth - 2 * DATAGRIDVIEWROWHEADERCELL_iconMarginWidth, valBounds.Height);
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (6)
428
return new
Size
(-1, -1);
454
preferredSize = new
Size
(DataGridViewCell.MeasureTextWidth(graphics,
464
preferredSize = new
Size
(0,
489
preferredSize = new
Size
(DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.Font, flags).Width,
495
preferredSize = new
Size
(0,
825
this.DataGridView.EditingControl.Size = new
Size
(editingControlBounds.Width, editingControlBounds.Height);
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (1)
175
return new
Size
(-1, -1);
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (5)
216
return new
Size
(preferredWidth, 0);
264
return new
Size
(0, Math.Max(minHeightIcon, minHeightContent) + borderAndPaddingHeights);
285
preferredSize = new
Size
(0, 1);
323
Size sizeRequired = TextRenderer.MeasureText(text, font, new
Size
(System.Int32.MaxValue, System.Int32.MaxValue), flags);
330
Size sizeCell = new
Size
(cellBounds.Width, cellBounds.Height);
winforms\Managed\System\WinForms\DateTimePicker.cs (2)
531
return new
Size
(200, PreferredHeight);
1194
return new
Size
(width, height);
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (4)
228
selectorImageList.ImageSize = new
Size
(16, 16);
284
Size size = new
Size
(bounds.Width + 3 * (BUTTON_PAD + xFrame) + selectorWidth,
338
AutoScaleBaseSize = new
Size
(5, 14);
383
maxSize = new
Size
(3 * (BUTTON_WIDTH + BUTTON_PAD), 24 * pageTypes.Length);
winforms\Managed\System\WinForms\DomainUpDown.cs (1)
610
return new
Size
(width, height) + Padding.Size;
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
1038
mirrordc.ViewportExtent = new
Size
(-(mirrordcExtent.Width), mirrordcExtent.Height);
winforms\Managed\System\WinForms\Form.cs (9)
613
return new
Size
((int)Math.Round(real.Width), (int)Math.Round(real.Height));
1150
return new
Size
(300, 300);
1577
return new
Size
(Properties.GetInteger(PropMaxTrackSizeWidth), Properties.GetInteger(PropMaxTrackSizeHeight));
1608
Size = new
Size
(Math.Min(size.Width, value.Width), Math.Min(size.Height, value.Height));
1735
return new
Size
(Properties.GetInteger(PropMinTrackSizeWidth), Properties.GetInteger(PropMinTrackSizeHeight));
1772
Size = new
Size
(Math.Max(size.Width, value.Width), Math.Max(size.Height, value.Height));
3372
Size newVar = new
Size
((int)Math.Round(newVarF.Width), (int)Math.Round(newVarF.Height));
3595
return new
Size
(result.right - result.left, result.bottom - result.top);
5189
Size desiredSize = new
Size
();
winforms\Managed\System\WinForms\GroupBox.cs (3)
187
return new
Size
(200, 100);
602
textSize = wg.MeasureText(Text, wfont, new
Size
(textRectangle.Width , int.MaxValue), flags );
694
Size totalPadding = borderSize + new
Size
(0,fontHeight) + Padding.Size;
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (2)
171
Size measuredBounds = TextRenderer.MeasureText(g, groupBoxText, font, new
Size
(textBounds.Width, textBounds.Height), flags);
264
Size measuredBounds = TextRenderer.MeasureText(g, groupBoxText, font, new
Size
(textBounds.Width, textBounds.Height), flags);
winforms\Managed\System\WinForms\HScrollBar.cs (1)
57
return new
Size
(80, SystemInformation.HorizontalScrollBarHeight);
winforms\Managed\System\WinForms\HtmlWindow.cs (1)
206
return new
Size
(bodyElement.GetOffsetWidth(), bodyElement.GetOffsetHeight());
winforms\Managed\System\WinForms\ImageList.cs (3)
48
private static Size DefaultImageSize = new
Size
(16, 16);
276
imageSize = new
Size
(value.Width, value.Height);
315
imageSize = new
Size
(x,y);
winforms\Managed\System\WinForms\Label.cs (4)
399
return new
Size
(100, AutoSize ? PreferredHeight : 23);
1046
Size preferredSize = (AutoSize) ? PreferredSize : new
Size
(saveWidth, saveHeight);
1258
bordersAndPadding += new
Size
(2, 2);
1538
Size preferredSize = GetPreferredSize(new
Size
(clientRect.Width, clientRect.Height));
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (6)
47
internal static readonly Size DefaultMinimumSize = new
Size
(0, 0);
48
internal static readonly Size DefaultMaximumSize = new
Size
(0, 0);
206
Debug.Assert(value != GetMaximumSize(element, new
Size
(-7109, -7107)),
221
Debug.Assert(GetMaximumSize(element, new
Size
(-7109, -7107)) == value, "Error detected setting MaximumSize.");
227
Debug.Assert(value != GetMinimumSize(element, new
Size
(-7109, -7107)),
241
Debug.Assert(GetMinimumSize(element, new
Size
(-7109, -7107)) == value, "Error detected setting MinimumSize.");
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (4)
349
Size neededSize = new
Size
(
390
Size newSize = xGetDockedSize(element, remainingSize, /* constraints = */ new
Size
(remainingSize.Width, 1), measureOnly);
405
Size newSize = xGetDockedSize(element, remainingSize, /* constraints = */ new
Size
(1, remainingSize.Height), measureOnly);
467
preferredSize = new
Size
(-7103, -7105); // PreferredSize is garbage unless measureOnly is specified
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (3)
186
Size elementConstraints = new
Size
(Int32.MaxValue, rowBounds.Height - elementProxy.Margin.Size.Height);
195
elementConstraints = LayoutUtils.UnionSizes(new
Size
(1, 1), elementConstraints);
220
Rectangle cellBounds = new Rectangle(location, new
Size
(requiredSize.Width, rowBounds.Height));
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (6)
23
public static readonly Size MaxSize = new
Size
(Int32.MaxValue, Int32.MaxValue);
24
public static readonly Size InvalidSize = new
Size
(Int32.MinValue, Int32.MinValue);
57
Size textSize = TextRenderer.MeasureText(obj.ToString(), font, new
Size
(Int16.MaxValue, Int16.MaxValue), TextFormatFlags.SingleLine);
197
return new
Size
(
203
return new
Size
(
310
Size stretchedSize = new
Size
(
winforms\Managed\System\WinForms\Layout\TableLayout.cs (7)
193
Size containerSize = container.DisplayRectangle.Size - new
Size
(cellBorderWidth, cellBorderWidth);
208
CommonProperties.SetLayoutBounds(containerInfo.Container, new
Size
(SumStrips(containerInfo.Columns, 0, containerInfo.Columns.Length),
252
Size containerSize = container.DisplayRectangle.Size - new
Size
(cellBorderWidth * 2, cellBorderWidth * 2);
266
Size cellBorderSize = new
Size
(cellBorderWidth, cellBorderWidth);
731
minWidth = GetElementSize(element, new
Size
(0, constrainingHeight)).Width;
735
minWidth = GetElementSize(element, new
Size
(1, 0)).Width;
846
int minHeight = GetElementSize(element, new
Size
(currentWidth-margin.Horizontal, 0)).Height + margin.Vertical;
winforms\Managed\System\WinForms\LinkLabel.cs (2)
678
Size clientSize = new
Size
(clientRectWithPadding.Width, clientRectWithPadding.Height);
1145
Size preferredSize = GetPreferredSize(new
Size
(clientRect.Width, clientRect.Height));
winforms\Managed\System\WinForms\ListBox.cs (4)
415
return new
Size
(120, 96);
640
Size = new
Size
(oldSize.Width + 1, oldSize.Height);
778
width = SizeFromClientSize(new
Size
(MaxItemWidth, height)).Width;
785
return new
Size
(width, height) + Padding.Size;
winforms\Managed\System\WinForms\ListView.cs (2)
786
return new
Size
(121, 97);
1643
return new
Size
(tileViewInfo.sizeTile.cx, tileViewInfo.sizeTile.cy);
winforms\Managed\System\WinForms\MenuStrip.cs (2)
90
DpiHelper.LogicalToDeviceUnits(new
Size
(200, 24), DeviceDpi) :
91
new
Size
(200, 24);
winforms\Managed\System\WinForms\MonthCalendar.cs (5)
107
private static readonly Size DefaultSingleMonthSize = new
Size
(176, 153);
128
private Size dimensions = new
Size
(1, 1);
991
return new
Size
(rect.right, rect.bottom);
1851
CalendarDimensions = new
Size
(1,1);
2180
return !dimensions.Equals(new
Size
(1, 1));
winforms\Managed\System\WinForms\NativeMethods.cs (1)
3103
return new System.Drawing.
Size
(this.right - this.left, this.bottom - this.top);
winforms\Managed\System\WinForms\NumericUpDown.cs (1)
873
return new
Size
(width, height) + Padding.Size;
winforms\Managed\System\WinForms\Padding.cs (1)
152
return new
Size
(Horizontal, Vertical);
winforms\Managed\System\WinForms\Panel.cs (1)
187
return new
Size
(200, 100);
winforms\Managed\System\WinForms\PictureBox.cs (1)
273
return new
Size
(100, 50);
winforms\Managed\System\WinForms\Printing\PrintControllerWithStatusDialog.cs (4)
271
label1.Size = new
Size
(240, 64);
276
button1.Size = new
Size
(75, 23);
295
this.AutoScaleDimensions = new
Size
(6, 13);
300
Size clientSize = new
Size
(256, 122);
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (9)
37
Size virtualSize = new
Size
(1,1);
72
Size = new
Size
(100, 100);
433
Size controlPhysicalSize = new
Size
(PixelsToPhysical(new Point(Size), screendpi));
441
imageSize = new
Size
((int) (zoom*pageSize.Width), (int) (zoom*pageSize.Height));
444
SetVirtualSizeNoInvalidate(new
Size
(PhysicalToPixels(new Point(virtualX, virtualY), screendpi)));
573
Size controlPhysicalSize = new
Size
(PixelsToPhysical(new Point(Size), screendpi));
610
imageSize = new
Size
((int) (zoom*pageSize.Width), (int) (zoom*pageSize.Height));
679
return new
Size
(PhysicalToPixels(physicalSize.Width, dpi.X),
693
return new
Size
(PixelsToPhysical(pixels.Width, dpi.X),
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (4)
73
base.AutoScaleBaseSize = new
Size
(5, 13);
676
get { return new
Size
(375, 250); }
1504
previewControl.Size = new
Size
(792, 610);
1569
this.ClientSize = new
Size
(400, 300);
winforms\Managed\System\WinForms\ProgressBar.cs (1)
254
return new
Size
(100, 23);
winforms\Managed\System\WinForms\PropertyGrid.cs (5)
125
private static readonly Size DEFAULT_LARGE_BUTTON_SIZE = new
Size
(32, 32);
126
private static readonly Size DEFAULT_NORMAL_BUTTON_SIZE = new
Size
(16, 16);
702
return new
Size
(130, 130);
2067
bitmap = new Bitmap(bitmap, new
Size
(16,16));
3128
gridView.Size = new
Size
(Size.Width, endSize - gridView.Location.Y);
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (2)
60
Size = new
Size
(CXDEF, cydef);
74
Size = new
Size
(Width, 1 + value * lineHeight);
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (11)
175
this.lblMessage.Size = new System.Drawing.
Size
(208, 43);
182
this.pictureBox.Size = new System.Drawing.
Size
(64, 64);
194
this.detailsBtn.Size = new System.Drawing.
Size
(100, 23);
207
this.overarchingTableLayoutPanel.MinimumSize = new System.Drawing.
Size
(279, 50);
213
this.overarchingTableLayoutPanel.Size = new System.Drawing.
Size
(290, 108);
233
this.buttonTableLayoutPanel.Size = new System.Drawing.
Size
(290, 29);
242
this.okBtn.Size = new System.Drawing.
Size
(75, 23);
253
this.cancelBtn.Size = new System.Drawing.
Size
(75, 23);
271
this.pictureLabelTableLayoutPanel.Size = new System.Drawing.
Size
(284, 73);
281
this.details.Size = new System.Drawing.
Size
(273, 100);
293
this.ClientSize = new System.Drawing.
Size
(299, 113);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (15)
291
btnDropDown.Size = DpiHelper.EnableDpiChangedHighDpiImprovements ? new
Size
(SystemInformation.VerticalScrollBarArrowHeightForDpi(this.deviceDpi), RowHeight) : new
Size
(SystemInformation.VerticalScrollBarArrowHeight, RowHeight);
315
btnDialog.Size = DpiHelper.EnableDpiChangedHighDpiImprovements ? new
Size
(SystemInformation.VerticalScrollBarArrowHeightForDpi(this.deviceDpi), RowHeight) : new
Size
(SystemInformation.VerticalScrollBarArrowHeight, RowHeight);
325
Size desiredSize = new
Size
(iconsWidth, iconsHeight);
2223
Size sizeWindow = new
Size
(rect.Width,rect.Height);
4426
Size sizeBtn = DpiHelper.EnableDpiChangedHighDpiImprovements? new
Size
(SystemInformation.VerticalScrollBarArrowHeightForDpi(this.deviceDpi), RowHeight):
4427
new
Size
(SystemInformation.VerticalScrollBarArrowHeight, RowHeight);
5187
btnDropDown.Size = new
Size
(SystemInformation.VerticalScrollBarArrowHeightForDpi(this.deviceDpi), RowHeight);
5190
btnDropDown.Size = new
Size
(SystemInformation.VerticalScrollBarArrowHeight, RowHeight);
5476
MinDropDownSize = new
Size
(SystemInformation.VerticalScrollBarWidth * 4, SystemInformation.HorizontalScrollBarHeight * 4);
5702
Size newSize = new
Size
(2 * DropDownHolderBorder + currentControl.Width, 2 * DropDownHolderBorder + currentControl.Height);
5998
Size sz = new
Size
(2 * DropDownHolderBorder + ctl.Width, 2 * DropDownHolderBorder + ctl.Height);
6049
this.Size = new
Size
(this.Size.Width, this.PreferredSize.Height);
6125
MinDropDownSize = new
Size
(SystemInformation.GetVerticalScrollBarWidthForDpi(newDpi) * 4, scrollbarHeight * 4);
winforms\Managed\System\WinForms\RadioButton.cs (1)
294
return new
Size
(104, 24);
winforms\Managed\System\WinForms\RadioButtonRenderer.cs (1)
228
return new
Size
(13, 13);
winforms\Managed\System\WinForms\RichTextBox.cs (1)
463
return new
Size
(100, 96);
winforms\Managed\System\WinForms\ScrollableControl.cs (3)
1057
requestedScrollMargin = new
Size
(x, y);
1204
return !AutoScrollMargin.Equals(new
Size
(0,0));
1214
return !AutoScrollMinSize.Equals(new
Size
(0,0));
winforms\Managed\System\WinForms\SplitContainer.cs (15)
458
return new
Size
(150, 100);
1756
panel1.Size = new
Size
(0, panel1.Height);
1757
panel2.Size = new
Size
(0, panel2.Height);
1760
panel1.Size = new
Size
(panel1.Width, 0);
1761
panel2.Size = new
Size
(panel2.Width, 0);
1771
panel1.Size = new
Size
(panelSize, Height);
1772
panel2.Size = new
Size
(Math.Max(Width - panelSize - SplitterWidthInternal, Panel2MinSize), Height);
1775
panel2.Size = new
Size
(panelSize, Height);
1786
panel2.Size = new
Size
(Math.Max(Width - splitterDistance - SplitterWidthInternal, Panel2MinSize), Height);
1817
panel1.Size = new
Size
(Width, panelSize);
1819
panel2.Size = new
Size
(Width, Math.Max(Height - panel2Start, Panel2MinSize));
1824
panel2.Size = new
Size
(Width, panelSize);
1840
panel2.Size = new
Size
(Width,Math.Max(Height - panel2Start, Panel2MinSize));
2266
panel2.Size = new
Size
(Width - splitterDistance - SplitterWidthInternal, Height);
2309
panel2.Size = new
Size
(Width, Height - panel2Start);
winforms\Managed\System\WinForms\Splitter.cs (1)
113
return new
Size
(defaultWidth, defaultWidth);
winforms\Managed\System\WinForms\StatusBar.cs (1)
250
return new
Size
(100, 22);
winforms\Managed\System\WinForms\StatusStrip.cs (1)
82
return new
Size
(200, 22);
winforms\Managed\System\WinForms\SystemInformation.cs (25)
163
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXSCREEN),
241
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXBORDER),
255
return new
Size
(UnsafeNativeMethods.TryGetSystemMetricsForDpi(NativeMethods.SM_CXBORDER, (uint)dpi),
271
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXFIXEDFRAME),
335
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXICON),
348
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXCURSOR),
564
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXMIN),
578
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXSIZE),
591
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXFRAME),
605
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXMINTRACK),
620
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXDOUBLECLK),
648
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXICONSPACING),
727
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXEDGE),
740
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXMINSPACING),
754
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXSMICON),
781
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXSMSIZE),
795
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXMENUSIZE),
834
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXMINIMIZED),
848
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXMAXTRACK),
862
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXMAXIMIZED),
917
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXDRAG),
945
return new
Size
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXMENUCHECK),
1386
return new
Size
(width, height);
1918
return new
Size
(data.iSmCaptionWidth, data.iSmCaptionHeight);
1942
return new
Size
(data.iMenuWidth, data.iMenuHeight);
winforms\Managed\System\WinForms\TabControl.cs (2)
287
return new
Size
(200, 100);
1636
Size = new
Size
(size.Width + 1, size.Height);
winforms\Managed\System\WinForms\TextBoxBase.cs (2)
572
return new
Size
(100, PreferredHeight);
967
bordersAndPadding += new
Size
(0, 3);
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (3)
235
Size textSize = new
Size
(scaledMaxWidth - scaledPaddingWidth, int.MaxValue);
278
ClientSize = new
Size
(width, buttonTop + scaledButtonTopPadding);
282
pictureBox.Size = new
Size
(scaledPictureWidth*3/4, scaledPictureHeight*3/4);
winforms\Managed\System\WinForms\ToolBar.cs (6)
382
return new
Size
(NativeMethods.Util.LOWORD(result), NativeMethods.Util.HIWORD(result));
386
return new
Size
(39, 36); // Default button size
389
return new
Size
(23, 22); // Default button size
480
return new
Size
(100, 22);
664
return new
Size
(0, 0);
1310
Size = new
Size
(size.Width + 1, size.Height);
winforms\Managed\System\WinForms\ToolStrip.cs (7)
51
private static Size onePixel = new
Size
(1,1);
199
imageScalingSize = new
Size
(iconWidth, iconHeight);
654
DpiHelper.LogicalToDeviceUnits(new
Size
(100, 25), DeviceDpi) :
655
new
Size
(100, 25);
3927
imageScalingSize = new
Size
(iconWidth, iconHeight);
4138
CommonProperties.SetMinimumSize(this, new
Size
(-1,-1));
4568
Size invalidDefaultSize = new
Size
(-1,-1);
winforms\Managed\System\WinForms\ToolStripComboBox.cs (1)
208
return new
Size
(100,22);
winforms\Managed\System\WinForms\ToolStripContainer.cs (1)
276
return new
Size
(150, 175);
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (1)
233
private static readonly Size dropDownArrowSizeUnscaled = new
Size
(5, 3);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (2)
59
private static readonly Size DefaultImageSize = new
Size
(16, 16);
393
maxArrowSize = new
Size
(scaledArrowSize, maxItemSize.Height);
winforms\Managed\System\WinForms\ToolStripGrip.cs (2)
108
preferredSize = new
Size
(this.ParentInternal.Width, gripThickness);
111
preferredSize = new
Size
(gripThickness, this.ParentInternal.Height);
winforms\Managed\System\WinForms\ToolStripItem.cs (3)
733
DpiHelper.LogicalToDeviceUnits(new
Size
(23, 23), DeviceDpi) :
734
new
Size
(23, 23);
4603
private readonly static Size INVALID_SIZE = new
Size
(Int32.MinValue,Int32.MinValue);
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (3)
63
private static readonly Size checkMarkBitmapSize = new
Size
(16, 16);
198
DpiHelper.LogicalToDeviceUnits(new
Size
(32, 19), DeviceDpi) :
199
new
Size
(32, 19);
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (1)
344
return new
Size
(minAllowedWidth,minAllowedWidth);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (2)
27
private static readonly Size onePix = new
Size
(1, 1);
749
Rectangle bottomLeftParentHorizontalPixels = new Rectangle(bottomLeft, new
Size
(2, 1));
winforms\Managed\System\WinForms\ToolStripProgressBar.cs (2)
93
return new
Size
(100,15);
274
progressBar.Size = new
Size
(100,15);
winforms\Managed\System\WinForms\ToolStripSeparator.cs (5)
93
return new
Size
(WINBAR_SEPARATORTHICKNESS, WINBAR_SEPARATORTHICKNESS);
415
return new
Size
(WINBAR_SEPARATORTHICKNESS, WINBAR_SEPARATORTHICKNESS);
420
return new
Size
(parent.Width - (parent.Padding.Horizontal - dropDownMenu.ImageMargin.Width), WINBAR_SEPARATORTHICKNESS);
429
return new
Size
(WINBAR_SEPARATORTHICKNESS, constrainingSize.Height);
432
return new
Size
(constrainingSize.Width, WINBAR_SEPARATORTHICKNESS);
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (2)
372
dropDownButtonBounds = new Rectangle(Point.Empty, new
Size
(Math.Min(this.Width, DropDownButtonWidth), this.Height));
378
splitButtonButtonBounds = new Rectangle(Point.Empty, new
Size
(splitButtonButtonWidth, splitButtonButtonHeight));
winforms\Managed\System\WinForms\ToolStripStatusLabel.cs (1)
219
return base.GetPreferredSize(constrainingSize) + new
Size
(4, 4);
winforms\Managed\System\WinForms\ToolStripTextBox.cs (2)
106
return new
Size
(100,22);
168
return new
Size
(bounds.Width, TextBox.PreferredHeight);
winforms\Managed\System\WinForms\ToolTip.cs (1)
1787
bubbleSize = new
Size
(width, height);
winforms\Managed\System\WinForms\TrackBar.cs (1)
248
return new
Size
(104, PreferredDimension);
winforms\Managed\System\WinForms\TreeView.cs (3)
107
scaledStateImageSize = DpiHelper.LogicalToDeviceUnits(new
Size
(16, 16));
428
return new
Size
(121, 97);
2828
bounds = new Rectangle(textLoc, new
Size
(textSize.Width, bounds.Height));
winforms\Managed\System\WinForms\TrustManagerMoreInformation.cs (1)
326
this.btnClose.MinimumSize = new System.Drawing.
Size
(75, 23);
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (3)
268
this.btnInstall.MinimumSize = new System.Drawing.
Size
(75, 23);
278
this.btnCancel.MinimumSize = new System.Drawing.
Size
(75, 23);
850
this.linkLblName.MaximumSize = new
Size
(0, this.Font.Height + 2);
winforms\Managed\System\WinForms\UpDownBase.cs (5)
102
upDownButtons.Size = new
Size
(defaultButtonsWidth, PreferredHeight);
380
return new
Size
(DefaultControlWidth, PreferredHeight);
456
base.MaximumSize = new
Size
(value.Width, 0);
464
base.MinimumSize = new
Size
(value.Width, 0);
1107
upDownEditBounds.Size = new
Size
(clientArea.Width - defaultButtonsWidth, clientArea.Height);
winforms\Managed\System\WinForms\UserControl.cs (1)
223
return new
Size
(150, 150);
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (2)
765
return new
Size
(size.cx, size.cy);
792
return new
Size
(size.cx, size.cy);
winforms\Managed\System\WinForms\VScrollBar.cs (2)
60
return new
Size
(SystemInformation.GetVerticalScrollBarWidthForDpi(this.deviceDpi), LogicalToDeviceUnits(VERTICAL_SCROLLBAR_HEIGHT));
63
return new
Size
(SystemInformation.VerticalScrollBarWidth, VERTICAL_SCROLLBAR_HEIGHT);
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1234
return new
Size
(250, 250);
winforms\Managed\System\WinForms\WebBrowserBase.cs (2)
1178
return new
Size
(sz.cx, sz.cy);
1333
return new
Size
(75, 23);
winforms\Managed\System\WinForms\WinFormsUtils.cs (2)
38
public static readonly Size UninitializedSize = new
Size
(-7199369, -5999471);
104
bounds.Size = new
Size
(Math.Min(constrainingBounds.Width -2, bounds.Width),
System.Windows.Forms.DataVisualization (15)
Common\General\ChartGraphics.cs (2)
2681
return new
Size
( (int)Math.Ceiling(size.Width), (int)Math.Ceiling(size.Height));
2697
return new
Size
( (int)Math.Ceiling(size.Width), (int)Math.Ceiling(size.Height));
Common\General\Legend.cs (8)
888
Size maxSize = new
Size
((int)maxSizeAbs.Width, (int)maxSizeAbs.Height);
4382
size = new
Size
(1, 1);
4386
size = new
Size
(1, 1);
4390
size = new
Size
(1, 1);
4394
size = new
Size
(2, 2);
4398
size = new
Size
(3, 3);
4402
size = new
Size
(1, 1);
4406
size = new
Size
(2, 2);
Common\General\LegendColumns.cs (2)
146
private Size _seriesSymbolSize = new
Size
(200, 70);
847
private Size _seriesSymbolSize = new
Size
(200, 70);
Common\Utilities\ImageLoader.cs (1)
412
Bitmap scaledImage = new Bitmap(image, new
Size
((int)(image.Width * graphics.DpiX / image.HorizontalResolution),
Common\Utilities\XmlSerializer.cs (1)
3136
objValue = new
Size
(reader.ReadInt32(), reader.ReadInt32());
WinForm\ChartWinControl.cs (1)
713
return new
Size
(300, 300);
System.Workflow.Activities (28)
Designers\SetStateDesigner.cs (1)
96
Size size = new
Size
(
Designers\StateDesigner.cs (4)
43
internal static Size Separator = new
Size
(30, 30);
101
this.AutoSizeMargin = new
Size
(16, 24);
1463
Size newSize = new
Size
(this.Size.Width, this.Size.Height + ((maximumY + DefaultStateDesignerAutoLayoutDistance) - this.Bounds.Bottom));
2574
private Size _connectorSize = new
Size
(20, 20);
Designers\StateDesigner.Layouts.cs (15)
453
Size size = new
Size
(width, height);
653
layout.ResizeLayout(new
Size
(maxEventDrivenWidth, size.Height));
661
Size minimumSize = new
Size
();
677
Size size = new
Size
();
965
Size minimumSize = new
Size
();
1053
_textLayout.Size = new
Size
(maxStringWidth, _textLayout.Size.Height);
1067
private static readonly Size RealMinimumSize = new
Size
(160, 80);
1134
this.MinimumSize = new
Size
(minWidth, minHeight);
1169
size = new
Size
(maximumX, maximumY);
1172
_titleBarLayout.ResizeLayout(new
Size
(size.Width, _titleBarLayout.Size.Height));
1204
Size size = new
Size
(this.Size.Width, this.Size.Height - _titleBarLayout.Bounds.Height);
1244
_eventHandlersLayout.ResizeLayout(new
Size
(newSize.Width, _eventHandlersLayout.Size.Height));
1245
_titleBarLayout.ResizeLayout(new
Size
(newSize.Width, _titleBarLayout.Size.Height));
1342
_titleBarLayout.ResizeLayout(new
Size
(size.Width, _titleBarLayout.Size.Height));
1406
_titleBarLayout.ResizeLayout(new
Size
(newSize.Width, _titleBarLayout.Size.Height));
Designers\StateDesignerConnector.cs (2)
174
Size arrowCapSize = new
Size
(theme.ConnectorSize.Width / 5, theme.ConnectorSize.Height / 5);
211
Size arrowCapSize = new
Size
(theme.ConnectorSize.Width / 5, theme.ConnectorSize.Height / 5);
Designers\StateMachineDesignerPaint.cs (2)
47
return new
Size
(Convert.ToInt32(Math.Ceiling(textSize.Width)), Convert.ToInt32(Math.Ceiling(textSize.Height)));
379
Size capSize = new
Size
(capsize, capsize);
Designers\StateMachineWorkflowDesigner.cs (1)
26
private static readonly Size MinSize = new
Size
(240, 240);
Rules\Design\Dialogs\IntellisenseTextBox.cs (3)
410
this.listBoxAutoComplete.Size = new
Size
(this.listBoxAutoComplete.Items[0].Bounds.Width + 30, 72);
445
this.listBoxAutoComplete.Size = new
Size
(topLevelControlSize.Width, this.listBoxAutoComplete.Height);
450
this.listBoxAutoComplete.Size = new
Size
(this.listBoxAutoComplete.Width, topLevelControlSize.Height - listboxRectangle.Top);
System.Workflow.ComponentModel (155)
AuthoringOM\Design\ActivityDesigner.cs (2)
1072
Rectangle viewPort = new Rectangle(bounds.Location, new
Size
(bounds.Width + 1, bounds.Height + 1));
2971
using (GraphicsPath graphicsPath = ActivityDesignerPaint.GetDesignerPath(this, Point.Empty, new
Size
(DesignerTheme.BorderWidth, DesignerTheme.BorderWidth), DesignerEdges.All, false))
AuthoringOM\Design\ActivityPreviewDesigner.cs (4)
156
Size moveDelta = new
Size
(value.X - base.Location.X, value.Y - base.Location.Y);
650
Size margins = new
Size
(2 * e.AmbientTheme.Margin.Width + 2 * e.AmbientTheme.SelectionSize.Width, 2 * e.AmbientTheme.Margin.Height + 2 * e.AmbientTheme.SelectionSize.Height);
651
PreviewedDesigner.Size = new
Size
(containerSize.Width - margins.Width, containerSize.Height - (TitleHeight + this.previewStrip.Size.Height + margins.Height));
935
Size selectionSize = new
Size
(Math.Max(itemBounds.Width / 6, 1), Math.Max(itemBounds.Height / 6, 1));
AuthoringOM\Design\CompositeActivityDesigner.cs (1)
214
Size moveDelta = new
Size
(value.X - base.Location.X, value.Y - base.Location.Y);
AuthoringOM\Design\Connector.cs (6)
189
defaultSize = new
Size
(Math.Max(defaultSize.Width, (int)this.associatedDesigner.DesignerTheme.ForegroundPen.Width * 4), Math.Max(defaultSize.Height, (int)this.associatedDesigner.DesignerTheme.ForegroundPen.Width * 4));
443
Size arrowCapSize = new
Size
(theme.ConnectorSize.Width / 5, theme.ConnectorSize.Height / 5);
457
Size arrowCapSize = new
Size
(theme.ConnectorSize.Width / 5, theme.ConnectorSize.Height / 5);
485
Size arrowCapSize = new
Size
(theme.ConnectorSize.Width / 5, theme.ConnectorSize.Height / 5);
1530
Point[] routedPoints = ConnectorRouter.Route(sourcePoint, targetPoint, new
Size
(2 * ambientTheme.Margin.Width, 2 * ambientTheme.Margin.Height), rootDesigner.Bounds, rectanglesToExclude.ToArray(), linesToExclude.ToArray(), pointsToExclude.ToArray());
1812
private static readonly Size DefaultSize = new
Size
(4, 4);
AuthoringOM\Design\DesignerHelpers.cs (7)
79
return new
Size
(Convert.ToInt32(Math.Ceiling(textSize.Width)), Convert.ToInt32(Math.Ceiling(textSize.Height)));
339
graphics.FillRectangle(ambientTheme.MajorGridBrush, new Rectangle(new Point(gridCoOrdX, gridCoOrdY), new
Size
(1, 1)));
343
graphics.FillRectangle(ambientTheme.MinorGridBrush, new Rectangle(new Point(gridCoOrdX + ambientTheme.GridSize.Width / 2, gridCoOrdY + ambientTheme.GridSize.Height / 2), new
Size
(1, 1)));
697
Size capSize = new
Size
(capsize, capsize);
780
Size arrowSize = new
Size
(arrowHeight / 2, arrowHeight);
799
Size arrowSize = new
Size
(arrowWidth, arrowWidth / 2);
1894
Rectangle enclosingRect = new Rectangle(leftTop, new
Size
(rightBottom.X - leftTop.X, rightBottom.Y - leftTop.Y));
AuthoringOM\Design\DesignerWidgets.cs (19)
168
Size inflateSize = (Orientation == Orientation.Horizontal) ? new
Size
(0, 2) : new
Size
(2, 0);
276
this.buttonSize = new
Size
(itemSize.Width * 2 / 3, itemSize.Height);
278
this.buttonSize = new
Size
(itemSize.Width, itemSize.Height * 2 / 3);
370
this.itemStrip.Size = new
Size
(Math.Min(availableSize, reqdSize.Width), Math.Min(this.bounds.Height, reqdSize.Height));
378
this.itemStrip.Size = new
Size
(Math.Min(this.bounds.Width, reqdSize.Width), Math.Min(availableSize, reqdSize.Height));
574
private Size itemSize = new
Size
(16, 16);
1038
private Size imageRectangle = new
Size
(20, 20);
1039
private Size imageSize = new
Size
(16, 16);
1040
private Size selectionItemMargin = new
Size
(1, 1);
1506
this.splitter.Size = new
Size
(SplitterSize, SplitterSize);
1978
this.drawItems[i].TextSize = new
Size
(Convert.ToInt32(Math.Ceiling(sizef.Width)), Convert.ToInt32(Math.Ceiling(sizef.Height)));
2089
imageRectangle.Size = new
Size
(this.reqTabItemSize - 2 * TabMargin, this.reqTabItemSize - 2 * TabMargin);
2539
rectangles[j].Size = new
Size
(itemMargin.Width, itemSize.Height + itemMargin.Height);
2742
imageRectangle.Size = new
Size
(itemRectangle.Width - 4, itemRectangle.Height - 4);
2893
return new
Size
(itemSize.Width / 2, itemSize.Height / 4);
3376
this.canvasBounds.Size = new
Size
(Math.Max(this.canvasBounds.Width, designerTheme.PreviewWindowSize.Width), Math.Max(this.canvasBounds.Height, designerTheme.PreviewWindowSize.Height));
3386
this.previewDescTextSize = new
Size
(Convert.ToInt32(Math.Ceiling(stringSize.Width)), Convert.ToInt32(Math.Ceiling(stringSize.Height)));
3459
Size maxBitmapSize = new
Size
(this.canvasBounds.Width - 2 * margin.Width, this.canvasBounds.Height - 2 * margin.Height);
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
167
this.workflowOutline.Size = new
Size
(199, 351);
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (1)
554
Size margin = new
Size
(8, 8);
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
809
this.helpTextWindow.Size = new
Size
(this.helpTextHolder.Size.Width - 6, this.helpTextHolder.Size.Height - 6);
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (1)
1071
physicalPageSize = new
Size
(paperSize.Width, paperSize.Height);
AuthoringOM\Design\FreeFormDesigner.cs (6)
86
internal static Size DefaultAutoSizeMargin = new
Size
(40, 40);
294
Size moveDelta = new
Size
(value.X - base.Location.X, value.Y - base.Location.Y);
973
direction = new
Size
(-step, 0);
975
direction = new
Size
(step, 0);
977
direction = new
Size
(0, -step);
979
direction = new
Size
(0, step);
AuthoringOM\Design\Glyphs\SelectionGlyph.cs (1)
43
Size grabHandleSize = new
Size
(selectionSize.Width, selectionSize.Height);
AuthoringOM\Design\MessageFilters\DragDropManager.cs (2)
674
Rectangle descriptionRectangle = (description.Length > 0) ? new Rectangle(Point.Empty, new
Size
(AmbientTheme.DragImageTextSize.Width, parentView.Font.Height + 2)) : Rectangle.Empty;
678
Size draggedImageSize = parentView.LogicalSizeToClient(new
Size
(imageRectangle.Width + descriptionRectangle.Width, Math.Max(imageRectangle.Height, descriptionRectangle.Height)));
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (11)
409
private static Size[] Sizes = new Size[] { new
Size
(20, 20), new
Size
(24, 24), new
Size
(28, 28), new
Size
(32, 32), new
Size
(36, 36) };
410
private static Size[] Margins = new Size[] { new
Size
(1, 1), new
Size
(1, 1), new
Size
(2, 2), new
Size
(2, 2), new
Size
(3, 3) };
421
private Size borderSize = new
Size
(2, 2);
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (1)
255
Size delta = new
Size
(endPoint.X - startPoint.X, endPoint.Y - startPoint.Y);
AuthoringOM\Design\MessageFilters\PanningMessageFilter.cs (1)
74
Size panSize = new
Size
(eventArgs.X - this.panPoint.X, eventArgs.Y - this.panPoint.Y);
AuthoringOM\Design\ParallelActivityDesigner.cs (5)
262
activityDesigner.Size = new
Size
(activityDesigner.Size.Width, containerSize.Height);
290
dropTargets[0].Size = new
Size
(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), firstDesigner.Size.Height);
301
dropTargets[i + 1].Size = new
Size
(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), designerBounds1.Height);
307
dropTargets[containedDesigners.Count].Size = new
Size
(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), lastDesigner.Size.Height);
312
dropTargets[0].Size = new
Size
(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), Location.Y + Size.Height - dropTargets[0].Location.Y);
AuthoringOM\Design\SequentialActivityDesigner.cs (5)
39
private static readonly Size DefaultHelpTextSize = new
Size
(100, 85);
214
connectorBounds[0].Size = new
Size
(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), startDesignerConnections[0].Y - containerStartConnection.Y);
227
connectorBounds[i + 1].Size = new
Size
(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), designerToConnections[0].Y - designerFromConnections[designerFromPointCount - 1].Y);
244
connectorBounds[connectorCount - 1].Size = new
Size
(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), containerEndConnection.Y - endDesignerConnections[endDesignerConnections.Count - 1].Y);
250
connectorBounds[0].Size = new
Size
(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), containerEndConnection.Y - containerStartConnection.Y);
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (2)
42
private static readonly Size PageStripItemSize = new
Size
(24, 20);
43
private static readonly Size MinSize = new
Size
(240, 240);
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (1)
478
arrowCapSize = new
Size
(compositeDesignerTheme.ConnectorSize.Width / 3, compositeDesignerTheme.ConnectorSize.Height / 3);
AuthoringOM\Design\Themes.cs (46)
981
private static readonly Size[] DesignerSizes = new Size[] { new
Size
(90, 40), new
Size
(130, 41), new
Size
(110, 50) };
982
private static readonly Size[] ImageSizes = new Size[] { new
Size
(16, 16), new
Size
(16, 16), new
Size
(24, 24) };
1431
private static readonly Size[] ExpandButtonSizes = new Size[] { new
Size
(8, 8), new
Size
(8, 8), new
Size
(12, 12) };
1432
private static readonly Size[] ConnectorSizes = new Size[] { new
Size
(15, 30), new
Size
(15, 19), new
Size
(25, 50) };
1610
return new
Size
(connectorSize, connectorSize);
1684
private static readonly Size[] ItemSizes = new Size[] { new
Size
(20, 20), new
Size
(20, 20), new
Size
(30, 30) };
1685
private static readonly Size[] PreviewButtonSizes = new Size[] { new
Size
(16, 16), new
Size
(16, 16), new
Size
(20, 20) };
1686
private static readonly Size[] PreviewWindowSizes = new Size[] { new
Size
(172, 120), new
Size
(172, 120), new
Size
(212, 160) };
1945
internal static readonly Size DragImageMargins = new
Size
(4, 4);
1946
internal static readonly Size DragImageTextSize = new
Size
(100, 60);
1947
internal static readonly Size DragImageIconSize = new
Size
(16, 16);
1956
private static readonly Size[] GridSizes = new Size[] { new
Size
(30, 30), new
Size
(40, 40), new
Size
(60, 60) };
1957
private static readonly Size[] MarginSizes = new Size[] { new
Size
(2, 2), new
Size
(4, 4), new
Size
(6, 6) };
1958
private static readonly Size[] SelectionSizes = new Size[] { new
Size
(2, 2), new
Size
(4, 4), new
Size
(6, 6) };
1959
private static readonly Size[] GlyphSizes = new Size[] { new
Size
(10, 10), new
Size
(14, 14), new
Size
(18, 18) };
1960
private static readonly Size[] ScrollIndicatorSizes = new Size[] { new
Size
(24, 24), new
Size
(32, 32), new
Size
(40, 40) };
1961
private static readonly Size[] DropIndicatorSizes = new Size[] { new
Size
(8, 8), new
Size
(12, 12), new
Size
(16, 16) };
1962
private static readonly Size[] MagnifierSizes = new Size[] { new
Size
(50, 50), new
Size
(100, 100), new
Size
(150, 150) };
AuthoringOM\Design\WorkflowLayouts.cs (19)
64
public static Size Separator = new
Size
(30, 30);
86
Size totalSize = new
Size
(rootDesignerSize.Width + DefaultWorkflowLayout.Separator.Width * 2, rootDesignerSize.Height + DefaultWorkflowLayout.Separator.Height * 2);
88
return new
Size
(Math.Max(totalSize.Width, clientSize.Width), Math.Max(totalSize.Height, clientSize.Height));
217
Size totalSize = new
Size
(rootDesignerSize.Width + DefaultWorkflowLayout.Separator.Width * 2, rootDesignerSize.Height + DefaultWorkflowLayout.Separator.Height * 2);
223
return new
Size
(Math.Max(totalSize.Width, clientSize.Width), Math.Max(totalSize.Height, clientSize.Height));
323
return new
Size
(Math.Max(0, (totalSize.Width - layoutExtent.Width) / 2), Math.Max(0, (totalSize.Height - layoutExtent.Height) / 2));
334
private static Size DefaultPageSeparator = new
Size
(30, 30);
345
private Size rowColumns = new
Size
(1, 1); //Width = Columns, Height = Rows
383
Size printableAreaPerPage = new
Size
(this.pageSize.Width - (PageMargins.Left + PageMargins.Right), this.pageSize.Height - (PageMargins.Top + PageMargins.Bottom));
384
Size totalPrintableArea = new
Size
(this.rowColumns.Width * printableAreaPerPage.Width, this.rowColumns.Height * printableAreaPerPage.Height);
424
Size deltaSize = new
Size
(pageLayoutData.ViewablePageBounds.Width - intersectedPhysicalViewPort.Width, pageLayoutData.ViewablePageBounds.Height - intersectedPhysicalViewPort.Height);
459
Size deltaSize = new
Size
(pageLayoutData.LogicalPageBounds.Width - intersectedLogicalViewPort.Width, pageLayoutData.LogicalPageBounds.Height - intersectedLogicalViewPort.Height);
540
Rectangle physicalViewPort = new Rectangle(points[0], new
Size
(points[1]));
573
viewPortBitmapArea.Size = new
Size
(points[1]);
613
Rectangle physicalViewPort = new Rectangle(points[0], new
Size
(points[1]));
679
viewPortBitmapArea.Size = new
Size
(points[1]);
740
Size printableArea = new
Size
(paperSize.Width - (margins.Left + margins.Right), paperSize.Height - (margins.Top + margins.Bottom));
766
PageSeparator = new
Size
(Convert.ToInt32(Math.Ceiling(((float)PageSeparator.Width) / this.scaling)), Convert.ToInt32(Math.Ceiling(((float)PageSeparator.Height) / this.scaling)));
781
Size viewablePageSize = new
Size
(this.pageSize.Width - (PageMargins.Left + PageMargins.Right), this.pageSize.Height - (PageMargins.Top + PageMargins.Bottom));
AuthoringOM\Design\WorkflowPrinting.cs (3)
126
Size printableArea = new
Size
(printPageArg.PageBounds.Size.Width - (margins.Left + margins.Right), printPageArg.PageBounds.Size.Height - (margins.Top + margins.Bottom));
266
layoutRectangle.Size = new
Size
(Convert.ToInt32(Math.Ceiling((stringSize.Width))), Convert.ToInt32(Math.Ceiling((stringSize.Height))));
326
Size printableArea = new
Size
(paperSize.Width - (margins.Left + margins.Right), paperSize.Height - (margins.Top + margins.Bottom));
AuthoringOM\Design\WorkflowView.cs (9)
1043
viewPortData.ShadowDepth = new
Size
(this.shadowDepth, this.shadowDepth);
1535
viewPortData.LogicalViewPort = new Rectangle(Point.Empty, new
Size
(rootDesigner.Bounds.Width + 2 * DefaultWorkflowLayout.Separator.Width, rootDesigner.Bounds.Height + 2 * DefaultWorkflowLayout.Separator.Height));
1539
viewPortData.ShadowDepth = new
Size
(0, 0);
1660
viewPortGraphics.FillRectangle(shadowDepthBrush, new Rectangle(Point.Empty, new
Size
(memoryBitmap.Size.Width - viewPortData.ShadowDepth.Width - 1, memoryBitmap.Size.Height - viewPortData.ShadowDepth.Height - 1)));
1741
Size scrollDelta = new
Size
();
1798
Size largeChangeSize = new
Size
(Math.Min(maximumScrollSize.Width, currentSize.Width), Math.Min(maximumScrollSize.Height, currentSize.Height));
1848
fitAllAction.DockMargin = new
Size
(5, 5);
2058
return new
Size
(points[0]);
2070
return new
Size
(points[0]);
System.WorkflowServices (2)
System\Workflow\Activities\ReceiveActivityDesigner.cs (1)
30
return new
Size
(170, 80);
System\Workflow\Activities\SendActivityDesigner.cs (1)
31
return new
Size
(150, 80);
WsatUI (3)
MMCUI\TraceOptionsForm.designer.cs (2)
109
this.labelTraceInfo.MaximumSize = new System.Drawing.
Size
(300, 50);
176
this.label3.MaximumSize = new System.Drawing.
Size
(300, 34);
MMCUI\WSATPropertySheet.cs (1)
272
wsatControl.Size = new System.Drawing.
Size
(425, wsatControl.Size.Height);
1748 references to Size
System.Drawing (121)
commonui\System\Drawing\Advanced\PointF.cs (8)
103
/// Translates a <see cref='System.Drawing.PointF'/> by a given <see cref='System.Drawing.
Size
'/> .
106
public static PointF operator +(PointF pt,
Size
sz) {
113
/// Translates a <see cref='System.Drawing.PointF'/> by the negative of a given <see cref='System.Drawing.
Size
'/> .
116
public static PointF operator -(PointF pt,
Size
sz) {
165
/// Translates a <see cref='System.Drawing.PointF'/> by a given <see cref='System.Drawing.
Size
'/> .
168
public static PointF Add(PointF pt,
Size
sz) {
174
/// Translates a <see cref='System.Drawing.PointF'/> by the negative of a given <see cref='System.Drawing.
Size
'/> .
177
public static PointF Subtract(PointF pt,
Size
sz) {
commonui\System\Drawing\Advanced\SizeF.cs (2)
248
public
Size
ToSize() {
249
return
Size
.Truncate(this);
commonui\System\Drawing\Bitmap.cs (2)
461
public Bitmap(Image original,
Size
newSize) :
577
Size
size = Size;
commonui\System\Drawing\BufferedGraphics.cs (2)
38
private
Size
virtualSize;
47
IntPtr targetDC, Point targetLoc,
Size
virtualSize) {
commonui\System\Drawing\BufferedGraphicsContext.cs (7)
28
private
Size
maximumBuffer;
29
private
Size
bufferSize;
30
private
Size
virtualSize;
59
bufferSize =
Size
.Empty;
88
public
Size
MaximumBuffer {
594
bufferSize =
Size
.Empty;
595
virtualSize =
Size
.Empty;
commonui\System\Drawing\Graphics.cs (4)
861
public void CopyFromScreen(Point upperLeftSource, Point upperLeftDestination,
Size
blockRegionSize) {
870
public void CopyFromScreen(int sourceX, int sourceY, int destinationX, int destinationY,
Size
blockRegionSize) {
879
public void CopyFromScreen(Point upperLeftSource, Point upperLeftDestination,
Size
blockRegionSize, CopyPixelOperation copyPixelOperation) {
891
public void CopyFromScreen(int sourceX, int sourceY, int destinationX, int destinationY,
Size
blockRegionSize, CopyPixelOperation copyPixelOperation) {
commonui\System\Drawing\Icon.cs (12)
61
private
Size
iconSize = System.Drawing.
Size
.Empty;
92
public Icon(string fileName,
Size
size) : this(fileName, size.Width, size.Height) {
121
public Icon(Icon original,
Size
size) : this(original, size.Width, size.Height) {
178
public Icon(Stream stream,
Size
size) : this(stream, size.Width, size.Height) {
209
iconSize = (
Size
)info.GetValue("IconSize", typeof(
Size
));
323
public
Size
Size {
427
Size
cursorSize = Size;
492
Size
size = Size;
1064
Size
size = Size;
1153
si.AddValue("IconSize", iconSize, typeof(
Size
));
commonui\System\Drawing\Image.cs (1)
819
public
Size
Size {
commonui\System\Drawing\Point.cs (12)
57
/// from a <see cref='System.Drawing.
Size
'/> .
60
public Point(
Size
sz) {
133
/// Creates a <see cref='System.Drawing.
Size
'/> with the coordinates of the specified <see cref='System.Drawing.Point'/> .
136
public static explicit operator
Size
(Point p) {
143
/// Translates a <see cref='System.Drawing.Point'/> by a given <see cref='System.Drawing.
Size
'/> .
146
public static Point operator +(Point pt,
Size
sz) {
153
/// Translates a <see cref='System.Drawing.Point'/> by the negative of a given <see cref='System.Drawing.
Size
'/> .
156
public static Point operator -(Point pt,
Size
sz) {
187
/// Translates a <see cref='System.Drawing.Point'/> by a given <see cref='System.Drawing.
Size
'/> .
190
public static Point Add(Point pt,
Size
sz) {
196
/// Translates a <see cref='System.Drawing.Point'/> by the negative of a given <see cref='System.Drawing.
Size
'/> .
199
public static Point Subtract(Point pt,
Size
sz) {
commonui\System\Drawing\Printing\PreviewPageInfo.cs (4)
24
private
Size
physicalSize =
Size
.Empty;
33
public PreviewPageInfo(Image image,
Size
physicalSize) {
51
public
Size
PhysicalSize {
commonui\System\Drawing\Printing\PreviewPrintController.cs (2)
107
Size
size = e.PageBounds.Size;
111
Size
metafileSize = PrinterUnitConvert.Convert(size, PrinterUnit.Display, PrinterUnit.HundredthsOfAMillimeter);
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (2)
68
public static
Size
Convert(
Size
value, PrinterUnit fromUnit, PrinterUnit toUnit) {
commonui\System\Drawing\Rectangle.cs (3)
70
public Rectangle(Point location,
Size
size) {
113
public
Size
Size {
403
public void Inflate(
Size
size) {
commonui\System\Drawing\Size.cs (44)
37
/// Initializes a new instance of the <see cref='System.Drawing.
Size
'/> class.
39
public static readonly
Size
Empty = new Size();
50
/// Initializes a new instance of the <see cref='System.Drawing.
Size
'/> class from
64
/// Initializes a new instance of the <see cref='System.Drawing.
Size
'/> class from
74
/// Converts the specified <see cref='System.Drawing.
Size
'/> to a
77
public static implicit operator SizeF(
Size
p) {
84
/// Performs vector addition of two <see cref='System.Drawing.
Size
'/> objects.
87
public static
Size
operator +(
Size
sz1,
Size
sz2) {
94
/// Contracts a <see cref='System.Drawing.
Size
'/> by another <see cref='System.Drawing.
Size
'/>
98
public static
Size
operator -(
Size
sz1,
Size
sz2) {
104
/// Tests whether two <see cref='System.Drawing.
Size
'/> objects
107
public static bool operator ==(
Size
sz1,
Size
sz2) {
114
/// Tests whether two <see cref='System.Drawing.
Size
'/> objects are different.
117
public static bool operator !=(
Size
sz1,
Size
sz2) {
123
/// Converts the specified <see cref='System.Drawing.
Size
'/> to a
126
public static explicit operator Point(
Size
size) {
132
/// Tests whether this <see cref='System.Drawing.
Size
'/> has zero
149
/// <see cref='System.Drawing.
Size
'/>.
167
/// <see cref='System.Drawing.
Size
'/>.
180
/// Performs vector addition of two <see cref='System.Drawing.
Size
'/> objects.
183
public static
Size
Add(
Size
sz1,
Size
sz2) {
192
public static
Size
Ceiling(SizeF value) {
198
/// Contracts a <see cref='System.Drawing.
Size
'/> by another <see cref='System.Drawing.
Size
'/> .
201
public static
Size
Subtract(
Size
sz1,
Size
sz2) {
210
public static
Size
Truncate(SizeF value) {
219
public static
Size
Round(SizeF value) {
227
/// <see cref='System.Drawing.
Size
'/>
228
/// with the same dimensions as this <see cref='System.Drawing.
Size
'/>.
232
if (!(obj is
Size
))
235
Size
comp = (
Size
)obj;
256
/// <see cref='System.Drawing.
Size
'/>.
commonui\System\Drawing\SizeConverter.cs (7)
114
if(value is
Size
){
116
Size
size = (
Size
)value;
133
Size
size = (
Size
)value;
135
ConstructorInfo ctor = typeof(
Size
).GetConstructor(new Type[] {typeof(int), typeof(int)});
186
PropertyDescriptorCollection props = TypeDescriptor.GetProperties(typeof(
Size
), attributes);
commonui\System\Drawing\ToolboxBitmapAttribute.cs (2)
72
private static readonly
Size
largeSize = new Size(32, 32);
78
private static readonly
Size
smallSize = new Size(16, 16);
misc\DpiHelper.cs (5)
454
private static Bitmap ScaleBitmapToSize(Bitmap logicalImage,
Size
deviceImageSize)
481
Size
deviceImageSize = DpiHelper.LogicalToDeviceUnits(logicalImage.Size, deviceDpi);
556
public static
Size
LogicalToDeviceUnits(
Size
logicalSize, int deviceDpi = 0)
567
public static Bitmap CreateResizedBitmap(Bitmap logicalImage,
Size
targetImageSize)
misc\GDI\NativeMethods.cs (2)
194
public
Size
Size
438
public System.Drawing.
Size
ToSize()
System.Messaging (8)
System\Messaging\Design\QueuePathDialog.cs (8)
224
this.okButton.Size = ((System.Drawing.
Size
)(resources.GetObject("okButton.Size")));
235
this.pathType.Size = ((System.Drawing.
Size
)(resources.GetObject("pathType.Size")));
243
this.enterprise.Size = ((System.Drawing.
Size
)(resources.GetObject("enterprise.Size")));
251
this.helpButton.Size = ((System.Drawing.
Size
)(resources.GetObject("helpButton.Size")));
258
this.selectLabel.Size = ((System.Drawing.
Size
)(resources.GetObject("selectLabel.Size")));
262
this.referenceLabel.Size = ((System.Drawing.
Size
)(resources.GetObject("referenceLabel.Size")));
267
this.cancelButton.Size = ((System.Drawing.
Size
)(resources.GetObject("cancelButton.Size")));
276
this.ClientSize = ((System.Drawing.
Size
)(resources.GetObject("$this.ClientSize")));
System.Web.DataVisualization (70)
Common\Converters\LegendConverters.cs (3)
254
values.Add(System.Drawing.
Size
.Empty);
271
if(((System.Drawing.
Size
)value).IsEmpty)
292
return System.Drawing.
Size
.Empty;
Common\General\ChartGraphics.cs (2)
2677
internal
Size
MeasureStringAbs( string text, Font font )
2694
internal
Size
MeasureStringAbs( string text, Font font, SizeF layoutArea, StringFormat stringFormat )
Common\General\Legend.cs (41)
294
private
Size
_offset =
Size
.Empty;
392
internal
Size
singleWCharacterSize =
Size
.Empty;
449
Size
doubleCharacterSize = chartGraph.MeasureStringAbs("WW", this.Font);
470
Size
titleSize = this.GetTitleSize(chartGraph, legendPosition.Size);
493
Size
highestHeader =
Size
.Empty;
499
Size
headerSize = this.GetHeaderSize(chartGraph, legendColumn);
707
Size
itemHalfSpacing =
Size
.Empty;
804
Size
itemHalfSpacing)
873
this._offset =
Size
.Empty;
884
Size
optimalSize =
Size
.Empty;
888
Size
maxSize = new Size((int)maxSizeAbs.Width, (int)maxSizeAbs.Height);
916
Size
doubleCharacterSize = chartGraph.MeasureStringAbs("WW", this.Font);
933
Size
titleSize =
Size
.Empty;
943
Size
highestHeader =
Size
.Empty;
949
Size
headerSize = this.GetHeaderSize(chartGraph, legendColumn);
959
Size
legenItemsMaxSize = maxSize;
1214
Size
legendSize,
1243
Size
legendSize,
1702
Size
legendItemsAreaSize,
1741
Size
doubleCharacterSize = graph.MeasureStringAbs("WW", (this.autofitFont == null) ? this.Font : this.autofitFont);
1785
Size
cellSize = legendCell.MeasureCell(
1892
Size
headerTextSize = graph.MeasureStringAbs(legendColumn.HeaderText + "I", legendColumn.HeaderFont);
2330
this._offset =
Size
.Empty;
3971
private
Size
GetTitleSize(ChartGraphics chartGraph,
Size
titleMaxSize)
3973
Size
titleSize =
Size
.Empty;
4003
private
Size
GetHeaderSize(ChartGraphics chartGraph, LegendCellColumn legendColumn)
4005
Size
headerSize =
Size
.Empty;
4372
internal
Size
GetSeparatorSize(LegendSeparatorStyle separatorType)
4374
Size
size =
Size
.Empty;
4378
size =
Size
.Empty;
Common\General\LegendColumns.cs (20)
146
private
Size
_seriesSymbolSize = new Size(200, 70);
392
DefaultValue(typeof(
Size
), "200, 70"),
395
public virtual
Size
SeriesSymbolSize
844
private
Size
_imageSize =
Size
.Empty;
847
private
Size
_seriesSymbolSize = new Size(200, 70);
884
private
Size
_cachedCellSize =
Size
.Empty;
1182
DefaultValue(typeof(
Size
), "0, 0"),
1186
public virtual
Size
ImageSize
1209
DefaultValue(typeof(
Size
), "200, 70"),
1212
public virtual
Size
SeriesSymbolSize
1426
this._cachedCellSize =
Size
.Empty;
1439
Size
singleWCharacterSize)
1479
internal
Size
MeasureCell(
1483
Size
singleWCharacterSize)
1493
Size
cellSize =
Size
.Empty;
1912
Size
singleWCharacterSize)
2087
Size
singleWCharacterSize)
Common\Utilities\XmlSerializer.cs (4)
2721
else if(obj is
Size
)
2724
writer.Write(((
Size
)obj).Width);
2725
writer.Write(((
Size
)obj).Height);
3133
else if(pi.PropertyType == typeof(
Size
))
System.Web.Entity.Design (1)
System\Data\WebControls\Design\EntityDataSourceStatementEditorForm.cs (1)
124
Size
size = _parameterEditorUserControl.Size;
System.Web.Mobile (6)
UI\MobileControls\Design\MobileContainerDesigner.cs (2)
36
private readonly
Size
_defaultSize;
236
protected virtual
Size
GetDefaultSize()
UI\MobileControls\Design\PanelDesigner.cs (2)
36
private
Size
_defaultSize;
64
protected override
Size
GetDefaultSize()
UI\MobileControls\Design\Util\GroupLabel.cs (2)
46
Size
sz =
Size
.Ceiling(g.MeasureString(text, Font));
System.Windows.Forms (1014)
misc\DpiHelper.cs (5)
454
private static Bitmap ScaleBitmapToSize(Bitmap logicalImage,
Size
deviceImageSize)
481
Size
deviceImageSize = DpiHelper.LogicalToDeviceUnits(logicalImage.Size, deviceDpi);
556
public static
Size
LogicalToDeviceUnits(
Size
logicalSize, int deviceDpi = 0)
567
public static Bitmap CreateResizedBitmap(Bitmap logicalImage,
Size
targetImageSize)
misc\GDI\DeviceContext2.cs (4)
142
public
Size
Dpi
440
public
Size
ViewportExtent
458
public
Size
SetViewportExtent(
Size
newExtent )
misc\GDI\NativeMethods.cs (2)
194
public
Size
Size
438
public System.Drawing.
Size
ToSize()
misc\GDI\WindowsGraphics2.cs (9)
40
public static readonly
Size
MaxSize = new Size(Int32.MaxValue, Int32.MaxValue);
376
public
Size
GetTextExtent(string text, WindowsFont font)
380
return
Size
.Empty;
407
public
Size
MeasureText(string text, WindowsFont font)
417
public
Size
MeasureText(string text, WindowsFont font,
Size
proposedSize)
440
public
Size
MeasureText(string text, WindowsFont font,
Size
proposedSize, IntTextFormatFlags flags)
448
return
Size
.Empty;
winforms\Managed\System\WinForms\ArrangedElement.cs (3)
139
public virtual
Size
GetPreferredSize(
Size
constrainingSize) {
140
Size
preferredSize = LayoutEngine.GetPreferredSize(this, constrainingSize - Padding.Size) + Padding.Size;
winforms\Managed\System\WinForms\AxHost.cs (9)
477
protected override
Size
DefaultSize {
1503
private
Size
SetExtent(int width, int height) {
1529
private
Size
GetExtent() {
1567
Size
adjustedSize = ApplySizeConstraints(width, height);
1590
Size
p = SetExtent(width, height);
1771
Size
p = GetExtent();
3605
Size
setExtent = Size;
3610
Size
ocxExtent = GetExtent();
3619
Size
newSize = SetExtent(setExtent.Width, setExtent.Height);
winforms\Managed\System\WinForms\Button.cs (6)
53
private
Size
systemSize = new Size(InvalidDimensionValue, InvalidDimensionValue);
116
internal override
Size
GetPreferredSizeCore(
Size
proposedConstraints) {
118
Size
prefSize = base.GetPreferredSizeCore(proposedConstraints);
123
Size
requiredSize;
138
Size
paddedSize = systemSize + Padding.Size;
winforms\Managed\System\WinForms\ButtonBase.cs (7)
189
protected override
Size
DefaultSize {
946
public override
Size
GetPreferredSize(
Size
proposedSize ) {
960
internal override
Size
GetPreferredSizeCore(
Size
proposedConstraints) {
961
Size
prefSize = Adapter.GetPreferredSizeCore(proposedConstraints);
1132
Size
preferredSize = PreferredSize;
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (38)
54
internal virtual
Size
GetPreferredSizeCore(
Size
proposedSize) {
883
internal
Size
imageSize;
971
private
Size
Compose(
Size
checkSize,
Size
imageSize,
Size
textSize) {
998
private
Size
Decompose(
Size
checkSize,
Size
imageSize,
Size
proposedSize) {
1032
internal
Size
GetPreferredSizeCore(
Size
proposedSize) {
1039
Size
bordersAndPadding = new Size(linearBorderAndPadding, linearBorderAndPadding);
1045
Size
checkSize = checkSizeLinear > 0 ? new Size(checkSizeLinear + 1, checkSizeLinear) :
Size
.Empty;
1049
Size
textImageInsetSize = new Size(textImageInset * 2, textImageInset * 2);
1050
Size
requiredImageSize = (imageSize !=
Size
.Empty) ? imageSize + textImageInsetSize :
Size
.Empty;
1057
Size
textSize =
Size
.Empty;
1075
Size
requiredSize = Compose(checkSize, imageSize, textSize);
1132
if (imageSize !=
Size
.Empty) {
1315
if(imageSize ==
Size
.Empty || text == null || text.Length == 0 || textImageRelation == TextImageRelation.Overlay) {
1317
Size
textSize = GetTextSize(maxBounds.Size);
1320
Size
size = imageSize;
1321
if (layout.options.everettButtonCompat && imageSize !=
Size
.Empty) {
1330
Size
maxTextSize = LayoutUtils.SubAlignedRegion(maxBounds.Size, imageSize, textImageRelation);
1331
Size
textSize = GetTextSize(maxTextSize);
1335
Size
combinedSize = LayoutUtils.AddAlignedRegion(textSize, imageSize, textImageRelation);
1439
protected virtual
Size
GetTextSize(
Size
proposedSize) {
1442
Size
textSize =
Size
.Empty;
1447
textSize =
Size
.Ceiling(g.MeasureString(text, font, new SizeF(proposedSize.Width, proposedSize.Height), gdipStringFormat));
1520
layout.imageSize =
Size
.Empty;
1546
layout.imageSize = (Control.Image == null) ?
Size
.Empty : Control.Image.Size;
winforms\Managed\System\WinForms\ButtonInternal\CheckableControlBaseAdapter.cs (2)
34
internal override
Size
GetPreferredSizeCore(
Size
proposedSize) {
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxStandardAdapter.cs (2)
78
internal override
Size
GetPreferredSizeCore(
Size
proposedSize) {
winforms\Managed\System\WinForms\CheckBox.cs (5)
344
protected override
Size
DefaultSize {
368
internal override
Size
GetPreferredSizeCore(
Size
proposedConstraints) {
378
Size
textSize = TextRenderer.MeasureText(this.Text, this.Font);
379
Size
size = SizeFromClientSize(textSize);
winforms\Managed\System\WinForms\CheckBoxRenderer.cs (2)
230
public static
Size
GetGlyphSize(Graphics g, CheckBoxState state) {
234
internal static
Size
GetGlyphSize(Graphics g, CheckBoxState state, IntPtr hWnd) {
winforms\Managed\System\WinForms\ComboBox.cs (8)
458
protected override
Size
DefaultSize {
820
public override
Size
MaximumSize {
827
public override
Size
MinimumSize {
936
Size
textSize = TextRenderer.MeasureText(LayoutUtils.TestString, this.Font, new Size(Int16.MaxValue, (int)(FontHeight * 1.25)), TextFormatFlags.SingleLine);
946
Size
textSize = TextRenderer.MeasureText(LayoutUtils.TestString, this.Font, new Size(Int16.MaxValue, (int)(FontHeight * 1.25)), TextFormatFlags.SingleLine);
976
Size
textExtent =
Size
.Empty;
993
Size
fixedFrameBoderSize = SystemInformation.FixedFrameBorderSize;
winforms\Managed\System\WinForms\ContainerControl.cs (5)
704
internal override
Size
GetPreferredSizeCore(
Size
proposedSize) {
707
Size
borderSize = SizeFromClientSize(
Size
.Empty);
708
Size
totalPadding = borderSize + Padding.Size;
winforms\Managed\System\WinForms\Control.cs (47)
531
Size
defaultSize = DefaultSize;
1611
public
Size
ClientSize {
2194
protected virtual
Size
DefaultMaximumSize {
2199
protected virtual
Size
DefaultMinimumSize {
2217
protected virtual
Size
DefaultSize {
2218
get { return
Size
.Empty; }
2776
public virtual
Size
GetPreferredSize(
Size
proposedSize) {
2777
Size
prefSize;
2791
Size
cachedSize = CommonProperties.xGetPreferredSizeCache(this);
2839
internal virtual
Size
GetPreferredSizeCore(
Size
proposedSize) {
3300
[AmbientValue(typeof(
Size
), "0, 0")]
3301
public virtual
Size
MaximumSize {
3304
if (value ==
Size
.Empty) {
3321
public virtual
Size
MinimumSize {
3891
public
Size
Size {
4760
public
Size
PreferredSize {
4761
get { return GetPreferredSize(
Size
.Empty); }
6440
internal
Size
ApplySizeConstraints(int width, int height) {
6447
internal
Size
ApplySizeConstraints(
Size
proposedSize) {
6456
if (MaximumSize !=
Size
.Empty || MinimumSize !=
Size
.Empty) {
6457
Size
maximumSize = LayoutUtils.ConvertZeroToUnbounded(MaximumSize);
7744
public
Size
LogicalToDeviceUnits(
Size
value) {
11485
Size
minSize = MinimumSize;
11486
Size
maxSize = MaximumSize;
11490
MinimumSize =
Size
.Empty;
11491
MaximumSize =
Size
.Empty;
11535
Size
adornmentSize = adornments.Size;
11538
minSize = ScaleSize(LayoutUtils.UnionSizes(
Size
.Empty, minSize), // make sure we dont go below 0.
11544
maxSize = ScaleSize(LayoutUtils.UnionSizes(
Size
.Empty, maxSize), // make sure we dont go below 0.
11552
Size
maximumSize = LayoutUtils.ConvertZeroToUnbounded(maxSize);
11553
Size
scaledSize = LayoutUtils.IntersectSizes(rawScaledBounds.Size, maximumSize);
11621
internal
Size
ScaleSize(
Size
startSize, float x, float y) {
11622
Size
size = startSize;
11948
protected virtual
Size
SizeFromClientSize(
Size
clientSize) {
11952
internal
Size
SizeFromClientSize(int width, int height) {
12459
Size
s = DefaultSize;
16957
Size
size = control.Size;
18252
Size
size = new Size(HiMetricToPixel(pSizel.cx, pSizel.cy));
18263
Size
adjusted = new Size(size.Width, size.Height);
19237
internal MetafileDCWrapper(HandleRef hOriginalDC,
Size
size) {
winforms\Managed\System\WinForms\ControlPaint.cs (10)
58
private static
Size
gridSize; // the dimensions of the grid dots
90
Size
szCtl = bounds.Size;
101
Size
imageSize = backgroundImage.Size;
195
Size
size = bitmap.Size;
254
Size
size = bitmap.Size;
304
Size
size = bitmap.Size;
353
internal static void CopyPixels(IntPtr sourceHwnd, IDeviceContext targetDC, Point sourceLocation, Point destinationLocation,
Size
blockRegionSize, CopyPixelOperation copyPixelOperation) {
964
Size
sz = SystemInformation.Border3DSize;
1447
public static void DrawGrid(Graphics graphics, Rectangle area,
Size
pixelsBetweenDots, Color backColor) {
1561
Size
imageSize = image.Size;
winforms\Managed\System\WinForms\Cursor.cs (8)
41
private static
Size
cursorSize = System.Drawing.
Size
.Empty;
328
public
Size
Size {
364
Size
sz = Size;
431
Size
cursorSize = Size;
589
private
Size
GetIconSize(IntPtr iconHandle) {
590
Size
iconSize = Size;
635
Size
picSize = GetIconSize(cursorHandle);
winforms\Managed\System\WinForms\DataGrid.cs (1)
599
protected override
Size
DefaultSize {
winforms\Managed\System\WinForms\DataGridBoolColumn.cs (1)
217
protected internal override
Size
GetPreferredSize(Graphics g, object value) {
winforms\Managed\System\WinForms\DataGridCaption.cs (3)
430
Size
backButtonSize;
450
Size
downButtonSize;
467
Size
textSize = new Size((int) g.MeasureString(text, this.Font).Width + 2, this.Font.Height + 2);
winforms\Managed\System\WinForms\DataGridColumn.cs (1)
870
protected internal abstract
Size
GetPreferredSize(Graphics g, object value);
winforms\Managed\System\WinForms\DataGridRow.cs (1)
560
Size
bmpSize = bmp.Size;
winforms\Managed\System\WinForms\DataGridTextBoxColumn.cs (3)
333
protected internal override
Size
GetPreferredSize(Graphics g, object value) {
334
Size
extents =
Size
.Ceiling(g.MeasureString(GetText(value), DataGridTableStyle.DataGrid.Font));
winforms\Managed\System\WinForms\DataGridView.cs (2)
256
private static
Size
DragSize = SystemInformation.DragSize;
2669
protected override
Size
DefaultSize
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (3)
326
protected override
Size
GetPreferredSize(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex,
Size
constraintSize)
338
Size
preferredSize;
winforms\Managed\System\WinForms\DataGridViewCell.cs (17)
555
public
Size
PreferredSize
764
public
Size
Size
1972
static internal DataGridViewFreeDimension GetFreeDimensionFromConstraint(
Size
constraintSize)
2580
internal
Size
GetPreferredSize(int rowIndex)
2589
return GetPreferredSize(g, dataGridViewCellStyle, rowIndex,
Size
.Empty);
2594
protected virtual
Size
GetPreferredSize(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex,
Size
constraintSize)
2615
Size
size = DataGridViewCell.MeasureTextSize(g, text, cellStyle.Font, flags);
2638
protected virtual
Size
GetSize(int rowIndex)
2867
Size
requiredSize = TextRenderer.MeasureText(text, font, new Size(maxWidth, System.Int32.MaxValue), flags);
2876
public static
Size
MeasureTextPreferredSize(Graphics graphics, string text, Font font, float maxRatio, TextFormatFlags flags)
2903
Size
textOneLineSize = DataGridViewCell.MeasureTextSize(graphics, text, font, flags);
2911
Size
textSize;
2931
public static
Size
MeasureTextSize(Graphics graphics, string text, Font font, TextFormatFlags flags)
2964
Size
oneLineSize = DataGridViewCell.MeasureTextSize(graphics, text, font, flags);
2974
Size
textSize;
4697
internal static bool TextFitsInBounds(Graphics graphics, string text, Font font,
Size
maxBounds, TextFormatFlags flags)
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (5)
748
protected override
Size
GetPreferredSize(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex,
Size
constraintSize)
764
Size
preferredSize;
768
Size
checkBoxSize = CheckBoxRenderer.GetGlyphSize(graphics, CheckBoxState.UncheckedNormal);
1253
Size
checkBoxSize;
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (5)
514
protected override
Size
GetPreferredSize(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex,
Size
constraintSize)
542
Size
preferredSize;
589
Size
glyphSize;
601
glyphSize =
Size
.Empty;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (7)
754
Size
size = GetSize(rowIndex);
755
Size
adjustedSize = new Size(size.Width - borderAndPaddingWidths.X - borderAndPaddingWidths.Width,
830
Size
preferredSize = TextRenderer.MeasureText(comboBox.GetItemText(item), comboBox.Font);
1357
protected override
Size
GetPreferredSize(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex,
Size
constraintSize)
1369
Size
preferredSize =
Size
.Empty;
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
436
protected override
Size
GetSize(int rowIndex)
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (7)
462
protected override
Size
GetPreferredSize(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex,
Size
constraintSize)
474
Size
preferredSize;
497
preferredSize =
Size
.Empty;
509
preferredSize =
Size
.Empty;
532
preferredSize =
Size
.Empty;
544
preferredSize =
Size
.Empty;
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (3)
649
protected override
Size
GetPreferredSize(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex,
Size
constraintSize)
661
Size
preferredSize;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (3)
5841
Size
hotDoubleClickZone = SystemInformation.DoubleClickSize;
9063
internal override
Size
GetPreferredSizeCore(
Size
proposedConstraints)
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (4)
195
Size
desiredSize = new Size(iconsWidth, iconsHeight);
645
protected override
Size
GetPreferredSize(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex,
Size
constraintSize)
978
Size
maxBounds = new Size(valBounds.Width - iconsWidth - 2 * DATAGRIDVIEWROWHEADERCELL_iconMarginWidth, valBounds.Height);
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (3)
424
protected override
Size
GetPreferredSize(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex,
Size
constraintSize)
436
Size
preferredSize;
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (2)
166
protected override
Size
GetPreferredSize(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex,
Size
constraintSize)
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (7)
169
internal static
Size
GetPreferredRowHeaderSize(Graphics graphics,
176
Size
constraintSize,
179
Size
preferredSize;
323
Size
sizeRequired = TextRenderer.MeasureText(text, font, new Size(System.Int32.MaxValue, System.Int32.MaxValue), flags);
330
Size
sizeCell = new Size(cellBounds.Width, cellBounds.Height);
331
Size
sizeConstraint = TextRenderer.MeasureText(text, font, sizeCell, flags);
348
Size
sizeText,
winforms\Managed\System\WinForms\DateTimePicker.cs (3)
529
protected override
Size
DefaultSize {
1191
internal override
Size
GetPreferredSizeCore(
Size
proposedConstraints) {
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (4)
38
private
Size
maxSize = System.Drawing.
Size
.Empty;
284
Size
size = new Size(bounds.Width + 3 * (BUTTON_PAD + xFrame) + selectorWidth,
393
Size
pageSize = page.Size;
winforms\Managed\System\WinForms\DomainUpDown.cs (2)
604
internal override
Size
GetPreferredSizeCore(
Size
proposedConstraints) {
winforms\Managed\System\WinForms\DrawListViewItemEventArgs.cs (1)
171
Size
textSize = TextRenderer.MeasureText(subItem.Text, subItem.Font);
winforms\Managed\System\WinForms\ErrorProvider.cs (7)
885
Size
mirrordcExtent =
Size
.Empty;
1054
mirrordcExtent =
Size
.Empty;
1176
Size
size = iconRegion.Size;
1521
internal Rectangle GetIconBounds(
Size
size) {
1697
Size
size = icon.Size;
1737
public
Size
Size {
winforms\Managed\System\WinForms\Form.cs (51)
199
private
Size
autoScaleBaseSize = System.Drawing.
Size
.Empty;
200
private
Size
minAutoSize =
Size
.Empty;
609
public virtual
Size
AutoScaleBaseSize {
663
minAutoSize =
Size
.Empty;
945
new public
Size
ClientSize {
1148
protected override
Size
DefaultSize {
1572
DefaultValue(typeof(
Size
), "0, 0")
1574
public override
Size
MaximumSize {
1579
return
Size
.Empty;
1606
Size
size = Size;
1732
public override
Size
MinimumSize {
1770
Size
size = Size;
2376
new public
Size
Size {
3368
Size
baseVar = AutoScaleBaseSize;
3372
Size
newVar = new Size((int)Math.Round(newVarF.Width), (int)Math.Round(newVarF.Height));
3407
Size
correctClientSize = ClientSize;
3443
Size
correct = ComputeWindowSize(correctClientSize);
3583
private
Size
ComputeWindowSize(
Size
clientSize) {
3592
private
Size
ComputeWindowSize(
Size
clientSize, int style, int exStyle) {
3989
Size
correct = ComputeWindowSize(ClientSize, maskedStyle, cp.ExStyle);
4121
internal override
Size
GetPreferredSizeCore(
Size
proposedSize) {
4125
Size
preferredSize = base.GetPreferredSizeCore(proposedSize);
4449
Size
s = Size;
4811
Size
prefSize = this.PreferredSize;
4816
Size
adjustedSize = AutoSizeMode == AutoSizeMode.GrowAndShrink ? prefSize : LayoutUtils.UnionSizes(prefSize, Size);
5061
Size
sz = ClientSize;
5171
protected virtual bool OnGetDpiScaledSize(int deviceDpiOld, int deviceDpiNew, ref
Size
desiredSize) {
5189
Size
desiredSize = new Size();
5680
Size
restoredSize = restoredWindowBounds.Size;
5791
Size
clientSize = ClientSize;
5792
Size
minSize = MinimumSize;
5793
Size
maxSize = MaximumSize;
5900
Size
max = SystemInformation.MaxWindowTrackSize;
5918
Size
min = SystemInformation.MinWindowTrackSize;
6350
autoScaleBaseSize =
Size
.Empty;
6591
Size
previousClientSize = ClientSize;
7157
Size
minTrack = (AutoSize && formStateEx[FormStateExInModalSizingLoop] == 1) ? LayoutUtils.UnionSizes(minAutoSize, MinimumSize) : MinimumSize;
7159
Size
maxTrack = MaximumSize;
7178
private void WmGetMinMaxInfoHelper(ref Message m,
Size
minTrack,
Size
maxTrack, Rectangle maximizedBounds) {
7200
Size
virtualScreen = SystemInformation.VirtualScreen.Size;
7211
Size
minTrackWindowSize = SystemInformation.MinWindowTrackSize;
7365
Size
clientSize = ClientSize;
7853
Size
s = SystemInformation.CaptionButtonSize;
7912
Size
s = SystemInformation.CaptionButtonSize;
7937
Size
s = SystemInformation.CaptionButtonSize;
winforms\Managed\System\WinForms\GDI\TextRenderer.cs (16)
223
public static
Size
MeasureText(string text, Font font )
227
return
Size
.Empty;
235
public static
Size
MeasureText(string text, Font font,
Size
proposedSize )
239
return
Size
.Empty;
247
public static
Size
MeasureText(string text, Font font,
Size
proposedSize, TextFormatFlags flags )
251
return
Size
.Empty;
258
public static
Size
MeasureText(IDeviceContext dc, string text, Font font)
266
return
Size
.Empty;
287
public static
Size
MeasureText(IDeviceContext dc, string text, Font font,
Size
proposedSize )
295
return
Size
.Empty;
317
public static
Size
MeasureText(IDeviceContext dc, string text, Font font,
Size
proposedSize, TextFormatFlags flags )
325
return
Size
.Empty;
winforms\Managed\System\WinForms\GroupBox.cs (10)
185
protected override
Size
DefaultSize {
202
Size
size = ClientSize;
559
Size
textSize;
576
textSize =
Size
.Ceiling(graphics.MeasureString(Text, Font, textRectangle.Width, format));
690
internal override
Size
GetPreferredSizeCore(
Size
proposedSize) {
693
Size
borderSize = SizeFromClientSize(
Size
.Empty);
694
Size
totalPadding = borderSize + new Size(0,fontHeight) + Padding.Size;
696
Size
prefSize = LayoutEngine.GetPreferredSize(this, proposedSize - totalPadding);
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (2)
171
Size
measuredBounds = TextRenderer.MeasureText(g, groupBoxText, font, new Size(textBounds.Width, textBounds.Height), flags);
264
Size
measuredBounds = TextRenderer.MeasureText(g, groupBoxText, font, new Size(textBounds.Width, textBounds.Height), flags);
winforms\Managed\System\WinForms\HScrollBar.cs (1)
55
protected override
Size
DefaultSize {
winforms\Managed\System\WinForms\HtmlWindow.cs (2)
201
public
Size
Size
432
public void ResizeTo(
Size
size)
winforms\Managed\System\WinForms\ImageList.cs (4)
48
private static
Size
DefaultImageSize = new Size(16, 16);
65
private
Size
imageSize = DefaultImageSize;
254
public
Size
ImageSize {
461
Size
size = bitmap.Size;
winforms\Managed\System\WinForms\Label.cs (17)
397
protected override
Size
DefaultSize {
1046
Size
preferredSize = (AutoSize) ? PreferredSize : new Size(saveWidth, saveHeight);
1087
Size
pointImageSize = image.Size;
1134
internal virtual TextFormatFlags CreateTextFormatFlags(
Size
constrainingSize){
1238
private
Size
GetBordersAndPadding() {
1239
Size
bordersAndPadding = Padding.Size;
1256
bordersAndPadding += SizeFromClientSize(
Size
.Empty);
1266
public override
Size
GetPreferredSize(
Size
proposedSize) {
1282
internal override
Size
GetPreferredSizeCore(
Size
proposedConstraints) {
1283
Size
bordersAndPadding = GetBordersAndPadding();
1288
proposedConstraints = LayoutUtils.UnionSizes(proposedConstraints,
Size
.Empty);
1290
Size
requiredSize;
1316
requiredSize =
Size
.Ceiling(measurementGraphics.MeasureString(Text, Font, bounds, stringFormat));
1538
Size
preferredSize = GetPreferredSize(new Size(clientRect.Width, clientRect.Height));
1677
Size
preferredSize = PreferredSize;
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (20)
47
internal static readonly
Size
DefaultMinimumSize = new Size(0, 0);
48
internal static readonly
Size
DefaultMaximumSize = new Size(0, 0);
115
internal static
Size
GetMaximumSize(IArrangedElement element,
Size
defaultMaximumSize) {
117
Size
size = element.Properties.GetSize(_maximumSizeProperty, out found);
127
internal static
Size
GetMinimumSize(IArrangedElement element,
Size
defaultMinimumSize) {
129
Size
size = element.Properties.GetSize(_minimumSizeProperty, out found);
205
internal static void SetMaximumSize(IArrangedElement element,
Size
value) {
226
internal static void SetMinimumSize(IArrangedElement element,
Size
value) {
325
Debug.Assert(xGetPreferredSizeCache(element) ==
Size
.Empty, "Error detected in xClearPreferredSizeCache.");
348
internal static
Size
xGetPreferredSizeCache(IArrangedElement element) {
350
Size
size = element.Properties.GetSize(_preferredSizeCacheProperty, out found);
354
return
Size
.Empty;
359
internal static void xSetPreferredSizeCache(IArrangedElement element,
Size
value) {
360
Debug.Assert(value ==
Size
.Empty || value != xGetPreferredSizeCache(element), "PERF: Caller should guard against setting PreferredSizeCache to original value.");
627
internal static
Size
GetLayoutBounds(IArrangedElement element) {
629
Size
size = element.Properties.GetSize(_layoutBoundsProperty, out found);
633
return
Size
.Empty;
648
internal static void SetLayoutBounds(IArrangedElement element,
Size
value) {
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (37)
39
Size
proposedConstraints = LayoutUtils.MaxSize;
47
Size
prefSize = element.GetPreferredSize(proposedConstraints);
59
Size
newSize = LayoutUtils.UnionSizes(bounds.Size, prefSize);
73
private static Rectangle GetGrowthBounds(IArrangedElement element,
Size
newSize) {
252
private static
Size
LayoutDockedControls(IArrangedElement container, bool measureOnly) {
260
Size
preferredSize =
Size
.Empty;
277
Size
elementSize = GetVerticalDockedSize(element, remainingBounds.Size, measureOnly);
288
Size
elementSize = GetVerticalDockedSize(element, remainingBounds.Size, measureOnly);
299
Size
elementSize = GetHorizontalDockedSize(element, remainingBounds.Size, measureOnly);
310
Size
elementSize = GetHorizontalDockedSize(element, remainingBounds.Size, measureOnly);
325
Size
elementSize = remainingBounds.Size;//GetFillDockedSize(element, remainingBounds.Size, measureOnly);
347
private static void xLayoutDockedControl(IArrangedElement element, Rectangle newElementBounds, bool measureOnly, ref
Size
preferredSize, ref Rectangle remainingBounds) {
349
Size
neededSize = new Size(
365
Size
elementPrefSize = element.GetPreferredSize(neededSize);
389
private static
Size
GetVerticalDockedSize(IArrangedElement element,
Size
remainingSize, bool measureOnly) {
390
Size
newSize = xGetDockedSize(element, remainingSize, /* constraints = */ new Size(remainingSize.Width, 1), measureOnly);
404
private static
Size
GetHorizontalDockedSize(IArrangedElement element,
Size
remainingSize, bool measureOnly) {
405
Size
newSize = xGetDockedSize(element, remainingSize, /* constraints = */ new Size(1, remainingSize.Height), measureOnly);
436
private static
Size
xGetDockedSize(IArrangedElement element,
Size
remainingSize,
Size
constraints, bool measureOnly) {
437
Size
desiredSize;
453
Size
garbage; // PreferredSize is garbage if we are not measuring.
458
private static bool xLayout(IArrangedElement container, bool measureOnly, out
Size
preferredSize) {
492
Size
preferredSizeForDocking =
Size
.Empty;
493
Size
preferredSizeForAnchoring =
Size
.Empty;
804
internal override
Size
GetPreferredSize(IArrangedElement container,
Size
proposedBounds) {
808
Size
prefSize;
822
private static
Size
GetAnchorPreferredSize(IArrangedElement container) {
823
Size
prefSize =
Size
.Empty;
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (25)
48
internal override
Size
GetPreferredSize(IArrangedElement container,
Size
proposedConstraints) {
58
Size
prefSize = xLayout(container, measureBounds, /* measureOnly = */ true);
96
private
Size
xLayout(IArrangedElement container, Rectangle displayRect, bool measureOnly) {
107
Size
layoutSize =
Size
.Empty;
117
Size
rowSize =
Size
.Empty;
151
Size
outSize = xLayoutRow(containerProxy, elementProxy, startIndex, endIndex, rowBounds, /* breakIndex = */ out dummy, /* measureOnly = */ false);
158
private
Size
MeasureRow(ContainerProxy containerProxy, ElementProxy elementProxy, int startIndex, Rectangle displayRectangle, out int breakIndex) {
163
private
Size
xLayoutRow(ContainerProxy containerProxy, ElementProxy elementProxy, int startIndex, int endIndex, Rectangle rowBounds, out int breakIndex, bool measureOnly) {
166
Size
rowSize =
Size
.Empty;
184
Size
prefSize;
186
Size
elementConstraints = new Size(Int32.MaxValue, rowBounds.Height - elementProxy.Margin.Size.Height);
212
Size
requiredSize = prefSize + elementProxy.Margin.Size;
580
public virtual
Size
MinimumSize {
581
get { return CommonProperties.GetMinimumSize(Element,
Size
.Empty); }
588
public virtual
Size
SpecifiedSize {
592
public virtual
Size
GetPreferredSize(
Size
proposedSize) {
628
public override
Size
MinimumSize {
632
public override
Size
SpecifiedSize {
636
public override
Size
GetPreferredSize(
Size
proposedSize) {
winforms\Managed\System\WinForms\Layout\IArrangedElement.cs (2)
27
Size
GetPreferredSize(
Size
proposedSize);
winforms\Managed\System\WinForms\Layout\LayoutEngine.cs (3)
28
internal virtual
Size
GetPreferredSize(IArrangedElement container,
Size
proposedConstraints) { return
Size
.Empty; }
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (55)
23
public static readonly
Size
MaxSize = new Size(Int32.MaxValue, Int32.MaxValue);
24
public static readonly
Size
InvalidSize = new Size(Int32.MinValue, Int32.MinValue);
53
public static
Size
OldGetLargestStringSizeInCollection(Font font, ICollection objects) {
54
Size
largestSize =
Size
.Empty;
57
Size
textSize = TextRenderer.MeasureText(obj.ToString(), font, new Size(Int16.MaxValue, Int16.MaxValue), TextFormatFlags.SingleLine);
130
public static
Size
ConvertZeroToUnbounded(
Size
size) {
196
public static
Size
UnionSizes(
Size
a,
Size
b) {
202
public static
Size
IntersectSizes(
Size
a,
Size
b) {
247
public static Rectangle AlignAndStretch(
Size
fitThis, Rectangle withinThis, AnchorStyles anchorStyles) {
251
public static Rectangle Align(
Size
alignThis, Rectangle withinThis, AnchorStyles anchorStyles) {
255
public static Rectangle Align(
Size
alignThis, Rectangle withinThis, ContentAlignment align) {
259
public static Rectangle HAlign(
Size
alignThis, Rectangle withinThis, AnchorStyles anchorStyles) {
271
private static Rectangle HAlign(
Size
alignThis, Rectangle withinThis, ContentAlignment align) {
283
public static Rectangle VAlign(
Size
alignThis, Rectangle withinThis, AnchorStyles anchorStyles) {
296
public static Rectangle VAlign(
Size
alignThis, Rectangle withinThis, ContentAlignment align) {
309
public static
Size
Stretch(
Size
stretchThis,
Size
withinThis, AnchorStyles anchorStyles) {
310
Size
stretchedSize = new Size(
339
public static
Size
AddAlignedRegion(
Size
textSize,
Size
imageSize, TextImageRelation relation) {
343
public static
Size
AddAlignedRegionCore(
Size
currentSize,
Size
contentSize, bool vertical) {
393
public static
Size
FlipSize(
Size
size) {
401
public static
Size
FlipSizeIf(bool condition,
Size
size) {
428
public static bool IsZeroWidthOrHeight(
Size
size) {
432
public static bool AreWidthAndHeightLarger(
Size
size1,
Size
size2){
436
public static void SplitRegion(Rectangle bounds,
Size
specifiedContent, AnchorStyles region1Align, out Rectangle region1, out Rectangle region2) {
498
public static
Size
SubAlignedRegion(
Size
currentSize,
Size
contentSize, TextImageRelation relation) {
502
public static
Size
SubAlignedRegionCore(
Size
currentSize,
Size
contentSize, bool vertical) {
531
private
Size
unconstrainedPreferredSize = LayoutUtils.InvalidSize;
551
public
Size
GetTextSize(string text, Font font,
Size
proposedConstraints, TextFormatFlags flags) {
600
Size
prefSize = TextRenderer.MeasureText(text, font, proposedConstraints, flags);
612
private
Size
GetUnconstrainedSize(string text, Font font, TextFormatFlags flags) {
630
public bool TextRequiresWordBreak(string text, Font font,
Size
size, TextFormatFlags flags) {
638
public PreferredSizeCache(
Size
constrainingSize,
Size
preferredSize) {
642
public
Size
ConstrainingSize;
643
public
Size
PreferredSize;
winforms\Managed\System\WinForms\Layout\TableLayout.cs (22)
193
Size
containerSize = container.DisplayRectangle.Size - new Size(cellBorderWidth, cellBorderWidth);
199
Size
usedSpace = ApplyStyles(containerInfo, containerSize, /*measureOnly=*/false);
225
internal override
Size
GetPreferredSize(IArrangedElement container,
Size
proposedConstraints) {
236
Size
prefSize = containerInfo.GetCachedPreferredSize(proposedConstraints, out isCacheValid);
252
Size
containerSize = container.DisplayRectangle.Size - new Size(cellBorderWidth * 2, cellBorderWidth * 2);
266
Size
cellBorderSize = new Size(cellBorderWidth, cellBorderWidth);
309
private void ExpandLastElement(ContainerInfo containerInfo,
Size
usedSpace,
Size
totalSpace) {
642
private
Size
ApplyStyles(ContainerInfo containerInfo,
Size
proposedConstraints, bool measureOnly) {
643
Size
preferredSize =
Size
.Empty;
689
private int InflateColumns(ContainerInfo containerInfo,
Size
proposedConstraints, bool measureOnly) {
736
maxWidth = GetElementSize(element,
Size
.Empty).Width;
798
private int InflateRows(ContainerInfo containerInfo,
Size
proposedConstraints, int expandLastElementWidth, bool measureOnly) {
857
private
Size
GetElementSize(IArrangedElement element,
Size
proposedConstraints) {
1776
public
Size
GetCachedPreferredSize(
Size
proposedContstraints, out bool isValid) {
1779
Size
cachedSize = CommonProperties.xGetPreferredSizeCache(Container);
1786
return
Size
.Empty;
winforms\Managed\System\WinForms\LinkLabel.cs (5)
678
Size
clientSize = new Size(clientRectWithPadding.Width, clientRectWithPadding.Height);
680
Size
textSize = TextRenderer.MeasureText(text, alwaysUnderlined, clientSize, flags);
1145
Size
preferredSize = GetPreferredSize(new Size(clientRect.Width, clientRect.Height));
1180
Size
finalRectSize = finalrect.Size.ToSize();
1182
Size
requiredSize = MeasureTextCache.GetTextSize(Text, Font, finalRectSize, CreateTextFormatFlags(finalRectSize));
winforms\Managed\System\WinForms\ListBox.cs (5)
413
protected override
Size
DefaultSize {
639
Size
oldSize = Size;
767
internal override
Size
GetPreferredSizeCore(
Size
proposedConstraints)
1360
Size
textSize = LayoutUtils.OldGetLargestStringSizeInCollection(Font, strings);
winforms\Managed\System\WinForms\ListView.cs (7)
157
private
Size
tileSize =
Size
.Empty;
782
protected override
Size
DefaultSize
1634
public
Size
TileSize {
1645
return
Size
.Empty;
1674
return !this.tileSize.Equals(
Size
.Empty);
5126
textWidth =
Size
.Ceiling(g.MeasureString(text, this.Font)).Width;
winforms\Managed\System\WinForms\MaskedTextBox.cs (3)
1960
internal override
Size
GetPreferredSizeCore(
Size
proposedConstraints)
1962
Size
size;
winforms\Managed\System\WinForms\MenuStrip.cs (1)
87
protected override
Size
DefaultSize {
winforms\Managed\System\WinForms\MonthCalendar.cs (14)
107
private static readonly
Size
DefaultSingleMonthSize = new Size(176, 153);
128
private
Size
dimensions = new Size(1, 1);
419
public
Size
CalendarDimensions {
470
protected override
Size
DefaultSize {
982
public
Size
SingleMonthSize {
1008
public new
Size
Size {
1320
Size
minSize = GetMinReqRect();
1454
private
Size
GetMinReqRect() {
1467
private
Size
GetMinReqRect(int newDimensionLength, bool updateRows, bool updateCols) {
1468
Size
minSize = SingleMonthSize;
1472
Size
textExtent;
1550
Size
preferredSize = GetMinReqRect(height, updateRows, false);
1561
Size
preferredSize = GetMinReqRect(width, false, updateCols);
1953
Size
max = SystemInformation.MaxWindowTrackSize;
winforms\Managed\System\WinForms\NativeMethods.cs (1)
3101
public System.Drawing.
Size
Size {
winforms\Managed\System\WinForms\NumericUpDown.cs (3)
816
internal override
Size
GetPreferredSizeCore(
Size
proposedConstraints) {
888
Size
digitSize = TextRenderer.MeasureText(ch.ToString(), this.Font);
winforms\Managed\System\WinForms\Padding.cs (3)
150
public
Size
Size {
190
/// Contracts a <see cref='System.Drawing.
Size
'/> by another <see cref='System.Drawing.
Size
'/>
winforms\Managed\System\WinForms\Panel.cs (6)
185
protected override
Size
DefaultSize {
191
internal override
Size
GetPreferredSizeCore(
Size
proposedSize) {
194
Size
borderSize = SizeFromClientSize(
Size
.Empty);
195
Size
totalPadding = borderSize + Padding.Size;
winforms\Managed\System\WinForms\PictureBox.cs (7)
60
private
Size
savedSize;
271
protected override
Size
DefaultSize {
461
Size
imageSize = image.Size;
1217
internal override
Size
GetPreferredSizeCore(
Size
proposedSize) {
1222
Size
bordersAndPadding = SizeFromClientSize(
Size
.Empty) + Padding.Size;
winforms\Managed\System\WinForms\PopupEventArgs.cs (3)
24
private
Size
size;
33
public PopupEventArgs(IWin32Window associatedWindow, Control associatedControl, bool isBalloon,
Size
size)
78
public
Size
ToolTipSize {
winforms\Managed\System\WinForms\Printing\PrintControllerWithStatusDialog.cs (1)
300
Size
clientSize = new Size(256, 122);
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (13)
37
Size
virtualSize = new Size(1,1);
57
private
Size
imageSize = System.Drawing.
Size
.Empty; // 100ths of inch, not pixels
331
private
Size
VirtualSize {
432
Size
pageSize = pageInfo[StartPage].PhysicalSize;
433
Size
controlPhysicalSize = new Size(PixelsToPhysical(new Point(Size), screendpi));
573
Size
controlPhysicalSize = new Size(PixelsToPhysical(new Point(Size), screendpi));
603
Size
pageSize = pageInfo[imageIndex].PhysicalSize;
678
private static
Size
PhysicalToPixels(
Size
physicalSize, Point dpi) {
692
private static
Size
PixelsToPhysical(
Size
pixels, Point dpi) {
760
internal void SetVirtualSizeNoInvalidate(
Size
value) {
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (7)
369
new public
Size
MaximumSize {
452
new public
Size
MinimumSize {
506
new public
Size
Size {
675
protected override
Size
DefaultMinimumSize {
864
new public
Size
AutoScrollMargin {
877
new public
Size
AutoScrollMinSize {
1184
public override
Size
AutoScaleBaseSize {
winforms\Managed\System\WinForms\ProgressBar.cs (1)
252
protected override
Size
DefaultSize {
winforms\Managed\System\WinForms\PropertyGrid.cs (10)
125
private static readonly
Size
DEFAULT_LARGE_BUTTON_SIZE = new Size(32, 32);
126
private static readonly
Size
DEFAULT_NORMAL_BUTTON_SIZE = new Size(16, 16);
127
private static
Size
largeButtonSize = DEFAULT_LARGE_BUTTON_SIZE;
128
private static
Size
normalButtonSize = DEFAULT_NORMAL_BUTTON_SIZE;
700
protected override
Size
DefaultSize {
2063
Size
size = bitmap.Size;
3201
Size
size = targetMove.Size;
4657
Size
size = child.Size;
5273
bindingSize = (SizeF) TextRenderer.MeasureText(g, text, font,
Size
.Ceiling(size), GetTextRendererFlags() );
5291
bindingSize = (SizeF) TextRenderer.MeasureText(g, text, font,
Size
.Ceiling(size), flags );
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (3)
92
Size
sz =
Size
.Ceiling(sizef);
140
Size
size = ClientSize;
winforms\Managed\System\WinForms\PropertyGridInternal\HotCommands.cs (1)
67
Size
sz = ClientSize;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (20)
325
Size
desiredSize = new Size(iconsWidth, iconsHeight);
1256
Size
size =
Size
.Ceiling(sizeF);
1633
Size
size = dropDownHolder.Size;
1712
Size
size = dropDownHolder.Size;
1921
Size
size = this.GetOurSize();
2114
private
Size
GetOurSize() {
2115
Size
size = ClientSize;
2117
Size
sizeWindow = Size;
2125
Size
sizeScroll = ScrollBar.Size;
2135
Size
size = this.GetOurSize();
2223
Size
sizeWindow = new Size(rect.Width,rect.Height);
3458
Size
sizeWindow = this.Size;
3490
Size
size = this.GetOurSize();
4426
Size
sizeBtn = DpiHelper.EnableDpiChangedHighDpiImprovements? new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(this.deviceDpi), RowHeight):
4528
Size
size = this.GetOurSize();
4894
Size
size = GetOurSize();
5460
private
Size
MinDropDownSize; // the minimum size for the control.
5702
Size
newSize = new Size(2 * DropDownHolderBorder + currentControl.Width, 2 * DropDownHolderBorder + currentControl.Height);
5998
Size
sz = new Size(2 * DropDownHolderBorder + ctl.Width, 2 * DropDownHolderBorder + ctl.Height);
winforms\Managed\System\WinForms\PropertyStore.cs (5)
125
public
Size
GetSize(int key, out bool found) {
141
return
Size
.Empty;
680
public void SetSize(int key,
Size
value) {
941
public
Size
Size;
942
public SizeWrapper(
Size
size){
winforms\Managed\System\WinForms\RadioButton.cs (5)
292
protected override
Size
DefaultSize {
316
internal override
Size
GetPreferredSizeCore(
Size
proposedConstraints) {
321
Size
textSize = TextRenderer.MeasureText(this.Text, this.Font);
322
Size
size = SizeFromClientSize(textSize);
winforms\Managed\System\WinForms\RadioButtonRenderer.cs (2)
217
public static
Size
GetGlyphSize(Graphics g, RadioButtonState state) {
221
internal static
Size
GetGlyphSize(Graphics g, RadioButtonState state, IntPtr hWnd) {
winforms\Managed\System\WinForms\RichTextBox.cs (6)
461
protected override
Size
DefaultSize {
558
internal override
Size
GetPreferredSizeCore(
Size
proposedConstraints) {
559
Size
scrollBarPadding =
Size
.Empty;
572
Size
prefSize = base.GetPreferredSizeCore(proposedConstraints);
winforms\Managed\System\WinForms\ScrollableControl.cs (11)
69
private
Size
userAutoScrollMinSize = System.Drawing.
Size
.Empty;
79
private
Size
scrollMargin = System.Drawing.
Size
.Empty;
84
private
Size
requestedScrollMargin = System.Drawing.
Size
.Empty;
160
public
Size
AutoScrollMargin {
208
public
Size
AutoScrollMinSize {
496
Size
layoutBounds = CommonProperties.GetLayoutBounds(this);
1024
AutoScrollMargin =
Size
.Empty;
1028
AutoScrollMinSize =
Size
.Empty;
winforms\Managed\System\WinForms\ScrollBarRenderer.cs (2)
180
public static
Size
GetThumbGripSize(Graphics g, ScrollBarState state) {
193
public static
Size
GetSizeBoxSize(Graphics g, ScrollBarState state) {
winforms\Managed\System\WinForms\SplitContainer.cs (3)
222
public new
Size
AutoScrollMinSize {
241
public new
Size
AutoScrollMargin {
456
protected override
Size
DefaultSize {
winforms\Managed\System\WinForms\Splitter.cs (2)
111
protected override
Size
DefaultSize {
747
Size
clientSize = parent.ClientSize;
winforms\Managed\System\WinForms\SplitterPanel.cs (4)
248
public new
Size
MinimumSize {
267
public new
Size
MaximumSize {
333
public new
Size
Size {
336
return
Size
.Empty;
winforms\Managed\System\WinForms\StatusBar.cs (3)
99
Size
elementSize;
248
protected override
Size
DefaultSize {
596
Size
sz = Size;
winforms\Managed\System\WinForms\StatusBarPanel.cs (2)
556
Size
sz =
Size
.Ceiling(g.MeasureString(text, parent.Font));
winforms\Managed\System\WinForms\StatusStrip.cs (4)
80
protected override
Size
DefaultSize {
225
Size
statusStripSize = this.Size;
305
internal override
Size
GetPreferredSizeCore(
Size
proposedSize) {
winforms\Managed\System\WinForms\SystemInformation.cs (28)
161
public static
Size
PrimaryMonitorSize {
239
public static
Size
BorderSize {
253
public static
Size
GetBorderSizeForDpi(int dpi) {
269
public static
Size
FixedFrameBorderSize {
333
public static
Size
IconSize {
346
public static
Size
CursorSize {
562
public static
Size
MinimumWindowSize {
576
public static
Size
CaptionButtonSize {
589
public static
Size
FrameBorderSize {
603
public static
Size
MinWindowTrackSize {
618
public static
Size
DoubleClickSize {
646
public static
Size
IconSpacingSize {
725
public static
Size
Border3DSize {
738
public static
Size
MinimizedWindowSpacingSize {
752
public static
Size
SmallIconSize {
779
public static
Size
ToolWindowCaptionButtonSize {
793
public static
Size
MenuButtonSize {
832
public static
Size
MinimizedWindowSize {
846
public static
Size
MaxWindowTrackSize {
860
public static
Size
PrimaryMonitorMaximizedWindowSize {
915
public static
Size
DragSize {
943
public static
Size
MenuCheckSize {
1040
Size
size = PrimaryMonitorSize;
1380
public static
Size
MouseHoverSize {
1910
public static
Size
SmallCaptionButtonSize {
1921
return
Size
.Empty;
1934
public static
Size
MenuBarButtonSize {
1945
return
Size
.Empty;
winforms\Managed\System\WinForms\TabControl.cs (8)
46
private static readonly
Size
DEFAULT_ITEMSIZE =
Size
.Empty;
54
private
Size
itemSize = DEFAULT_ITEMSIZE;
61
private
Size
cachedSize =
Size
.Empty;
285
protected override
Size
DefaultSize {
554
public
Size
ItemSize {
1635
Size
size = Size;
winforms\Managed\System\WinForms\TabPage.cs (4)
353
[DefaultValue(typeof(
Size
), "0, 0")]
355
public override
Size
MaximumSize {
365
public override
Size
MinimumSize {
375
public new
Size
PreferredSize {
winforms\Managed\System\WinForms\TextBox.cs (5)
439
internal override
Size
GetPreferredSizeCore(
Size
proposedConstraints) {
440
Size
scrollBarPadding =
Size
.Empty;
452
Size
prefSize = base.GetPreferredSizeCore(proposedConstraints);
winforms\Managed\System\WinForms\TextBoxBase.cs (7)
570
protected override
Size
DefaultSize {
957
internal override
Size
GetPreferredSizeCore(
Size
proposedConstraints)
964
Size
bordersAndPadding = SizeFromClientSize(
Size
.Empty) + Padding.Size;
987
Size
textSize = TextRenderer.MeasureText(this.Text, this.Font, proposedConstraints, format);
991
Size
preferredSize = textSize + bordersAndPadding;
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (3)
235
Size
textSize = new Size(scaledMaxWidth - scaledPaddingWidth, int.MaxValue);
239
textSize =
Size
.Ceiling(TextRenderer.MeasureText(messageText, Font, textSize, TextFormatFlags.WordBreak));
243
textSize =
Size
.Ceiling(g.MeasureString(messageText, Font, textSize.Width));
winforms\Managed\System\WinForms\ToolBar.cs (7)
42
internal
Size
buttonSize = System.Drawing.
Size
.Empty;
373
public
Size
ButtonSize {
478
protected override
Size
DefaultSize {
658
public
Size
ImageSize {
1309
Size
size = Size;
1434
buttonSize =
Size
.Empty;
winforms\Managed\System\WinForms\ToolBarButton.cs (5)
472
Size
edge = SystemInformation.Border3DSize;
479
Size
buttonSize = this.parent.buttonSize;
485
Size
imageSize = this.parent.ImageSize;
486
Size
textSize =
Size
.Ceiling(g.MeasureString(Text, parent.Font));
winforms\Managed\System\WinForms\ToolStrip.cs (39)
51
private static
Size
onePixel = new Size(1,1);
86
private
Size
largestDisplayedItemSize =
Size
.Empty;
90
private
Size
imageScalingSize;
223
Size
defaultSize = DefaultSize;
311
public new
Size
AutoScrollMargin {
325
public new
Size
AutoScrollMinSize {
651
protected override
Size
DefaultSize {
1045
DefaultValue(typeof(
Size
), "16,16"),
1049
public
Size
ImageScalingSize {
1058
internal virtual
Size
ImageScalingSizeInternal {
1463
protected internal virtual
Size
MaxItemSize {
2445
internal override
Size
GetPreferredSizeCore(
Size
proposedSize) {
2458
Size
prefSize = LayoutEngine.GetPreferredSize(this, proposedSize - padding.Size);
2476
internal static
Size
GetPreferredSizeHorizontal(IArrangedElement container,
Size
proposedConstraints) {
2477
Size
maxSize =
Size
.Empty;
2481
Size
defaultSize = toolStrip.DefaultSize - toolStrip.Padding.Size;
2494
Size
prefItemSize = GetPreferredItemSize(item);
2534
internal static
Size
GetPreferredSizeVertical(IArrangedElement container,
Size
proposedConstraints) {
2535
Size
maxSize =
Size
.Empty;
2548
Size
preferredSize = GetPreferredItemSize(item);
2589
private static
Size
GetPreferredItemSize(ToolStripItem item) {
2590
return item.AutoSize ? item.GetPreferredSize(
Size
.Empty) : item.Size;
3629
Size
bitmapSize = this.largestDisplayedItemSize;
3704
Size
itemSize = item.Size;
4328
internal void SetLargestItemSize(
Size
size) {
4351
Size
biggestItemSize =
Size
.Empty; // used in determining OnPaint caching.
4568
Size
invalidDefaultSize = new Size(-1,-1);
4696
Size
size = CommonProperties.GetSpecifiedBounds(this).Size;
5219
private
Size
cachedHDCSize =
Size
.Empty;
5224
public HandleRef GetCachedItemDC(HandleRef toolStripHDC,
Size
bitmapSize) {
5269
cachedHDCSize =
Size
.Empty;
winforms\Managed\System\WinForms\ToolStripButton.cs (3)
209
public override
Size
GetPreferredSize(
Size
constrainingSize) {
210
Size
prefSize = base.GetPreferredSize(constrainingSize);
winforms\Managed\System\WinForms\ToolStripComboBox.cs (4)
206
protected override
Size
DefaultSize {
492
public override
Size
GetPreferredSize(
Size
constrainingSize) {
495
Size
preferredSize = base.GetPreferredSize(constrainingSize);
winforms\Managed\System\WinForms\ToolStripContainer.cs (3)
84
public new
Size
AutoScrollMargin {
94
public new
Size
AutoScrollMinSize {
274
protected override
Size
DefaultSize {
winforms\Managed\System\WinForms\ToolStripContentPanel.cs (4)
84
public new
Size
AutoScrollMargin {
93
public new
Size
AutoScrollMinSize {
219
public override
Size
MinimumSize {
229
public override
Size
MaximumSize {
winforms\Managed\System\WinForms\ToolStripControlHost.cs (5)
176
protected override
Size
DefaultSize {
464
public override
Size
Size {
615
public override
Size
GetPreferredSize(
Size
constrainingSize) {
812
Size
size = LayoutUtils.DeflateRect(this.Bounds, this.Padding).Size;
winforms\Managed\System\WinForms\ToolStripDropDown.cs (10)
623
internal override
Size
ImageScalingSizeInternal {
724
protected internal override
Size
MaxItemSize {
1094
Size
size = GetSuggestedSize();
1273
internal
Size
GetSuggestedSize() {
1275
return GetPreferredSize(
Size
.Empty);
1698
Size
clientSize = ClientSize;
1699
Size
minSize = MinimumSize;
1700
Size
maxSize = MaximumSize;
1732
Size
minSize = MinimumSize;
1733
Size
maxSize = MaximumSize;
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (5)
233
private static readonly
Size
dropDownArrowSizeUnscaled = new Size(5, 3);
234
private static
Size
dropDownArrowSize = dropDownArrowSizeUnscaled;
255
public override
Size
GetPreferredSize(
Size
constrainingSize) {
257
Size
preferredSize = base.GetPreferredSize(constrainingSize);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (26)
39
private
Size
maxItemSize =
Size
.Empty;
59
private static readonly
Size
DefaultImageSize = new Size(16, 16);
61
private
Size
scaledDefaultImageSize = DefaultImageSize;
206
protected internal override
Size
MaxItemSize {
334
Size
maxTextSize =
Size
.Empty;
335
Size
maxImageSize =
Size
.Empty;
336
Size
maxCheckSize = scaledDefaultImageSize;
337
Size
maxArrowSize =
Size
.Empty;
338
Size
maxNonMenuItemSize =
Size
.Empty;
347
Size
menuItemTextSize = menuItem.GetTextSize();
350
Size
shortcutTextSize = menuItem.GetShortcutTextSize();
363
Size
imageSize =
Size
.Empty;
372
Size
checkedImageSize = menuItem.CheckedImage.Size;
779
Size
upSize = UpScrollButton.GetPreferredSize(
Size
.Empty);
785
Size
downSize = DownScrollButton.GetPreferredSize(
Size
.Empty);
830
internal override
Size
GetPreferredSize(IArrangedElement container,
Size
proposedConstraints) {
831
Size
preferredSize = base.GetPreferredSize(container, proposedConstraints);
winforms\Managed\System\WinForms\ToolStripGrip.cs (5)
25
private static
Size
DragSize = LayoutUtils.MaxSize;
104
public override
Size
GetPreferredSize(
Size
constrainingSize) {
105
Size
preferredSize =
Size
.Empty;
winforms\Managed\System\WinForms\ToolStripItem.cs (30)
67
private
Size
cachedTextSize =
Size
.Empty;
604
content.Size = LayoutUtils.UnionSizes(
Size
.Empty, content.Size);
730
protected virtual
Size
DefaultSize {
1906
internal
Size
PreferredImageSize {
1910
return
Size
.Empty;
1924
Size
imageSize =
Size
.Empty;
1929
imageSize = (image == null) ?
Size
.Empty : image.Size;
2185
public virtual
Size
Size {
2713
public virtual
Size
GetPreferredSize(
Size
constrainingSize) {
2720
internal
Size
GetTextSize() {
2722
return
Size
.Empty;
2724
else if (cachedTextSize ==
Size
.Empty) {
3196
cachedTextSize =
Size
.Empty;
3385
cachedTextSize =
Size
.Empty;
4603
private readonly static
Size
INVALID_SIZE = new Size(Int32.MinValue,Int32.MinValue);
4605
private
Size
lastPreferredSize = INVALID_SIZE;
4639
public
Size
PreferredImageSize {
4751
public virtual
Size
GetPreferredSize(
Size
constrainingSize) {
4752
Size
preferredSize =
Size
.Empty;
4765
return
Size
.Empty;
4781
Size
cachedSize = LayoutUtils.InvalidSize;
4782
Size
cachedProposedConstraints = LayoutUtils.InvalidSize;
4785
protected override
Size
GetTextSize(
Size
proposedConstraints) {
4803
private
Size
size;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (13)
59
private
Size
cachedShortcutSize =
Size
.Empty;
63
private static readonly
Size
checkMarkBitmapSize = new Size(16, 16);
66
private
Size
scaledCheckMarkBitmapSize = checkMarkBitmapSize;
159
cachedShortcutSize =
Size
.Empty;
195
protected override
Size
DefaultSize {
322
private static Bitmap GetBitmapFromIcon(string iconName,
Size
desiredIconSize)
832
internal
Size
GetShortcutTextSize() {
834
return
Size
.Empty;
838
return
Size
.Empty;
840
else if (cachedShortcutSize ==
Size
.Empty) {
1551
public override
Size
GetPreferredSize(
Size
constrainingSize) {
winforms\Managed\System\WinForms\ToolStripOverflow.cs (4)
120
public override
Size
GetPreferredSize(
Size
constrainingSize) {
151
Size
biggestItemSize =
Size
.Empty;
winforms\Managed\System\WinForms\ToolStripOverflowButton.cs (3)
106
public override
Size
GetPreferredSize(
Size
constrainingSize) {
107
Size
preferredSize = constrainingSize;
winforms\Managed\System\WinForms\ToolStripPanel.cs (3)
86
this.MinimumSize =
Size
.Empty; // consider 1,1
126
public new
Size
AutoScrollMargin {
135
public new
Size
AutoScrollMinSize {
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (6)
28
private
Size
maxSize = LayoutUtils.MaxSize;
121
public
Size
MaximumSize {
235
public override
Size
GetPreferredSize(
Size
constrainingSize) {
237
Size
preferredSize =
Size
.Empty;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (11)
342
internal
Size
GetMinimumSize(ToolStrip toolStrip) {
343
if (toolStrip.MinimumSize ==
Size
.Empty) {
444
Size
minSize = GetMinimumSize(currentCell.Control as ToolStrip);
526
Size
minSize = GetMinimumSize(currentCell.Control as ToolStrip);
668
Size
IArrangedElement.GetPreferredSize(
Size
constrainingSize) {
669
Size
preferredSize = LayoutEngine.GetPreferredSize(this, constrainingSize - Padding.Size) + Padding.Size;
989
Size
totalSize =
Size
.Empty;
1500
Size
totalSize =
Size
.Empty;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (1)
27
private static readonly
Size
onePix = new Size(1, 1);
winforms\Managed\System\WinForms\ToolStripProgressBar.cs (1)
91
protected override System.Drawing.
Size
DefaultSize {
winforms\Managed\System\WinForms\ToolStripRenderer.cs (2)
936
Size
textSize = LayoutUtils.FlipSize(textRect.Size);
1078
Size
size = normalImage.Size;
winforms\Managed\System\WinForms\ToolStripScrollButton.cs (4)
151
public override
Size
GetPreferredSize(
Size
constrainingSize) {
152
Size
preferredSize =
Size
.Empty;
winforms\Managed\System\WinForms\ToolStripSeparator.cs (3)
91
protected override
Size
DefaultSize {
408
public override
Size
GetPreferredSize(
Size
constrainingSize) {
winforms\Managed\System\WinForms\ToolStripSettings.cs (3)
70
public
Size
Size {
72
return (
Size
) this["Size"];
370
public
Size
Size;
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (3)
426
public override
Size
GetPreferredSize(
Size
constrainingSize) {
427
Size
preferredSize = SplitButtonButtonLayout.GetPreferredSize(constrainingSize);
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (17)
53
private
Size
OverflowButtonSize {
57
return
Size
.Empty;
61
Size
overflowButtonSize = toolStrip.OverflowButton.AutoSize ? toolStrip.OverflowButton.GetPreferredSize(displayRectangle.Size) : toolStrip.OverflowButton.Size;
121
Size
itemSize = item.AutoSize ? item.GetPreferredSize(this.displayRectangle.Size) : item.Size;
171
Size
itemSize = item.AutoSize ? item.GetPreferredSize(displayRectangle.Size) : item.Size;
193
internal override
Size
GetPreferredSize(IArrangedElement container,
Size
proposedConstraints) {
253
Size
itemSize =
Size
.Empty;
299
itemSize = item.AutoSize ? item.GetPreferredSize(
Size
.Empty) : item.Size;
393
Size
itemSize =
Size
.Empty;
397
Size
toolStripPreferredSize = displayRectangle.Size;
402
toolStripPreferredSize = ToolStrip.GetPreferredSizeVertical(toolStrip,
Size
.Empty) - toolStrip.Padding.Size;
435
itemSize = item.AutoSize ? item.GetPreferredSize(
Size
.Empty) : item.Size;
511
private void SetItemLocation(ToolStripItem item, Point itemLocation,
Size
itemSize) {
609
Size
itemSize = item.AutoSize ? item.GetPreferredSize(displayRectangle.Size) : item.Size;
winforms\Managed\System\WinForms\ToolStripStatusLabel.cs (2)
217
public override System.Drawing.
Size
GetPreferredSize(System.Drawing.
Size
constrainingSize) {
winforms\Managed\System\WinForms\ToolStripTextBox.cs (3)
104
protected override
Size
DefaultSize {
165
public override
Size
GetPreferredSize(
Size
constrainingSize) {
winforms\Managed\System\WinForms\ToolTip.cs (5)
1761
Size
bubbleSize;
1781
private bool TryGetBubbleSize(IKeyboardToolTip tool, Rectangle toolRectangle, out
Size
bubbleSize) {
1791
bubbleSize =
Size
.Empty;
2159
private void Reposition(Point tipPosition,
Size
tipSize) {
2304
Size
currentTooltipSize = r.Size;
winforms\Managed\System\WinForms\TrackBar.cs (1)
246
protected override
Size
DefaultSize {
winforms\Managed\System\WinForms\TrackBarRenderer.cs (4)
217
public static
Size
GetLeftPointingThumbSize(Graphics g, TrackBarThumbState state) {
230
public static
Size
GetRightPointingThumbSize(Graphics g, TrackBarThumbState state) {
243
public static
Size
GetTopPointingThumbSize(Graphics g, TrackBarThumbState state) {
256
public static
Size
GetBottomPointingThumbSize(Graphics g, TrackBarThumbState state) {
winforms\Managed\System\WinForms\TreeNode.cs (1)
639
Size
size = tv.ClientSize;
winforms\Managed\System\WinForms\TreeView.cs (6)
102
private static
Size
? scaledStateImageSize = null;
103
private static
Size
? ScaledStateImageSize {
426
protected override
Size
DefaultSize {
1908
internalStateImageList.ImageSize = (
Size
)ScaledStateImageSize;
2071
newImageList.ImageSize = (
Size
)ScaledStateImageSize;
2826
Size
textSize = TextRenderer.MeasureText(node.Text, node.TreeView.Font);
winforms\Managed\System\WinForms\UpDownBase.cs (5)
140
new public
Size
AutoScrollMargin {
156
new public
Size
AutoScrollMinSize {
378
protected override
Size
DefaultSize {
453
public override
Size
MaximumSize {
461
public override
Size
MinimumSize {
winforms\Managed\System\WinForms\UserControl.cs (1)
221
protected override
Size
DefaultSize {
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (3)
737
public
Size
GetPartSize(IDeviceContext dc, ThemeSizeType type) {
741
internal
Size
GetPartSize(IDeviceContext dc, ThemeSizeType type, IntPtr hWnd) {
774
public
Size
GetPartSize(IDeviceContext dc, Rectangle bounds, ThemeSizeType type) {
winforms\Managed\System\WinForms\VScrollBar.cs (1)
57
protected override
Size
DefaultSize {
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1232
protected override
Size
DefaultSize {
winforms\Managed\System\WinForms\WebBrowserBase.cs (7)
81
private
Size
webBrowserBaseChangingSize =
Size
.Empty;
848
Size
extent = Size;
1150
private
Size
SetExtent(int width, int height) {
1174
private
Size
GetExtent() {
1331
protected override
Size
DefaultSize {
1984
Size
s = WebBrowserBase.webBrowserBaseChangingSize;
winforms\Managed\System\WinForms\WinFormsUtils.cs (1)
38
public static readonly
Size
UninitializedSize = new Size(-7199369, -5999471);
System.Windows.Forms.DataVisualization (74)
Common\Converters\LegendConverters.cs (3)
254
values.Add(System.Drawing.
Size
.Empty);
271
if(((System.Drawing.
Size
)value).IsEmpty)
292
return System.Drawing.
Size
.Empty;
Common\General\ChartGraphics.cs (2)
2677
internal
Size
MeasureStringAbs( string text, Font font )
2694
internal
Size
MeasureStringAbs( string text, Font font, SizeF layoutArea, StringFormat stringFormat )
Common\General\Legend.cs (41)
294
private
Size
_offset =
Size
.Empty;
392
internal
Size
singleWCharacterSize =
Size
.Empty;
449
Size
doubleCharacterSize = chartGraph.MeasureStringAbs("WW", this.Font);
470
Size
titleSize = this.GetTitleSize(chartGraph, legendPosition.Size);
493
Size
highestHeader =
Size
.Empty;
499
Size
headerSize = this.GetHeaderSize(chartGraph, legendColumn);
707
Size
itemHalfSpacing =
Size
.Empty;
804
Size
itemHalfSpacing)
873
this._offset =
Size
.Empty;
884
Size
optimalSize =
Size
.Empty;
888
Size
maxSize = new Size((int)maxSizeAbs.Width, (int)maxSizeAbs.Height);
916
Size
doubleCharacterSize = chartGraph.MeasureStringAbs("WW", this.Font);
933
Size
titleSize =
Size
.Empty;
943
Size
highestHeader =
Size
.Empty;
949
Size
headerSize = this.GetHeaderSize(chartGraph, legendColumn);
959
Size
legenItemsMaxSize = maxSize;
1214
Size
legendSize,
1243
Size
legendSize,
1702
Size
legendItemsAreaSize,
1741
Size
doubleCharacterSize = graph.MeasureStringAbs("WW", (this.autofitFont == null) ? this.Font : this.autofitFont);
1785
Size
cellSize = legendCell.MeasureCell(
1892
Size
headerTextSize = graph.MeasureStringAbs(legendColumn.HeaderText + "I", legendColumn.HeaderFont);
2330
this._offset =
Size
.Empty;
3971
private
Size
GetTitleSize(ChartGraphics chartGraph,
Size
titleMaxSize)
3973
Size
titleSize =
Size
.Empty;
4003
private
Size
GetHeaderSize(ChartGraphics chartGraph, LegendCellColumn legendColumn)
4005
Size
headerSize =
Size
.Empty;
4372
internal
Size
GetSeparatorSize(LegendSeparatorStyle separatorType)
4374
Size
size =
Size
.Empty;
4378
size =
Size
.Empty;
Common\General\LegendColumns.cs (20)
146
private
Size
_seriesSymbolSize = new Size(200, 70);
392
DefaultValue(typeof(
Size
), "200, 70"),
395
public virtual
Size
SeriesSymbolSize
844
private
Size
_imageSize =
Size
.Empty;
847
private
Size
_seriesSymbolSize = new Size(200, 70);
884
private
Size
_cachedCellSize =
Size
.Empty;
1182
DefaultValue(typeof(
Size
), "0, 0"),
1186
public virtual
Size
ImageSize
1209
DefaultValue(typeof(
Size
), "200, 70"),
1212
public virtual
Size
SeriesSymbolSize
1426
this._cachedCellSize =
Size
.Empty;
1439
Size
singleWCharacterSize)
1479
internal
Size
MeasureCell(
1483
Size
singleWCharacterSize)
1493
Size
cellSize =
Size
.Empty;
1912
Size
singleWCharacterSize)
2087
Size
singleWCharacterSize)
Common\Utilities\XmlSerializer.cs (4)
2721
else if(obj is
Size
)
2724
writer.Write(((
Size
)obj).Width);
2725
writer.Write(((
Size
)obj).Height);
3133
else if(pi.PropertyType == typeof(
Size
))
WinForm\ChartWinControl.cs (3)
709
protected override
Size
DefaultSize
1369
DefaultValue(typeof(
Size
), "300, 300"),
1372
public new
Size
Size
WinForm\Utilities\AccessibleObject.cs (1)
321
rect.Size =
Size
.Round(rectSize);
System.Workflow.Activities (95)
Designers\SetStateDesigner.cs (9)
31
private
Size
targetStateSize =
Size
.Empty;
44
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
55
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
89
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
96
Size
size = new Size(
142
protected override
Size
OnLayoutSize(ActivityDesignerLayoutEventArgs e)
144
Size
size = base.OnLayoutSize(e);
160
Size
.Empty);
Designers\StateDesigner.cs (18)
43
internal static
Size
Separator = new Size(30, 30);
53
private
Size
_stateSize;
55
private
Size
_stateMinimumSize;
56
private
Size
_minimumSize =
Size
.Empty;
236
public override
Size
Size
268
Size
newSize = base.Size;
552
_minimumSize =
Size
.Empty;
729
public override
Size
MinimumSize
1463
Size
newSize = new Size(this.Size.Width, this.Size.Height + ((maximumY + DefaultStateDesignerAutoLayoutDistance) - this.Bounds.Bottom));
1497
Size
newSize =
Size
.Empty;
1513
protected override
Size
OnLayoutSize(ActivityDesignerLayoutEventArgs e)
1527
_minimumSize =
Size
.Empty;
1528
this.Size =
Size
.Empty;
1535
Size
newSize = base.OnLayoutSize(e);
2574
private
Size
_connectorSize = new Size(20, 20);
2585
public override
Size
ConnectorSize
Designers\StateDesigner.Layouts.cs (51)
87
private
Size
_size;
88
private
Size
_minimumSize;
148
public
Size
Size
181
public virtual
Size
MinimumSize
211
public virtual void ResizeLayout(
Size
newSize)
232
public virtual void OnLayoutSize(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme,
Size
containerSize)
388
private
Size
_textSize;
389
private
Size
_imageSize;
441
public override void OnLayoutSize(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme,
Size
containerSize)
448
_textSize = StateMachineDesignerPaint.MeasureString(graphics, font, text, StringAlignment.Near,
Size
.Empty);
453
Size
size = new Size(width, height);
644
public override void ResizeLayout(
Size
newSize)
650
Size
size = layout.Size;
658
public override void OnLayoutSize(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme,
Size
containerSize)
660
Size
selectionSize = ambientTheme.SelectionSize;
661
Size
minimumSize = new Size();
677
Size
size = new Size();
685
Size
selectionSize = ambientTheme.SelectionSize;
727
private
Size
_breadCrumbSeparatorSize;
756
public override void OnLayoutSize(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme,
Size
containerSize)
767
_breadCrumbSeparatorSize = StateMachineDesignerPaint.MeasureString(graphics, font, BreadCrumbSeparator, StringAlignment.Near,
Size
.Empty);
768
Size
size =
Size
.Empty;
843
public override void OnLayoutSize(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme,
Size
containerSize)
849
Size
size =
Size
.Empty;
852
size = StateMachineDesignerPaint.MeasureString(graphics, compositeDesignerTheme.Font, text, StringAlignment.Center,
Size
.Empty);
888
public override void OnLayoutSize(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme,
Size
containerSize)
893
Size
size =
Size
.Empty;
961
public override void OnLayoutSize(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme,
Size
containerSize)
965
Size
minimumSize = new Size();
966
_textLayout.OnLayoutSize(graphics, designerTheme, ambientTheme,
Size
.Empty);
967
_imageLayout.OnLayoutSize(graphics, designerTheme, ambientTheme,
Size
.Empty);
974
Size
size = minimumSize;
981
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
1032
public override void ResizeLayout(
Size
newSize)
1040
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
1067
private static readonly
Size
RealMinimumSize = new Size(160, 80);
1098
public override
Size
MinimumSize
1102
Size
minimumSize = base.MinimumSize;
1121
public override void OnLayoutSize(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme,
Size
containerSize)
1127
Size
size = containerSize;
1204
Size
size = new Size(this.Size.Width, this.Size.Height - _titleBarLayout.Bounds.Height);
1242
public override void ResizeLayout(
Size
newSize)
1312
public override void OnLayoutSize(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme,
Size
containerSize)
1318
Size
size = containerSize;
1319
Size
minSize = this.StateDesigner.MinimumSize;
1324
Size
activeDesignerSize = activeDesigner.Size;
1384
Size
activeDesignerSize = this.StateDesigner.ActiveDesigner.Size;
1402
public override void ResizeLayout(
Size
newSize)
Designers\StateDesignerConnector.cs (6)
174
Size
arrowCapSize = new Size(theme.ConnectorSize.Width / 5, theme.ConnectorSize.Height / 5);
175
Size
maxCapSize = theme.ConnectorSize;
211
Size
arrowCapSize = new Size(theme.ConnectorSize.Width / 5, theme.ConnectorSize.Height / 5);
212
Size
maxCapSize = theme.ConnectorSize;
226
Size
size = (Source != null) ? Source.Bounds.Size :
Size
.Empty;
Designers\StateMachineDesignerPaint.cs (5)
29
internal static
Size
MeasureString(Graphics graphics, Font font, string text, StringAlignment alignment,
Size
maxSize)
108
internal static void DrawConnector(Graphics graphics, Pen pen, Point[] points,
Size
connectorCapSize,
Size
maxCapSize, LineAnchor startConnectorCap, LineAnchor endConnectorCap)
379
Size
capSize = new Size(capsize, capsize);
Designers\StateMachineWorkflowDesigner.cs (3)
26
private static readonly
Size
MinSize = new Size(240, 240);
75
public override
Size
MinimumSize
79
Size
minimumSize = base.MinimumSize;
Designers\WhileDesigner.cs (2)
80
protected override
Size
OnLayoutSize(ActivityDesignerLayoutEventArgs e)
82
Size
containerSize = base.OnLayoutSize(e);
Rules\Design\Dialogs\IntellisenseTextBox.cs (1)
439
Size
topLevelControlSize = (TopLevelControl is Form) ? ((Form)TopLevelControl).ClientSize : TopLevelControl.Size;
System.Workflow.ComponentModel (355)
AuthoringOM\Design\ActivityDesigner.cs (19)
72
private
Size
size =
Size
.Empty;
75
private
Size
textSize =
Size
.Empty;
228
public virtual
Size
Size
248
public virtual
Size
MinimumSize
1698
protected virtual
Size
OnLayoutSize(ActivityDesignerLayoutEventArgs e)
1711
Size
actualTextSize = ActivityDesignerPaint.MeasureString(e.Graphics, e.DesignerTheme.BoldFont, Text, StringAlignment.Center,
Size
.Empty);
1712
Size
requestedLineSize = actualTextSize;
1732
this.textSize =
Size
.Empty;
1735
Size
size =
Size
.Empty;
3037
Size
glyphSize = WorkflowTheme.CurrentTheme.AmbientTheme.GlyphSize;
3038
Size
imageSize = rectangle.Size;
3040
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
3089
Size
glyphSize = WorkflowTheme.CurrentTheme.AmbientTheme.GlyphSize;
3090
Size
imageSize = designer.SmartTagRectangle.Size;
3092
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (7)
296
else if (typeof(System.Drawing.
Size
) == objectType)
360
return (value is System.Drawing.
Size
);
366
if (obj is
Size
)
368
properties.Add(typeof(
Size
).GetProperty("Width"));
369
properties.Add(typeof(
Size
).GetProperty("Height"));
388
object size =
Size
.Empty;
393
TypeConverter converter = TypeDescriptor.GetConverter(typeof(
Size
));
AuthoringOM\Design\ActivityPreviewDesigner.cs (8)
156
Size
moveDelta = new Size(value.X - base.Location.X, value.Y - base.Location.Y);
604
protected override
Size
OnLayoutSize(ActivityDesignerLayoutEventArgs e)
606
Size
size = base.OnLayoutSize(e);
612
Size
containerSize =
Size
.Empty;
650
Size
margins = new Size(2 * e.AmbientTheme.Margin.Width + 2 * e.AmbientTheme.SelectionSize.Width, 2 * e.AmbientTheme.Margin.Height + 2 * e.AmbientTheme.SelectionSize.Height);
935
Size
selectionSize = new Size(Math.Max(itemBounds.Width / 6, 1), Math.Max(itemBounds.Height / 6, 1));
987
Size
configErrorSize = WorkflowTheme.CurrentTheme.AmbientTheme.GlyphSize;
AuthoringOM\Design\CompositeActivityDesigner.cs (22)
48
private
Size
actualTextSize =
Size
.Empty;
214
Size
moveDelta = new Size(value.X - base.Location.X, value.Y - base.Location.Y);
238
Size
textSize = TextRectangle.Size;
239
Size
imageSize = (Image != null) ? designerTheme.ImageSize :
Size
.Empty;
242
Size
anchorSize = (!textSize.IsEmpty) ? textSize : imageSize;
259
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
297
Size
expandButtonSize = ExpandButtonRectangle.Size;
298
Size
imageSize = designerTheme.ImageSize;
299
Size
textSize = TextRectangle.Size;
300
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
332
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
333
Size
expandButtonSize = (CanExpandCollapse) ? designerTheme.ExpandButtonSize :
Size
.Empty;
338
Size
requestedLineSize = this.actualTextSize;
343
Size
textSize =
Size
.Empty;
1269
protected override
Size
OnLayoutSize(ActivityDesignerLayoutEventArgs e)
1271
Size
containerSize = base.OnLayoutSize(e);
1290
this.actualTextSize = ActivityDesignerPaint.MeasureString(e.Graphics, e.DesignerTheme.BoldFont, Text, StringAlignment.Center,
Size
.Empty);
1292
this.actualTextSize =
Size
.Empty;
AuthoringOM\Design\Connector.cs (22)
136
Size
size = DefaultSize;
181
private
Size
DefaultSize
185
Size
defaultSize = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
330
Size
selectionSize = WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize;
343
public virtual void Offset(
Size
size)
443
Size
arrowCapSize = new Size(theme.ConnectorSize.Width / 5, theme.ConnectorSize.Height / 5);
444
Size
maxCapSize = theme.ConnectorSize;
457
Size
arrowCapSize = new Size(theme.ConnectorSize.Width / 5, theme.ConnectorSize.Height / 5);
458
Size
maxCapSize = theme.ConnectorSize;
485
Size
arrowCapSize = new Size(theme.ConnectorSize.Width / 5, theme.ConnectorSize.Height / 5);
486
Size
maxCapSize = theme.ConnectorSize;
515
Size
size = (this.source != null) ? this.source.Bounds.Size :
Size
.Empty;
1495
Size
controlPointSize = this.owner.Source.Bounds.Size;
1696
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
1812
private static readonly
Size
DefaultSize = new Size(4, 4);
1814
public static Point[] Route(Point begin, Point end,
Size
margin, Rectangle enclosingRectangle, Rectangle[] rectanglesToExclude, Point[] linesToExclude, Point[] pointsToExclude)
1839
private static Point[] GetRoutedLineSegments(Point begin, Point end,
Size
margin, Rectangle[] rectanglesToExclude, Point[] linesToExclude)
2016
ref Orientation orientationA, out ConnectorSegment intersectionSegmentA, out ConnectorSegment intersectionSegmentB,
Size
margin, ref bool noEscapeA)
2204
ConnectorSegment escapeLine, Orientation orientation,
Size
margin)
2283
Point Z, Point R,
Size
margin, out bool intersectionFlag, out ConnectorSegment intersectionSegmentA, out ConnectorSegment intersectionSegmentB)
2405
private static void SecondRefinementAlgorithm(CoverSet coverSet, ref List<Point> refinedPath,
Size
margin)
AuthoringOM\Design\DesignerHelpers.cs (19)
62
internal static
Size
MeasureString(Graphics graphics, Font font, string text, StringAlignment alignment,
Size
maxSize)
197
internal static Rectangle GetRectangleFromAlignment(DesignerContentAlignment alignment, Rectangle destination,
Size
size)
232
internal static void DrawSelection(Graphics graphics, Rectangle boundingRect, bool isPrimary,
Size
selectionSize, Rectangle[] grabHandles)
437
Size
offset =
Size
.Empty;
503
GraphicsPath designerPath = GetDesignerPath(designer, new Point(-location.X, -location.Y),
Size
.Empty, DesignerEdges.None);
514
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
529
return GetDesignerPath(designer, Point.Empty,
Size
.Empty, DesignerEdges.None, enableRoundedCorners);
532
internal static GraphicsPath GetDesignerPath(ActivityDesigner designer, Point offset,
Size
inflate, DesignerEdges edgeToInflate)
537
internal static GraphicsPath GetDesignerPath(ActivityDesigner designer, Point offset,
Size
inflate, DesignerEdges edgeToInflate, bool enableRoundedCorners)
589
internal static void DrawConnectors(Graphics graphics, Pen pen, Point[] points,
Size
connectorCapSize,
Size
maxCapSize, LineAnchor startConnectorCap, LineAnchor endConnectorCap)
697
Size
capSize = new Size(capsize, capsize);
780
Size
arrowSize = new Size(arrowHeight / 2, arrowHeight);
799
Size
arrowSize = new Size(arrowWidth, arrowWidth / 2);
1023
internal void DrawGrid(HPen majorGridPen, HPen minorGridPen, Rectangle viewableRectangle,
Size
gridUnit, bool showMinorGrid)
1188
Size
snapSize = WorkflowTheme.CurrentTheme.AmbientTheme.GridSize;
1900
internal static bool PointOnLineSegment(Point point, Point[] line,
Size
hitAreaSize)
AuthoringOM\Design\DesignerInterfaces.cs (4)
162
public
Size
ShadowDepth =
Size
.Empty;
164
public
Size
ViewPortSize =
Size
.Empty;
AuthoringOM\Design\DesignerWidgets.cs (59)
124
public PageStrip(IServiceProvider serviceProvider,
Size
itemSize)
125
: base(serviceProvider, Orientation.Horizontal, itemSize,
Size
.Empty)
129
protected override ItemStrip CreateItemStrip(IServiceProvider serviceProvider, Orientation orientation,
Size
itemSize,
Size
margin)
168
Size
inflateSize = (Orientation == Orientation.Horizontal) ? new Size(0, 2) : new Size(2, 0);
186
public PageItemStrip(IServiceProvider serviceProvider, Orientation orientation,
Size
itemSize,
Size
margin)
261
private
Size
margin;
262
private
Size
buttonSize;
265
public ScrollableItemStrip(IServiceProvider serviceProvider, Orientation orientation,
Size
itemSize,
Size
margin)
345
public
Size
Size
361
Size
reqdSize = this.itemStrip.RequiredSize;
471
protected abstract ItemStrip CreateItemStrip(IServiceProvider serviceProvider, Orientation orientation,
Size
itemSize,
Size
margin);
574
private
Size
itemSize = new Size(16, 16);
575
private
Size
margin =
Size
.Empty;
580
public ItemStrip(IServiceProvider serviceProvider, Orientation orientation,
Size
itemSize,
Size
margin)
647
public
Size
Size
746
public
Size
RequiredSize
750
Size
reqdSize =
Size
.Empty;
767
public
Size
ItemSize
1038
private
Size
imageRectangle = new Size(20, 20);
1039
private
Size
imageSize = new Size(16, 16);
1040
private
Size
selectionItemMargin = new Size(1, 1);
1246
Size
imageSize = this.enabledItems[i].Image.Size;
1294
Size
fittingOffset =
Size
.Empty;
1337
Size
maxTextSize =
Size
.Empty;
2134
public
Size
TextSize;
2526
Size
itemMargin = ItemMargin;
2527
Size
itemSize = ItemSize;
2560
Size
itemMargin = ItemMargin;
2561
Size
itemSize = ItemSize;
2587
public
Size
Size
2657
Size
itemMargin = ItemMargin;
2658
Size
itemSize = ItemSize;
2710
Size
itemMargin = ItemMargin;
2830
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
2845
Size
scrollButtonSize = scrollButtonImage.Size;
2879
private
Size
ItemSize
2884
return ((designerTheme != null) ? designerTheme.PreviewItemSize :
Size
.Empty);
2888
private
Size
ItemMargin
2892
Size
itemSize = ItemSize;
3201
private
Size
previewDescTextSize =
Size
.Empty;
3238
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
3267
public
Size
Size
3371
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
3393
Size
totalSize =
Size
.Empty;
3407
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
3459
Size
maxBitmapSize = new Size(this.canvasBounds.Width - 2 * margin.Width, this.canvasBounds.Height - 2 * margin.Height);
3561
Size
previewSize = designerTheme.PreviewWindowSize;
3562
Size
previewDesignerSize = previewDesigner.Size;
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (3)
554
Size
margin = new Size(8, 8);
1216
Size
maxExtent = ActiveLayout.Extent;
1217
Size
size = Size;
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (1)
1068
Size
physicalPageSize;
AuthoringOM\Design\FreeFormDesigner.cs (18)
86
internal static
Size
DefaultAutoSizeMargin = new Size(40, 40);
91
private
Size
autoSizeMargin = FreeformActivityDesigner.DefaultAutoSizeMargin;
168
public
Size
AutoSizeMargin
172
Size
margin = this.autoSizeMargin;
175
Size
gridSize = WorkflowTheme.CurrentTheme.AmbientTheme.GridSize;
236
public override
Size
MinimumSize
241
Size
minimumSize = base.MinimumSize;
294
Size
moveDelta = new Size(value.X - base.Location.X, value.Y - base.Location.Y);
529
public void ResizeContainedDesigner(ActivityDesigner containedDesigner,
Size
newSize)
809
protected override
Size
OnLayoutSize(ActivityDesignerLayoutEventArgs e)
812
Size
size = bounds.Size;
913
Size
autoSizeMargin = AutoSizeMargin;
969
Size
direction =
Size
.Empty;
1337
public
Size
GetSize(Activity activity)
1339
Size
size =
Size
.Empty;
1346
public void SetSize(Activity activity,
Size
size)
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (2)
50
Size
configErrorSize = WorkflowTheme.CurrentTheme.AmbientTheme.GlyphSize;
51
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
AuthoringOM\Design\Glyphs\SelectionGlyph.cs (2)
42
Size
selectionSize = WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize;
43
Size
grabHandleSize = new Size(selectionSize.Width, selectionSize.Height);
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (5)
141
Size
viewPortSize = ParentView.ViewPortSize;
142
Size
indicatorSize = ambientTheme.ScrollIndicatorSize;
154
Size
indicatorMargins = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
155
Size
scrollIndicatorSize = WorkflowTheme.CurrentTheme.AmbientTheme.ScrollIndicatorSize;
208
Size
viewPortSize = parentView.ViewPortSize;
AuthoringOM\Design\MessageFilters\DragDropManager.cs (3)
305
Size
dragImageIconSize = parentView.LogicalSizeToClient(AmbientTheme.DragImageIconSize);
382
Size
dragImageIconSize = parentView.LogicalSizeToClient(AmbientTheme.DragImageIconSize);
678
Size
draggedImageSize = parentView.LogicalSizeToClient(new Size(imageRectangle.Width + descriptionRectangle.Width, Math.Max(imageRectangle.Height, descriptionRectangle.Height)));
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (11)
409
private static
Size
[] Sizes = new
Size
[] { new Size(20, 20), new Size(24, 24), new Size(28, 28), new Size(32, 32), new Size(36, 36) };
410
private static
Size
[] Margins = new
Size
[] { new Size(1, 1), new Size(1, 1), new Size(2, 2), new Size(2, 2), new Size(3, 3) };
421
private
Size
borderSize = new Size(2, 2);
422
private
Size
dockMargin = DynamicAction.Sizes[(int)ButtonSizes.Medium];
423
private
Size
buttonSize = DynamicAction.Sizes[(int)ButtonSizes.Medium];
424
private
Size
margin = DynamicAction.Margins[(int)ButtonSizes.Medium];
459
internal
Size
DockMargin
568
Size
size =
Size
.Empty;
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (2)
169
Size
imageSize = this.draggedDesignerImages[i].Size;
255
Size
delta = new Size(endPoint.X - startPoint.X, endPoint.Y - startPoint.Y);
AuthoringOM\Design\MessageFilters\PanningMessageFilter.cs (1)
74
Size
panSize = new Size(eventArgs.X - this.panPoint.X, eventArgs.Y - this.panPoint.Y);
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (2)
193
Size
selectionSize = WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize;
278
Size
selectionSize = WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize;
AuthoringOM\Design\ParallelActivityDesigner.cs (6)
229
Size
designerSize = activityDesigner.Size;
238
protected override
Size
OnLayoutSize(ActivityDesignerLayoutEventArgs e)
240
Size
size = base.OnLayoutSize(e);
246
Size
containerSize =
Size
.Empty;
251
Size
childSize = activityDesigner.Size;
AuthoringOM\Design\SequentialActivityDesigner.cs (8)
39
private static readonly
Size
DefaultHelpTextSize = new Size(100, 85);
45
private
Size
helpTextSize =
Size
.Empty;
283
protected
Size
HelpTextSize
462
Size
designerSize = activityDesigner.Size;
469
protected override
Size
OnLayoutSize(ActivityDesignerLayoutEventArgs e)
471
Size
containerSize = base.OnLayoutSize(e);
484
Size
childSize = activityDesigner.Size;
AuthoringOM\Design\SequentialWorkflowHeaderFooter.cs (6)
41
internal
Size
textSize =
Size
.Empty;
105
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
137
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
159
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
196
this.textSize = ActivityDesignerPaint.MeasureString(e.Graphics, font, Text, StringAlignment.Center,
Size
.Empty);
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (7)
42
private static readonly
Size
PageStripItemSize = new Size(24, 20);
43
private static readonly
Size
MinSize = new Size(240, 240);
88
public override
Size
MinimumSize
92
Size
minimumSize = base.MinimumSize;
230
Size
childSize = activityDesigner.Size;
273
protected override
Size
OnLayoutSize(ActivityDesignerLayoutEventArgs e)
275
Size
size = base.OnLayoutSize(e);
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (8)
158
public override
Size
MinimumSize
162
Size
minimumSize = base.MinimumSize;
472
Size
arrowCapSize =
Size
.Empty;
473
Size
maxCapSize =
Size
.Empty;
555
protected override
Size
OnLayoutSize(ActivityDesignerLayoutEventArgs e)
557
Size
containerSize = base.OnLayoutSize(e);
AuthoringOM\Design\Themes.cs (46)
981
private static readonly
Size
[] DesignerSizes = new
Size
[] { new Size(90, 40), new Size(130, 41), new Size(110, 50) };
982
private static readonly
Size
[] ImageSizes = new
Size
[] { new Size(16, 16), new Size(16, 16), new Size(24, 24) };
1315
public
Size
Size
1350
public
Size
ImageSize
1431
private static readonly
Size
[] ExpandButtonSizes = new
Size
[] { new Size(8, 8), new Size(8, 8), new Size(12, 12) };
1432
private static readonly
Size
[] ConnectorSizes = new
Size
[] { new Size(15, 30), new Size(15, 19), new Size(25, 50) };
1603
public virtual
Size
ConnectorSize
1621
public virtual
Size
ExpandButtonSize
1684
private static readonly
Size
[] ItemSizes = new
Size
[] { new Size(20, 20), new Size(20, 20), new Size(30, 30) };
1685
private static readonly
Size
[] PreviewButtonSizes = new
Size
[] { new Size(16, 16), new Size(16, 16), new Size(20, 20) };
1686
private static readonly
Size
[] PreviewWindowSizes = new
Size
[] { new Size(172, 120), new Size(172, 120), new Size(212, 160) };
1825
internal
Size
PreviewItemSize
1845
internal
Size
PreviewWindowSize
1855
internal
Size
PreviewButtonSize
1945
internal static readonly
Size
DragImageMargins = new Size(4, 4);
1946
internal static readonly
Size
DragImageTextSize = new Size(100, 60);
1947
internal static readonly
Size
DragImageIconSize = new Size(16, 16);
1956
private static readonly
Size
[] GridSizes = new
Size
[] { new Size(30, 30), new Size(40, 40), new Size(60, 60) };
1957
private static readonly
Size
[] MarginSizes = new
Size
[] { new Size(2, 2), new Size(4, 4), new Size(6, 6) };
1958
private static readonly
Size
[] SelectionSizes = new
Size
[] { new Size(2, 2), new Size(4, 4), new Size(6, 6) };
1959
private static readonly
Size
[] GlyphSizes = new
Size
[] { new Size(10, 10), new Size(14, 14), new Size(18, 18) };
1960
private static readonly
Size
[] ScrollIndicatorSizes = new
Size
[] { new Size(24, 24), new Size(32, 32), new Size(40, 40) };
1961
private static readonly
Size
[] DropIndicatorSizes = new
Size
[] { new Size(8, 8), new Size(12, 12), new Size(16, 16) };
1962
private static readonly
Size
[] MagnifierSizes = new
Size
[] { new Size(50, 50), new Size(100, 100), new Size(150, 150) };
2760
public virtual
Size
Margin
2770
public virtual
Size
SelectionSize
2780
public virtual
Size
GlyphSize
2790
internal
Size
ScrollIndicatorSize
2800
internal
Size
DropIndicatorSize
2810
internal
Size
MagnifierSize
2830
public virtual
Size
GridSize
3365
else if (typeof(
Size
) == objectType)
AuthoringOM\Design\WorkflowLayouts.cs (46)
44
public abstract
Size
Extent { get; }
64
public static
Size
Separator = new Size(30, 30);
81
public override
Size
Extent
85
Size
rootDesignerSize = (this.parentView.RootDesigner != null) ? this.parentView.RootDesigner.Size :
Size
.Empty;
86
Size
totalSize = new Size(rootDesignerSize.Width + DefaultWorkflowLayout.Separator.Width * 2, rootDesignerSize.Height + DefaultWorkflowLayout.Separator.Height * 2);
87
Size
clientSize = this.parentView.ViewPortSize;
212
public override
Size
Extent
216
Size
rootDesignerSize = (this.parentView.RootDesigner != null) ? this.parentView.RootDesigner.Size :
Size
.Empty;
217
Size
totalSize = new Size(rootDesignerSize.Width + DefaultWorkflowLayout.Separator.Width * 2, rootDesignerSize.Height + DefaultWorkflowLayout.Separator.Height * 2);
218
Size
clientSize = this.parentView.ViewPortSize;
284
Size
offSet = Offset;
292
Size
offSet = Offset;
300
Size
offSet = Offset;
307
Size
offSet = Offset;
314
private
Size
Offset
319
Size
layoutExtent = Extent;
320
Size
totalSize = this.parentView.ClientSizeToLogical(this.parentView.ViewPortSize);
334
private static
Size
DefaultPageSeparator = new Size(30, 30);
343
private
Size
pageSeparator = PrintPreviewLayout.DefaultPageSeparator;
345
private
Size
rowColumns = new Size(1, 1); //Width = Columns, Height = Rows
347
private
Size
pageSize =
Size
.Empty;
366
public override
Size
Extent
371
Size
maxSize =
Size
.Empty;
383
Size
printableAreaPerPage = new Size(this.pageSize.Width - (PageMargins.Left + PageMargins.Right), this.pageSize.Height - (PageMargins.Top + PageMargins.Bottom));
384
Size
totalPrintableArea = new Size(this.rowColumns.Width * printableAreaPerPage.Width, this.rowColumns.Height * printableAreaPerPage.Height);
385
Size
rootDesignerSize = (this.parentView.RootDesigner != null) ? this.parentView.RootDesigner.Size :
Size
.Empty;
386
Size
selectionSize = WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize;
424
Size
deltaSize = new Size(pageLayoutData.ViewablePageBounds.Width - intersectedPhysicalViewPort.Width, pageLayoutData.ViewablePageBounds.Height - intersectedPhysicalViewPort.Height);
459
Size
deltaSize = new Size(pageLayoutData.LogicalPageBounds.Width - intersectedLogicalViewPort.Width, pageLayoutData.LogicalPageBounds.Height - intersectedLogicalViewPort.Height);
722
Size
margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
723
Size
paperSize = GetPaperSize(graphics);
725
Size
rootDesignerSize = (this.parentView.RootDesigner != null) ? this.parentView.RootDesigner.Size :
Size
.Empty;
728
Size
selectionSize = WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize;
740
Size
printableArea = new Size(paperSize.Width - (margins.Left + margins.Right), paperSize.Height - (margins.Top + margins.Bottom));
764
PageSeparator = (separator != null) ? (
Size
)separator : PrintPreviewLayout.DefaultPageSeparator;
781
Size
viewablePageSize = new Size(this.pageSize.Width - (PageMargins.Left + PageMargins.Right), this.pageSize.Height - (PageMargins.Top + PageMargins.Bottom));
822
private
Size
GetPaperSize(Graphics graphics)
824
Size
size =
Size
.Empty;
868
private
Size
PageSeparator
AuthoringOM\Design\WorkflowPrinting.cs (7)
126
Size
printableArea = new Size(printPageArg.PageBounds.Size.Width - (margins.Left + margins.Right), printPageArg.PageBounds.Size.Height - (margins.Top + margins.Bottom));
153
Size
viewPortSize =
Size
.Empty;
310
Size
selectionSize = WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize;
316
Size
rootDesignerSize = this.workflowView.RootDesigner.Size;
320
Size
paperSize = printPageArg.PageBounds.Size;
326
Size
printableArea = new Size(paperSize.Width - (margins.Left + margins.Right), paperSize.Height - (margins.Top + margins.Bottom));
AuthoringOM\Design\WorkflowView.cs (10)
441
public
Size
ViewPortSize
445
Size
viewPortSize = ClientSize;
1741
Size
scrollDelta = new Size();
1796
Size
currentSize = ViewPortSize;
1797
Size
maximumScrollSize = LogicalSizeToClient(this.activeLayout.Extent);
1798
Size
largeChangeSize = new Size(Math.Min(maximumScrollSize.Width, currentSize.Width), Math.Min(maximumScrollSize.Height, currentSize.Height));
2050
public
Size
LogicalSizeToClient(
Size
logicalSize)
2061
public
Size
ClientSizeToLogical(
Size
clientSize)
AuthoringOM\Serializer\WorkflowMarkupSerializationManager.cs (1)
498
else if (typeof(
Size
).IsAssignableFrom(objectType))
System.WorkflowServices (4)
System\Workflow\Activities\ReceiveActivityDesigner.cs (1)
26
public override
Size
MinimumSize
System\Workflow\Activities\SendActivityDesigner.cs (1)
27
public override
Size
MinimumSize
System\Workflow\ComponentModel\Design\ActivityDesignerHighlighter.cs (2)
100
Size
viewSize = workflowView.ClientSizeToLogical(workflowView.ViewPortSize);
122
Size
viewSize = workflowView.ClientSizeToLogical(workflowView.ViewPortSize);