710 references to 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 (21)
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 (5)
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 (363)
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 (5)
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); 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 (8)
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);
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 (6)
37Size virtualSize = new Size(1,1); 72Size = new Size(100, 100); 441imageSize = new Size((int) (zoom*pageSize.Width), (int) (zoom*pageSize.Height)); 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 (25)
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 (12)
453Size size = new Size(width, height); 653layout.ResizeLayout(new Size(maxEventDrivenWidth, size.Height)); 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 (148)
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 (15)
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); 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 (6)
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))); 1798Size largeChangeSize = new Size(Math.Min(maximumScrollSize.Width, currentSize.Width), Math.Min(maximumScrollSize.Height, currentSize.Height)); 1848fitAllAction.DockMargin = new Size(5, 5);
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);