60 writes to Size
System.Windows.Forms (22)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
1336maxCombinedBounds.Size = LayoutUtils.UnionSizes(maxCombinedBounds.Size, combinedSize);
winforms\Managed\System\WinForms\Control.cs (2)
6461newBounds.Size = LayoutUtils.IntersectSizes(new Size(proposedWidth,proposedHeight), maximumSize); 6462newBounds.Size = LayoutUtils.UnionSizes(newBounds.Size, MinimumSize);
winforms\Managed\System\WinForms\ControlPaint.cs (3)
81result.Size = bounds.Size; 85result.Size = backgroundImage.Size; 89result.Size = backgroundImage.Size;
winforms\Managed\System\WinForms\Form.cs (3)
1749bounds.Size = value; 6886restoredWindowBounds.Size = ClientSize; 6894restoreBounds.Size = Size;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (2)
362remainingBounds.Size += neededSize; 366remainingBounds.Size += elementPrefSize;
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (1)
64measureBounds.Size = prefSize;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (1)
385rect.Size = FlipSize(rect.Size);
winforms\Managed\System\WinForms\PictureBox.cs (2)
446result.Size = image.Size; 457result.Size = image.Size;
winforms\Managed\System\WinForms\ToolStripControlHost.cs (1)
474specifiedBounds.Size = value;
winforms\Managed\System\WinForms\ToolStripItem.cs (2)
604content.Size = LayoutUtils.UnionSizes(Size.Empty, content.Size); 2191currentBounds.Size = value;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (2)
1518imageRect.Size = menu.ImageScalingSize; 1523imageRect.Size = image.Size;
winforms\Managed\System\WinForms\UpDownBase.cs (1)
1107upDownEditBounds.Size = new Size(clientArea.Width - defaultButtonsWidth, clientArea.Height);
winforms\Managed\System\WinForms\WinFormsUtils.cs (1)
104bounds.Size = new Size(Math.Min(constrainingBounds.Width -2, bounds.Width),
System.Windows.Forms.DataVisualization (1)
WinForm\Utilities\AccessibleObject.cs (1)
321rect.Size = Size.Round(rectSize);
System.Workflow.ComponentModel (37)
AuthoringOM\Design\ActivityDesigner.cs (3)
543textRectangle.Size = this.textSize; 566imageRectangle.Size = designerTheme.ImageSize; 3097imageRectangle.Size = imageSize;
AuthoringOM\Design\CompositeActivityDesigner.cs (1)
360textRectangle.Size = textSize;
AuthoringOM\Design\DesignerWidgets.cs (14)
358this.bounds.Size = value; 476buttonRectangle.Size = this.buttonSize; 659this.bounds.Size = value; 724itemRectangle.Size = this.itemSize; 2089imageRectangle.Size = new Size(this.reqTabItemSize - 2 * TabMargin, this.reqTabItemSize - 2 * TabMargin); 2539rectangles[j].Size = new Size(itemMargin.Width, itemSize.Height + itemMargin.Height); 2566itemRectangle.Size = itemSize; 2742imageRectangle.Size = new Size(itemRectangle.Width - 4, itemRectangle.Height - 4); 2853scrollRectangle.Size = scrollButtonSize; 3374this.canvasBounds.Size = PreviewDesigner.Bounds.Size; 3376this.canvasBounds.Size = new Size(Math.Max(this.canvasBounds.Width, designerTheme.PreviewWindowSize.Width), Math.Max(this.canvasBounds.Height, designerTheme.PreviewWindowSize.Height)); 3380this.canvasBounds.Size = designerTheme.PreviewWindowSize; 3388this.previewModeDescRectangle.Size = this.previewDescTextSize; 3398this.bounds.Size = totalSize;
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (4)
162scrollIndicatorRectangles[0].Size = scrollIndicatorSize; 167scrollIndicatorRectangles[1].Size = scrollIndicatorSize; 172scrollIndicatorRectangles[2].Size = scrollIndicatorSize; 177scrollIndicatorRectangles[3].Size = scrollIndicatorSize;
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (1)
584rectangle.Size = this.buttonSize;
AuthoringOM\Design\ParallelActivityDesigner.cs (4)
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)
165helpTextRectangle.Size = this.helpTextSize; 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\SequentialWorkflowHeaderFooter.cs (2)
139bounds.Size = this.textSize; 163bounds.Size = designerTheme.ImageSize;
AuthoringOM\Design\WorkflowLayouts.cs (2)
573viewPortBitmapArea.Size = new Size(points[1]); 679viewPortBitmapArea.Size = new Size(points[1]);
AuthoringOM\Design\WorkflowPrinting.cs (1)
266layoutRectangle.Size = new Size(Convert.ToInt32(Math.Ceiling((stringSize.Width))), Convert.ToInt32(Math.Ceiling((stringSize.Height))));
154 references to Size
System.Drawing (1)
commonui\System\Drawing\Printing\PreviewPrintController.cs (1)
107Size size = e.PageBounds.Size;
System.Web.DataVisualization (5)
Common\General\Legend.cs (5)
470 Size titleSize = this.GetTitleSize(chartGraph, legendPosition.Size); 540 this._legendItemsAreaPosition.Size, 601 this._legendItemsAreaPosition.Size, 657 this._legendItemsAreaPosition.Size, 686 this._legendItemsAreaPosition.Size,
System.Windows.Forms (70)
winforms\Managed\System\WinForms\AxHost.cs (2)
1774if ((b.Size.Equals(DefaultSize)) && (!b.Size.Equals(p))) {
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (5)
1317Size textSize = GetTextSize(maxBounds.Size); 1330Size maxTextSize = LayoutUtils.SubAlignedRegion(maxBounds.Size, imageSize, textImageRelation); 1336maxCombinedBounds.Size = LayoutUtils.UnionSizes(maxCombinedBounds.Size, combinedSize); 1384if (textImageRelation == TextImageRelation.ImageBeforeText && layout.imageBounds.Size.Width != 0) { 1389if (textImageRelation == TextImageRelation.ImageAboveText && layout.imageBounds.Size.Height != 0) {
winforms\Managed\System\WinForms\Control.cs (5)
2840return CommonProperties.GetSpecifiedBounds(this).Size; 6441return ApplyBoundsConstraints(0,0,width, height).Size; 6448return ApplyBoundsConstraints(0,0,proposedSize.Width,proposedSize.Height).Size; 6462newBounds.Size = LayoutUtils.UnionSizes(newBounds.Size, MinimumSize); 11553Size scaledSize = LayoutUtils.IntersectSizes(rawScaledBounds.Size, maximumSize);
winforms\Managed\System\WinForms\ControlPaint.cs (4)
81result.Size = bounds.Size; 90Size szCtl = bounds.Size; 502Rectangle partOfImageToDraw = new Rectangle(Point.Empty, imageRect.Size); 510, imageRect.Size);
winforms\Managed\System\WinForms\Form.cs (5)
665this.Size = CommonProperties.GetSpecifiedBounds(this).Size; 1750value = WindowsFormsUtils.ConstrainToScreenWorkingAreaBounds(bounds).Size; 3992correct = ApplyBoundsConstraints(cp.X, cp.Y, correct.Width, correct.Height).Size; 5680Size restoredSize = restoredWindowBounds.Size; 7200Size virtualScreen = SystemInformation.VirtualScreen.Size;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (7)
59Size newSize = LayoutUtils.UnionSizes(bounds.Size, prefSize); 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); 445desiredSize = element.Bounds.Size;
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (1)
589get { return CommonProperties.GetSpecifiedBounds(_element).Size; }
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (2)
248return Align(Stretch(fitThis, withinThis.Size, anchorStyles), withinThis, anchorStyles); 385rect.Size = FlipSize(rect.Size);
winforms\Managed\System\WinForms\Layout\TableLayout.cs (4)
193Size containerSize = container.DisplayRectangle.Size - new Size(cellBorderWidth, cellBorderWidth); 252Size containerSize = container.DisplayRectangle.Size - new Size(cellBorderWidth * 2, cellBorderWidth * 2); 861return CommonProperties.GetSpecifiedBounds(element).Size; 1234Rectangle elementBounds = LayoutUtils.AlignAndStretch(GetElementSize(element, cellBounds.Size), cellBounds, anchorStyles);
winforms\Managed\System\WinForms\LinkLabel.cs (3)
1264ControlPaint.DrawStringDisabled(e.Graphics, Text, Font, foreColor, clientRectWidthPadding, CreateTextFormatFlags(clientRectWidthPadding.Size)); 1446TextRenderer.DrawText(g, Text, font, clientRectWithPadding, brushColor, CreateTextFormatFlags(clientRectWithPadding.Size)); 1499TextRenderer.DrawText(g, Text, font, clientRectWithPadding, color, CreateTextFormatFlags(clientRectWithPadding.Size));
winforms\Managed\System\WinForms\PictureBox.cs (1)
1219return CommonProperties.GetSpecifiedBounds(this).Size;
winforms\Managed\System\WinForms\TabControl.cs (1)
562return GetTabRect(0).Size;
winforms\Managed\System\WinForms\ToolStrip.cs (8)
1465return this.DisplayRectangle.Size; 1523toolStripOverflowButton.Size = toolStripOverflowButton.GetPreferredSize(this.DisplayRectangle.Size - this.Padding.Size); 3427toolStripOverflowButton.Size = toolStripOverflowButton.GetPreferredSize(this.DisplayRectangle.Size - this.Padding.Size); 4331size = LayoutUtils.UnionSizes(size, toolStripOverflowButton.Bounds.Size); 4334size = LayoutUtils.UnionSizes(size, toolStripGrip.Bounds.Size); 4396biggestItemSize = LayoutUtils.UnionSizes(biggestItemSize, item.Bounds.Size); 4454 biggestItemSize = LayoutUtils.UnionSizes(biggestItemSize, item.Bounds.Size); 4696Size size = CommonProperties.GetSpecifiedBounds(this).Size;
winforms\Managed\System\WinForms\ToolStripControlHost.cs (1)
812Size size = LayoutUtils.DeflateRect(this.Bounds, this.Padding).Size;
winforms\Managed\System\WinForms\ToolStripDropDown.cs (3)
726return Screen.GetWorkingArea(this.Bounds).Size - this.Padding.Size; 1214Rectangle suggestedScreenBounds = new Rectangle(screenPoint, suggestedBounds.Size); 1230dropDownBounds = new Rectangle(parentClientPoint, suggestedBounds.Size);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (1)
510textRectangle.Y = LayoutUtils.VAlign(textRectangle.Size, new Rectangle(Point.Empty, maxItemSize), ContentAlignment.MiddleCenter).Y;
winforms\Managed\System\WinForms\ToolStripItem.cs (4)
604content.Size = LayoutUtils.UnionSizes(Size.Empty, content.Size); 2187return Bounds.Size; 2753ParentInternal.Invalidate(new Rectangle(rectangleLocation, r.Size), true); 4406return new Rectangle(Owner.ParentInternal.PointToScreen(bounds.Location), bounds.Size);
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (2)
1483arrowRect.Y = LayoutUtils.VAlign(arrowRect.Size, ownerItem.ClientBounds, ContentAlignment.MiddleCenter).Y; 1525imageRect.Y = LayoutUtils.VAlign(imageRect.Size, ownerItem.ClientBounds, ContentAlignment.MiddleCenter).Y;
winforms\Managed\System\WinForms\ToolStripOverflow.cs (1)
156biggestItemSize = LayoutUtils.UnionSizes(biggestItemSize, item.Bounds.Size);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (1)
673e.Graphics.DrawImage(image, imageRect, new Rectangle(Point.Empty, imageRect.Size), GraphicsUnit.Pixel);
winforms\Managed\System\WinForms\ToolStripRenderer.cs (2)
878e.Graphics.DrawImage(image, imageRect, new Rectangle(Point.Empty,imageRect.Size), GraphicsUnit.Pixel); 936Size textSize = LayoutUtils.FlipSize(textRect.Size);
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (5)
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; 397Size toolStripPreferredSize = displayRectangle.Size; 609Size itemSize = item.AutoSize ? item.GetPreferredSize(displayRectangle.Size) : item.Size;
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (1)
258Rectangle bounds = new Rectangle(Point.Empty, e.GripBounds.Size);
winforms\Managed\System\WinForms\WinFormsUtils.cs (1)
738this.graphics.SetClip(new Rectangle(Point.Empty, translatedBounds.Size));
System.Windows.Forms.DataVisualization (6)
Common\General\Legend.cs (5)
470 Size titleSize = this.GetTitleSize(chartGraph, legendPosition.Size); 540 this._legendItemsAreaPosition.Size, 601 this._legendItemsAreaPosition.Size, 657 this._legendItemsAreaPosition.Size, 686 this._legendItemsAreaPosition.Size,
WinForm\Utilities\AccessibleObject.cs (1)
315SizeF rectSize = rect.Size;
System.Workflow.Activities (1)
Designers\StateDesignerConnector.cs (1)
226Size size = (Source != null) ? Source.Bounds.Size : Size.Empty;
System.Workflow.ComponentModel (71)
AuthoringOM\Design\ActivityDesigner.cs (8)
411if (!imageRectangle.Size.IsEmpty) 1577if (!textRectangle.Size.IsEmpty) 1674if (!String.IsNullOrEmpty(Text) && !TextRectangle.Size.IsEmpty) 1680if (Image != null && !ImageRectangle.Size.IsEmpty) 1895return new Rectangle(PointToScreen(rectangle.Location), parentView.LogicalSizeToClient(rectangle.Size)); 1916return new Rectangle(PointToLogical(rectangle.Location), parentView.ClientSizeToLogical(rectangle.Size)); 3038Size imageSize = rectangle.Size; 3090Size imageSize = designer.SmartTagRectangle.Size;
AuthoringOM\Design\ActivityPreviewDesigner.cs (1)
1054while (accessibilityObject.Bounds.Size.IsEmpty && accessibilityObject.GetChildCount() > 0)
AuthoringOM\Design\CompositeActivityDesigner.cs (10)
238Size textSize = TextRectangle.Size; 265if (!textRectangle.Size.IsEmpty) 275if (!expandButtonRectangle.Size.IsEmpty || !textRectangle.Size.IsEmpty || !imageRectangle.Size.IsEmpty) 278if (!imageRectangle.Size.IsEmpty && !textRectangle.Size.IsEmpty) 297Size expandButtonSize = ExpandButtonRectangle.Size; 299Size textSize = TextRectangle.Size; 1237if (!expandButtonRectangle.Size.IsEmpty)
AuthoringOM\Design\Connector.cs (3)
515Size size = (this.source != null) ? this.source.Bounds.Size : Size.Empty; 755return new Rectangle(parentView.LogicalPointToScreen(bounds.Location), parentView.LogicalSizeToClient(bounds.Size)); 1495Size controlPointSize = this.owner.Source.Bounds.Size;
AuthoringOM\Design\DesignerHelpers.cs (1)
173Rectangle imageRectangle = GetRectangleFromAlignment(alignment, destination, source.Size);
AuthoringOM\Design\DesignerWidgets.cs (22)
349return this.bounds.Size; 354if (this.bounds.Size != value) 487buttonRectangle.X = this.bounds.X + this.margin.Width + buttonRectangle.Size.Width + this.itemStrip.Size.Width; 489buttonRectangle.X = this.bounds.Right - buttonRectangle.Size.Width; 497buttonRectangle.Y = this.bounds.Y + this.margin.Height + buttonRectangle.Size.Height + this.itemStrip.Size.Height; 499buttonRectangle.Y = this.bounds.Bottom - buttonRectangle.Size.Height; 651return this.bounds.Size; 656if (this.bounds.Size != value) 1324base.Size = this.formRectangle.Size; 1772TabChange(this, new TabSelectionChangeEventArgs(previousTab, currentTab, new Rectangle(PointToScreen(tabItemBounds.Location), tabItemBounds.Size))); 2591return this.bounds.Size; 2662this.bounds.Width += GetButtonBounds(ScrollButton.Left).Size.Width; 2663this.bounds.Width += GetButtonBounds(ScrollButton.Right).Size.Width; 2852scrollRectangle.Y = this.bounds.Y + this.bounds.Size.Height / 2 - scrollButtonSize.Height / 2; 2953bounds = new Rectangle(workflowView.LogicalPointToScreen(bounds.Location), workflowView.LogicalSizeToClient(bounds.Size)); 3271return this.bounds.Size; 3374this.canvasBounds.Size = PreviewDesigner.Bounds.Size; 3387this.previewDescTextSize.Width = Math.Min(this.canvasBounds.Size.Width - margin.Width - this.previewModeButtonRectangle.Size.Width, this.previewDescTextSize.Width); 3391this.previewModeButtonRectangle.Width = this.previewModeButtonRectangle.Size.Height; 3395totalSize.Height = Math.Max(this.previewModeButtonRectangle.Size.Height, this.previewDescTextSize.Height); 3598bounds = new Rectangle(workflowView.LogicalPointToScreen(bounds.Location), workflowView.LogicalSizeToClient(bounds.Size));
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (1)
1073physicalPageSize = this.printDocument.DefaultPageSettings.Bounds.Size;
AuthoringOM\Design\FreeFormDesigner.cs (3)
812Size size = bounds.Size; 1048sizeProperty.SetValue(designer.Activity, bounds.Size); 1050designer.Size = bounds.Size;
AuthoringOM\Design\Glyphs\ShadowGlyph.cs (1)
39if (!bounds.Size.IsEmpty)
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (2)
325return new Rectangle(ActivityDesignerPaint.GetRectangleFromAlignment(action.DockAlignment, bounds, action.Bounds.Size).Location, action.Bounds.Size);
AuthoringOM\Design\SequentialActivityDesigner.cs (3)
406if (CurrentDropTarget == -1 && !helpTextRectangle.Size.IsEmpty) 528glyphLocation = new Point(connectors[i].Location.X + connectors[i].Size.Width / 2 + 1, connectors[i].Location.Y + connectors[i].Size.Height / 2);
AuthoringOM\Design\SequentialWorkflowHeaderFooter.cs (4)
109if (!textBounds.Size.IsEmpty || !imageBounds.Size.IsEmpty) 209if (!String.IsNullOrEmpty(Text) && !TextRectangle.Size.IsEmpty && e.DesignerTheme != null && e.DesignerTheme.Font != null) 216if (Image != null && !ImageRectangle.Size.IsEmpty)
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (1)
280size.Height += footer.ImageRectangle.Height + 2 * e.AmbientTheme.Margin.Height + footer.FooterBarRectangle.Size.Height;
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (1)
216return (!String.IsNullOrEmpty(Text) && !TextRectangle.Size.IsEmpty && Views.Count > 1);
AuthoringOM\Design\WorkflowLayouts.cs (3)
570points = new Point[] { viewPortBitmapArea.Location, new Point(viewPortBitmapArea.Size) }; 676points = new Point[] { viewPortBitmapArea.Location, new Point(viewPortBitmapArea.Size) }; 681ActivityDesignerPaint.DrawImage(graphics, memoryBitmap, new Rectangle(bitmapDrawingPoint, viewPortBitmapArea.Size), viewPortBitmapArea, DesignerContentAlignment.Fill, 1.0f, WorkflowTheme.CurrentTheme.AmbientTheme.DrawGrayscale);
AuthoringOM\Design\WorkflowPrinting.cs (4)
126Size printableArea = new Size(printPageArg.PageBounds.Size.Width - (margins.Left + margins.Right), printPageArg.PageBounds.Size.Height - (margins.Top + margins.Bottom)); 298layoutRectangle.Y = headerFooterPrintData.PageBounds.Bottom - headerFooterPrintData.HeaderFooterMargins.Bottom - layoutRectangle.Size.Height; 320Size paperSize = printPageArg.PageBounds.Size;
AuthoringOM\Design\WorkflowView.cs (3)
1540viewPortData.ViewPortSize = viewPortData.LogicalViewPort.Size; 2080return new Rectangle(LogicalPointToClient(clientViewPort.Location, false), LogicalSizeToClient(clientViewPort.Size)); 2088Rectangle scaledLogicalViewPort = new Rectangle(ClientPointToLogical(rectangle.Location, false), ClientSizeToLogical(rectangle.Size));