1 write to _bounds
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\DesignerUtilsTests.cs (1)
27_bounds = new(5, 5, 20, 20);
23 references to _bounds
System.Windows.Forms.Design.Tests (23)
System\Windows\Forms\Design\DesignerUtilsTests.cs (23)
88using Region region = new(new Rectangle(0, 0, _bounds.Width, _bounds.Height)); 90Color pixelColor = _bitmap.GetPixel(_bounds.Width / 2, _bounds.Height / 2); 103Exception? exception = Record.Exception(() => DesignerUtils.DrawGrabHandle(_graphics, _bounds, isPrimary: true)); 111DesignerUtils.DrawGrabHandle(_graphics, _bounds, isPrimary); 121DesignerUtils.DrawLockedHandle(_graphics, _bounds, isPrimary); 130DesignerUtils.DrawLockedHandle(_graphics, _bounds, isPrimary: true); 131Color pixelColor = _bitmap.GetPixel(_bounds.Left + 1, _bounds.Top + 1); 138DesignerUtils.DrawLockedHandle(_graphics, _bounds, isPrimary: false); 139Color pixelColor = _bitmap.GetPixel(_bounds.Left + 1, _bounds.Top + DesignerUtils.s_lockedHandleLowerOffset + 1); 146Exception? exception = Record.Exception(() => DesignerUtils.DrawSelectionBorder(_graphics, _bounds)); 153DesignerUtils.DrawSelectionBorder(_graphics, _bounds); 192using Region region = new(new Rectangle(0, 0, _bounds.Width, _bounds.Height)); 198Color pixelColor = _bitmap.GetPixel(_bounds.Width / 2, _bounds.Height / 2); 207DesignerUtils.DrawNoResizeHandle(_graphics, _bounds, isPrimary)); 216DesignerUtils.DrawNoResizeHandle(_graphics, _bounds, isPrimary); 218Color pixelColor = _bitmap.GetPixel(_bounds.Left + 1, _bounds.Top + 1);