1 write to _bounds
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\DesignerUtilsTests.cs (1)
24_bounds = new(5, 5, 20, 20);
23 references to _bounds
System.Windows.Forms.Design.Tests (23)
System\Windows\Forms\Design\DesignerUtilsTests.cs (23)
85using Region region = new(new Rectangle(0, 0, _bounds.Width, _bounds.Height)); 87Color pixelColor = _bitmap.GetPixel(_bounds.Width / 2, _bounds.Height / 2); 100Exception exception = Record.Exception(() => DesignerUtils.DrawGrabHandle(_graphics, _bounds, isPrimary: true)); 108DesignerUtils.DrawGrabHandle(_graphics, _bounds, isPrimary); 118DesignerUtils.DrawLockedHandle(_graphics, _bounds, isPrimary); 127DesignerUtils.DrawLockedHandle(_graphics, _bounds, isPrimary: true); 128Color pixelColor = _bitmap.GetPixel(_bounds.Left + 1, _bounds.Top + 1); 135DesignerUtils.DrawLockedHandle(_graphics, _bounds, isPrimary: false); 136Color pixelColor = _bitmap.GetPixel(_bounds.Left + 1, _bounds.Top + DesignerUtils.s_lockedHandleLowerOffset + 1); 143Exception exception = Record.Exception(() => DesignerUtils.DrawSelectionBorder(_graphics, _bounds)); 150DesignerUtils.DrawSelectionBorder(_graphics, _bounds); 189using Region region = new(new Rectangle(0, 0, _bounds.Width, _bounds.Height)); 195Color pixelColor = _bitmap.GetPixel(_bounds.Width / 2, _bounds.Height / 2); 204DesignerUtils.DrawNoResizeHandle(_graphics, _bounds, isPrimary)); 213DesignerUtils.DrawNoResizeHandle(_graphics, _bounds, isPrimary); 215Color pixelColor = _bitmap.GetPixel(_bounds.Left + 1, _bounds.Top + 1);