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