72 references to Size
System.Drawing (5)
commonui\System\Drawing\Bitmap.cs (2)
555
transparent = GetPixel(0,
Size
.Height - 1);
577
Size size =
Size
;
misc\DpiHelper.cs (3)
463
RectangleF sourceRect = new RectangleF(0, 0, logicalImage.
Size
.Width, logicalImage.
Size
.Height);
481
Size deviceImageSize = DpiHelper.LogicalToDeviceUnits(logicalImage.
Size
, deviceDpi);
System.Windows.Forms (40)
misc\DpiHelper.cs (3)
463
RectangleF sourceRect = new RectangleF(0, 0, logicalImage.
Size
.Width, logicalImage.
Size
.Height);
481
Size deviceImageSize = DpiHelper.LogicalToDeviceUnits(logicalImage.
Size
, deviceDpi);
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
1546
layout.imageSize = (Control.Image == null) ? Size.Empty : Control.Image.
Size
;
winforms\Managed\System\WinForms\ControlPaint.cs (7)
85
result.Size = backgroundImage.
Size
;
89
result.Size = backgroundImage.
Size
;
101
Size imageSize = backgroundImage.
Size
;
195
Size size = bitmap.
Size
;
254
Size size = bitmap.
Size
;
304
Size size = bitmap.
Size
;
1561
Size imageSize = image.
Size
;
winforms\Managed\System\WinForms\DataGridCaption.cs (3)
432
backButtonSize = backButtonBmp.
Size
;
444
width = detailsBmp.
Size
.Width;
453
downButtonSize = detailsBmp.
Size
;
winforms\Managed\System\WinForms\DataGridRow.cs (1)
560
Size bmpSize = bmp.
Size
;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (2)
200
if (DpiHelper.IsScalingRequired && (b.
Size
.Width != iconsWidth || b.
Size
.Height != iconsHeight))
winforms\Managed\System\WinForms\DataObject.cs (4)
156
IntPtr hBitmapNew = SafeNativeMethods.CreateCompatibleBitmap(new HandleRef(null, hDC), bm.
Size
.Width, bm.
Size
.Height);
161
SafeNativeMethods.BitBlt(new HandleRef(null, dcDest), 0, 0, bm.
Size
.Width, bm.
Size
.Height, new HandleRef(null, dcSrc), 0, 0, 0x00CC0020);
winforms\Managed\System\WinForms\ImageList.cs (1)
461
Size size = bitmap.
Size
;
winforms\Managed\System\WinForms\Label.cs (1)
1087
Size pointImageSize = image.
Size
;
winforms\Managed\System\WinForms\PictureBox.cs (4)
446
result.Size = image.
Size
;
457
result.Size = image.
Size
;
461
Size imageSize = image.
Size
;
1223
return image.
Size
+ bordersAndPadding;
winforms\Managed\System\WinForms\PropertyGrid.cs (3)
1654
if (DpiHelper.IsScalingRequired && (image.
Size
.Width != normalButtonSize.Width || image.
Size
.Height != normalButtonSize.Height)) {
2063
Size size = bitmap.
Size
;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (2)
330
if ((DpiHelper.IsScalingRequired || DpiHelper.EnableDpiChangedHighDpiImprovements) && (b.
Size
.Width != iconsWidth || b.
Size
.Height != iconsHeight)) {
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (2)
365
imageSize = (menuItem.ImageScaling == ToolStripItemImageScaling.SizeToFit) ? ImageScalingSize : menuItem.Image.
Size
;
372
Size checkedImageSize = menuItem.CheckedImage.
Size
;
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
1929
imageSize = (image == null) ? Size.Empty : image.
Size
;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (4)
339
if (DpiHelper.IsScalingRequired && (b.
Size
.Width != desiredIconSize.Width || b.
Size
.Height != desiredIconSize.Height))
820
ControlPaint.DrawCaptionButton(g, new Rectangle(Point.Empty, image.
Size
), (CaptionButton)buttonToUse, ButtonState.Flat);
1523
imageRect.Size = image.
Size
;
winforms\Managed\System\WinForms\ToolStripRenderer.cs (1)
1078
Size size = normalImage.
Size
;
System.Workflow.ComponentModel (27)
AuthoringOM\Design\DesignerHelpers.cs (4)
135
DrawImage(graphics, image, destination, new Rectangle(Point.Empty, image.
Size
), alignment, 1.0f, false);
143
DrawImage(graphics, image, destination, new Rectangle(Point.Empty, image.
Size
), DesignerContentAlignment.Center, transparency, false);
321
DrawImage(graphics, image, bounds, new Rectangle(Point.Empty, image.
Size
), DesignerContentAlignment.Fill, transparency, (buttonState == ButtonState.Inactive));
516
DrawImage(graphics, compositeDesignerTheme.WatermarkImage, bounds, new Rectangle(Point.Empty, compositeDesignerTheme.WatermarkImage.
Size
), compositeDesignerTheme.WatermarkAlignment, AmbientTheme.WatermarkTransparency, false);
AuthoringOM\Design\DesignerWidgets.cs (3)
1246
Size imageSize = this.enabledItems[i].Image.
Size
;
2845
Size scrollButtonSize = scrollButtonImage.
Size
;
3470
graphics.DrawImage(previewedActivityImage, destnRectangle, new Rectangle(Point.Empty, previewedActivityImage.
Size
), GraphicsUnit.Pixel);
AuthoringOM\Design\MessageFilters\DragDropManager.cs (5)
396
parentView.InvalidateClientRectangle(new Rectangle(oldDragImagePoint, this.dragImage.
Size
));
397
parentView.InvalidateClientRectangle(new Rectangle(this.dragImagePointInClientCoOrd, this.dragImage.
Size
));
608
ActivityDesignerPaint.DrawImage(e.Graphics, this.dragImage, new Rectangle(this.dragImagePointInClientCoOrd, this.dragImage.
Size
), new Rectangle(0, 0, this.dragImage.Width, this.dragImage.Height), DesignerContentAlignment.Center, (this.dragImageSnapped) ? 1.0f : 0.5f, WorkflowTheme.CurrentTheme.AmbientTheme.DrawGrayscale);
673
Rectangle imageRectangle = (image != null) ? new Rectangle(Point.Empty, image.
Size
) : Rectangle.Empty;
687
draggedImageGraphics.DrawImage(image, new Rectangle(Point.Empty, image.
Size
));
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (2)
547
ActivityDesignerPaint.DrawImage(graphics, buttonImage, buttonBounds, new Rectangle(Point.Empty, buttonImage.
Size
), DesignerContentAlignment.Fill, transparency, (button.State == ActionButton.States.Disabled));
559
ActivityDesignerPaint.DrawImage(graphics, buttonImage, buttonBounds, new Rectangle(Point.Empty, buttonImage.
Size
), DesignerContentAlignment.Fill, this.transparency, false);
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (2)
169
Size imageSize = this.draggedDesignerImages[i].
Size
;
232
Rectangle rectangle = new Rectangle(locations[i], this.draggedDesignerImages[i].
Size
);
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (1)
305
watermarkRectangle = ActivityDesignerPaint.GetRectangleFromAlignment(compositeDesignerTheme.WatermarkAlignment, bounds, compositeDesignerTheme.WatermarkImage.
Size
);
AuthoringOM\Design\WorkflowLayouts.cs (6)
142
Rectangle workspaceRectangle = new Rectangle(Point.Empty, memoryBitmap.
Size
);
178
ActivityDesignerPaint.DrawImage(graphics, ambientTheme.WorkflowWatermarkImage, this.parentView.RootDesigner.Bounds, new Rectangle(Point.Empty, ambientTheme.WorkflowWatermarkImage.
Size
), ambientTheme.WatermarkAlignment, AmbientTheme.WatermarkTransparency, false);
195
Rectangle bitmapArea = new Rectangle(Point.Empty, memoryBitmap.
Size
);
523
graphics.FillRectangle(Brushes.White, new Rectangle(Point.Empty, memoryBitmap.
Size
));
575
ActivityDesignerPaint.DrawImage(graphics, ambientTheme.WorkflowWatermarkImage, viewPortBitmapArea, new Rectangle(Point.Empty, ambientTheme.WorkflowWatermarkImage.
Size
), ambientTheme.WatermarkAlignment, AmbientTheme.WatermarkTransparency, false);
596
Rectangle workspaceRectangle = new Rectangle(Point.Empty, memoryBitmap.
Size
);
AuthoringOM\Design\WorkflowPrinting.cs (1)
138
ActivityDesignerPaint.DrawImage(graphics, ambientTheme.WorkflowWatermarkImage, boundingRectangle, new Rectangle(Point.Empty, ambientTheme.WorkflowWatermarkImage.
Size
), ambientTheme.WatermarkAlignment, AmbientTheme.WatermarkTransparency, false);
AuthoringOM\Design\WorkflowView.cs (3)
1029
bool takeWorkflowSnapShot = (this.viewPortBitmap == null || this.viewPortBitmap.
Size
!= ViewPortSize);
1660
viewPortGraphics.FillRectangle(shadowDepthBrush, new Rectangle(Point.Empty, new Size(memoryBitmap.
Size
.Width - viewPortData.ShadowDepth.Width - 1, memoryBitmap.
Size
.Height - viewPortData.ShadowDepth.Height - 1)));