308 references to RectangleF
PresentationCore (1)
System\Windows\Nrbf\SerializationRecordExtensions.cs (1)
77value = new RectangleF(
PresentationCore.Tests (1)
BinaryFormat\SystemDrawingTests.cs (1)
26RectangleF input = new(1.5f, 2.1f, 100.7f, 15.9f);
System.Drawing.Common.Tests (285)
mono\System.Drawing\BitmapTests.cs (1)
375using Bitmap bmp_rotate = src.Clone(new RectangleF(0, 0, width, height), PixelFormat.Format32bppArgb);
mono\System.Drawing\GraphicsTests.cs (23)
178g.Clip = new Region(new RectangleF(10, 10, 100, 100)); 205g.Clip = new Region(new RectangleF(260, 30, 60, 80)); 222g.Clip = new Region(new RectangleF(260, 30, 60, 80)); 255g.SetClip(new RectangleF(50, 40, 210, 220)); 1037GraphicsContainer gc = g.BeginContainer(new RectangleF(40, 30, 20, 10), new RectangleF(10, 20, 30, 40), GraphicsUnit.Inch); 1051g.BeginContainer(new RectangleF(40, 30, 20, 10), new RectangleF(10, 20, 30, 40), unit); 1901RectangleF layout_rect = new(0.0f, 0.0f, size.Width, size.Height); 1926RectangleF layout_rect = new(0.0f, 0.0f, size.Width, size.Height); 1967RectangleF layout_rect = new(0.0f, 0.0f, size.Width, size.Height); 2023Region[] zero = Measure_Helper(gfx, new RectangleF(0, 0, 0, 0), useSpan); 2026Region[] small = Measure_Helper(gfx, new RectangleF(0, 0, 100, 100), useSpan); 2038Region[] max = Measure_Helper(gfx, new RectangleF(0, 0, float.MaxValue, float.MaxValue), useSpan); 2057Region[] min = Measure_Helper(gfx, new RectangleF(0, 0, float.MinValue, float.MinValue), useSpan); 2068Region[] neg = Measure_Helper(gfx, new RectangleF(0, 0, -20, -20), useSpan); 2209g.Clip = new Region(new RectangleF(0, 0, 32, 32)); 2242g.Clip = new Region(new RectangleF(0, 0, 200, 200)); 2402Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, new RectangleF(0, 0, 0, 0))); 2410g.DrawImage(bmp, new RectangleF(0, 0, 0, 0)); 2411g.DrawImage(bmp, new RectangleF(20, 40, 0, 0)); 2412g.DrawImage(bmp, new RectangleF(10, 20, -1, 0)); 2413g.DrawImage(bmp, new RectangleF(20, 10, 0, -1));
mono\System.Imaging\MetafileTest.cs (1)
317RectangleF rect = new(0, 0, size.Width, size.Height);
System\Drawing\BitmapTests.cs (5)
427AssertExtensions.Throws<ArgumentException>(null, () => bitmap.Clone(new RectangleF(0, 0, width, height), bitmap.PixelFormat)); 441Assert.Throws<OutOfMemoryException>(() => bitmap.Clone(new RectangleF(x, y, width, height), bitmap.PixelFormat)); 457Assert.Throws<OutOfMemoryException>(() => bitmap.Clone(new RectangleF(0, 0, 1, 1), format)); 465Assert.Throws<OutOfMemoryException>(() => bitmap.Clone(new RectangleF(0, 0, 1, 1), PixelFormat.Format32bppArgb)); 486AssertExtensions.Throws<ArgumentException>(null, () => bitmap.Clone(new RectangleF(0, 0, 1, 1), PixelFormat.Format32bppArgb));
System\Drawing\Drawing2D\GraphicsPathTests.cs (35)
349gpf.AddArc(new RectangleF(1, 1, 2, 2), Pi4, Pi4); 709gpf.AddRectangle(new RectangleF(1, 1, 2, 2)); 728gpf.AddRectangle(new RectangleF(1, 1, 1, 1)); 735gpf.AddRectangle(new RectangleF(endF.X, endF.Y, 1, 1)); 751gpf.AddRectangle(new RectangleF(1f, 2f, width, height)); 819gpf.AddEllipse(new RectangleF(1, 1, 2, 2)); 1010gpf.AddString("mono", FontFamily.GenericMonospace, 0, 10, new RectangleF(10f, 10f, 10f, 10f), StringFormat.GenericDefault); 1030gpf.AddString("mono", FontFamily.GenericMonospace, 0, -10, new RectangleF(10f, 10f, 10f, 10f), StringFormat.GenericDefault); 1040gp1.AddString("mono", FontFamily.GenericMonospace, 0, 10, new RectangleF(10f, 10f, 10f, 10f), null); 1043gp2.AddString("mono", FontFamily.GenericMonospace, 0, 10, new RectangleF(10f, 10f, 10f, 10f), StringFormat.GenericDefault); 1046gp3.AddString("mono", FontFamily.GenericMonospace, 0, 10, new RectangleF(10f, 10f, 10f, 10f), StringFormat.GenericTypographic); 1073gp.AddString(null, FontFamily.GenericMonospace, 0, 10, new RectangleF(10f, 10f, 10f, 10f), StringFormat.GenericDefault)); 1093Assert.Equal(new RectangleF(6f, 6f, 6f, 6f), gp.GetBounds()); 1119Assert.Equal(new RectangleF(0f, 0f, 0f, 0f), gp.GetBounds()); 1127RectangleF rectangle = new(1f, 1f, 2f, 2f); 1142gp.GetBounds().Should().BeApproximately(new(60f, 60f, 43.3f, 48.3f), precision: 0.1f); 1297gp.Warp([new(0, 0)], new RectangleF(10, 20, 30, 40), matrix); 1307gp.Warp([new(0, 0)], new RectangleF(10, 20, 30, 40), matrix, (WarpMode)int.MinValue); 1599gp.AddRectangle(new RectangleF(10, 10, 20, 20)); 1617new(10, 10, 20, 20), 1618new(20, 20, 10, 10) 1714yield return new object[] { new Rectangle(1, 1, 2, 2), 0f, new RectangleF(0.5f, 0.5f, 3.0f, 3.0f) }; 1715yield return new object[] { new Rectangle(1, 1, 2, 2), 0.5f, new RectangleF(0.5f, 0.5f, 3.0f, 3.0f) }; 1716yield return new object[] { new Rectangle(1, 1, 2, 2), 1.0f, new RectangleF(0.5f, 0.5f, 3.0f, 3.0f) }; 1717yield return new object[] { new Rectangle(1, 1, 2, 2), 1.1f, new RectangleF(0.45f, 0.45f, 3.10f, 3.10f) }; 2084path.GetBounds().Should().BeApproximately(new(1f, 1f, 1f, 1f), precision: 0.000001f); 2100path.GetBounds().Should().BeApproximately(new(2.99962401f, 2.01370716f, 0f, 0.0137047768f), Delta); 2117path.GetBounds().Should().BeApproximately(new(1f, 1f, 3f, 3f), Delta); 2133path.GetBounds().Should().BeApproximately(new(1f, 1f, 1f, 1f), Delta); 2143path.GetBounds().Should().BeApproximately(new(0.8333333f, 0.8333333f, 2.33333278f, 2.33333278f), Delta); 2159path.GetBounds().Should().BeApproximately(new(1f, 1f, 2f, 2f), Delta); 2169path.GetBounds().Should().BeApproximately(new(1f, 1f, 2f, 2f), Delta); 2185path.GetBounds().Should().BeApproximately(new(2f, 2f, 0.9999058f, 0.0274119377f), Delta); 2202path.GetBounds().Should().BeApproximately(new(1f, 1f, 2f, 2f), Delta); 2386path.AddRoundedRectangle(new RectangleF(10, 10, 20, 20), new(5, 5));
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (15)
10yield return new object[] { new Point(0, 0), new Point(2, 2), Color.Empty, Color.Empty, new RectangleF(0, 0, 2, 2) }; 11yield return new object[] { new Point(1, 0), new Point(0, 0), Color.Empty, Color.Red, new RectangleF(0, -0.5f, 1, 1) }; 12yield return new object[] { new Point(1, 2), new Point(4, 6), Color.Plum, Color.Red, new RectangleF(1, 2, 3, 4) }; 13yield return new object[] { new Point(1, 2), new Point(4, 6), Color.Red, Color.Red, new RectangleF(1, 2, 3, 4) }; 14yield return new object[] { new Point(-1, -2), new Point(4, 6), Color.Red, Color.Plum, new RectangleF(-1, -2, 5, 8) }; 15yield return new object[] { new Point(-4, -6), new Point(1, 2), Color.Black, Color.Wheat, new RectangleF(-4, -6, 5, 8) }; 16yield return new object[] { new Point(4, 6), new Point(-1, -2), Color.Black, Color.Wheat, new RectangleF(-1, -2, 5, 8) }; 17yield return new object[] { new Point(4, 6), new Point(1, 2), Color.Black, Color.Wheat, new RectangleF(1, 2, 3, 4) }; 205AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new RectangleF(1, 2, 0, 4), Color.Empty, Color.Empty, 0f)); 207AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new RectangleF(1, 2, 0, 4), Color.Empty, Color.Empty, LinearGradientMode.BackwardDiagonal)); 209AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new RectangleF(1, 2, 0, 4), Color.Empty, Color.Empty, 0, true)); 216AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new RectangleF(1, 2, 3, 0), Color.Empty, Color.Empty, 0f)); 218AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new RectangleF(1, 2, 3, 0), Color.Empty, Color.Empty, LinearGradientMode.BackwardDiagonal)); 220AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new RectangleF(1, 2, 3, 0), Color.Empty, Color.Empty, 0, true)); 229Assert.ThrowsAny<ArgumentException>(() => new LinearGradientBrush(new RectangleF(1, 2, 3, 4), Color.Empty, Color.Empty, linearGradientMode));
System\Drawing\Drawing2D\MatrixTests.cs (2)
148Assert.Throws<OutOfMemoryException>(() => new Matrix(new RectangleF(1, 1, 0, 1), new PointF[3])); 155Assert.Throws<OutOfMemoryException>(() => new Matrix(new RectangleF(1, 1, 1, 0), new PointF[3]));
System\Drawing\Drawing2D\PathGradientBrushTests.cs (1)
32private readonly RectangleF _defaultRectangle = new(1, 2, 19, 28);
System\Drawing\Graphics_DrawBezierTests.cs (1)
112AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawArc(pen, new RectangleF(0, 0, 1, 1), 0, 90));
System\Drawing\Graphics_GetContextTests.Core.cs (4)
71Assert.Equal(new RectangleF(0, 0, 9, 10), clip.GetBounds(graphics)); 90Assert.Equal(new RectangleF(1, 2, 9, 10), clip.GetBounds(graphics)); 111Assert.Equal(new RectangleF(0, 0, 8, 8), clip.GetBounds(graphics)); 129Assert.Equal(new RectangleF(0, 0, 8, 8), clip.GetBounds(graphics));
System\Drawing\Graphics_GetContextTests.cs (4)
73Assert.Equal(new RectangleF(0, 0, 9, 10), region.GetBounds(graphics)); 91Assert.Equal(new RectangleF(1, 2, 9, 10), region.GetBounds(graphics)); 112Assert.Equal(new RectangleF(0, 0, 8, 8), region.GetBounds(graphics)); 134Assert.Equal(new RectangleF(0, 0, 8, 8), region.GetBounds(graphics));
System\Drawing\GraphicsTests.Core.cs (10)
75AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawRectangle(null, new RectangleF(0f, 0f, 1f, 1f))); 88AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawRectangle(pen, new RectangleF(0f, 0f, 1f, 1f))); 102Assert.Throws<InvalidOperationException>(() => graphics.DrawRectangle(pen, new RectangleF(0f, 0f, 1f, 1f))); 119AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawRectangle(pen, new RectangleF(0f, 0f, 1f, 1f))); 129AssertExtensions.Throws<ArgumentNullException>("brush", () => graphics.FillPie(null, new RectangleF(0, 0, 1, 1), 0, 90)); 142AssertExtensions.Throws<ArgumentException>(null, () => graphics.FillPie(brush, new RectangleF(0, 0, 1, 1), 0, 90)); 153AssertExtensions.Throws<ArgumentException>(null, () => graphics.FillPie(brush, new RectangleF(0, 0, 0, 1), 0, 90)); 164AssertExtensions.Throws<ArgumentException>(null, () => graphics.FillPie(brush, new RectangleF(0, 0, 1, 0), 0, 90)); 178Assert.Throws<InvalidOperationException>(() => graphics.FillPie(brush, new RectangleF(0, 0, 1, 1), 0, 90)); 195AssertExtensions.Throws<ArgumentException>(null, () => graphics.FillPie(brush, new RectangleF(0, 0, 1, 1), 0, 90));
System\Drawing\GraphicsTests.cs (20)
1962AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawArc(null, new RectangleF(0, 0, 1, 1), 0, 90)); 1976AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawArc(pen, new RectangleF(0, 0, 1, 1), 0, 90)); 1988AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawArc(pen, new RectangleF(0, 0, 0, 1), 0, 90)); 2000AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawArc(pen, new RectangleF(0, 0, 1, 0), 0, 90)); 2015Assert.Throws<InvalidOperationException>(() => graphics.DrawArc(pen, new RectangleF(0, 0, 1, 1), 0, 90)); 2034AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawArc(pen, new RectangleF(0, 0, 1, 1), 0, 90)); 2171AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawEllipse(null, new RectangleF(0, 0, 1, 1))); 2185AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawEllipse(pen, new RectangleF(0, 0, 1, 1))); 2200Assert.Throws<InvalidOperationException>(() => graphics.DrawEllipse(pen, new RectangleF(0, 0, 1, 1))); 2219AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawEllipse(pen, new RectangleF(0, 0, 1, 1))); 2230AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPie(null, new RectangleF(0, 0, 1, 1), 0, 90)); 2244AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawPie(pen, new RectangleF(0, 0, 1, 1), 0, 90)); 2256AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawPie(pen, new RectangleF(0, 0, 0, 1), 0, 90)); 2268AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawArc(pen, new RectangleF(0, 0, 1, 0), 0, 90)); 2283Assert.Throws<InvalidOperationException>(() => graphics.DrawPie(pen, new RectangleF(0, 0, 1, 1), 0, 90)); 2302AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawPie(pen, new RectangleF(0, 0, 1, 1), 0, 90)); 2802Assert.Equal(new RectangleF(-4194304, -4194304, 8388608, 8388608), graphics.ClipBounds); 2835RectangleF rectF = new(10.5f, 10.5f, 50.5f, 50.5f); 2983graphics.DrawRoundedRectangle(Pens.Red, new RectangleF(0, 0, 10, 10), new(2, 2)); 3001graphics.FillRoundedRectangle(Brushes.Green, new RectangleF(0, 0, 10, 10), new(2, 2));
System\Drawing\Imaging\MetafileTests.cs (1)
35private readonly RectangleF _rectangleF = new(0, 0, 64, 64);
System\Drawing\RegionTests.cs (162)
47Assert.Equal(new RectangleF(-4194304, -4194304, 8388608, 8388608), region.GetBounds(s_graphic)); 61Assert.Equal(new RectangleF(x, y, width, height), region.GetBounds(s_graphic)); 72RectangleF rectangle = new(x, y, width, height); 178Assert.Equal(new RectangleF(1, 2, 9, 10), region.GetBounds(s_graphic)); 282new Region(new RectangleF(10, 10, 100, 100)), 283new RectangleF[] { new(40, 60, 100, 20) }, 284new RectangleF[] { new(110, 60, 30, 20) } 289new Region(new RectangleF(70, 10, 100, 100)), 290new RectangleF[] { new(40, 60, 100, 20) }, 291new RectangleF[] { new(40, 60, 30, 20) } 296new Region(new RectangleF(40, 100, 100, 100)), 297new RectangleF[] { new(70, 80, 50, 40) }, 298new RectangleF[] { new(70, 80, 50, 20) } 303new Region(new RectangleF(40, 10, 100, 100)), 304new RectangleF[] { new(70, 80, 50, 40) }, 305new RectangleF[] { new(70, 110, 50, 10) } 310new Region(new RectangleF(30, 30, 80, 80)), 313new(45, 45, 200, 200), 314new(160, 260, 10, 10), 315new(170, 260, 10, 10), 317new RectangleF[] { new(170, 260, 10, 10) } 330new RectangleF[] { new(1, 2, 3, 4) }, 545yield return new object[] { new Region(new Rectangle(1, 2, 3, 4)), new Region(new RectangleF(1, 2, 3, 4)), true }; 627new RectangleF[] { new(500, 30, 60, 80) }, 635new RectangleF[] { new(500, 30, 60, 80) } 641new RectangleF[] { new(520, 40, 60, 80) }, 644new(-4194304, -4194304, 8388608, 4194344), 645new(-4194304, 40, 4194824, 80), 646new(580, 40, 4193724, 80), 647new(-4194304, 120, 8388608, 4194184) 662new RectangleF[] { new(40, 60, 100, 20) }, 665new(10, 10, 100, 50), 666new(10, 60, 30, 20), 667new(10, 80, 100, 30) 675new RectangleF[] { new(40, 60, 100, 20) }, 678new(70, 10, 100, 50), 679new(140, 60, 30, 20), 680new(70, 80, 100, 30) 688new RectangleF[] { new(70, 80, 50, 40) }, 691new(40, 100, 30, 20), 692new(120, 100, 20, 20), 693new(40, 120, 100, 80) 701new RectangleF[] { new(70, 80, 50, 40) }, 704new(40, 10, 100, 70), 705new(40, 80, 30, 30), 706new(120, 80, 20, 30) 716new(45, 45, 200, 200), 717new(160, 260, 10, 10), 718new(170, 260, 10, 10) 722new(30, 30, 80, 15), 723new(30, 45, 15, 65) 731new RectangleF[] { new(30, 70, 150, 40) }, 732new RectangleF[] { new(50, 110, 100, 90) } 739new RectangleF[] { new(40, 10, 100, 150) }, 740new RectangleF[] { new(140, 60, 30, 70) } 747new RectangleF[] { new(100, 10, 100, 150) }, 748new RectangleF[] { new(70, 60, 30, 70) } 755new RectangleF[] { new(10, 80, 140, 150) }, 756new RectangleF[] { new(20, 20, 100, 60) } 762new RectangleF[] { new(170, 40, 60, 80) }, 765new(130, 30, 60, 10), 766new(130, 40, 40, 70) 791using Region region = new(new RectangleF(20, 20, 20, 20)); 792using Region union = new(new RectangleF(20, 80, 20, 10)); 794union.Union(new RectangleF(60, 60, 30, 10)); 920Assert.Equal(new RectangleF(1, 2, 3, 4), newRegion.GetBounds(s_graphic)); 1055Assert.Equal(new RectangleF(-5, -5, 10, 10), rects[0]); 1063new RectangleF[] { new(500, 30, 60, 80) }, 1064new RectangleF[] { new(500, 30, 60, 80) } 1069new RectangleF[] { new(500, 30, 60, 80) }, 1083new RectangleF[] { new(520, 40, 60, 80) }, 1096new Region(new RectangleF(260, 30, 60, 80)), 1097new RectangleF[] { new(290, 40, 60, 90) }, 1098new RectangleF[] { new(290, 40, 30, 70) } 1103new Region(new RectangleF(20, 330, 40, 50)), 1106new(50, 340, 40, 50), 1107new(70, 360, 30, 50), 1108new(80, 400, 30, 10) 1211region.Intersect(new RectangleF(5, 5, -10, -10)); 1425AssertExtensions.Throws<ArgumentException>(null, () => disposedRegion.IsVisible(new RectangleF(1, 2, 3, 4))); 1429AssertExtensions.Throws<ArgumentException>(null, () => disposedRegion.IsVisible(new RectangleF(1, 2, 3, 4), s_graphic)); 1472Assert.Equal(new RectangleF(-4194304, -4194304, 8388608, 8388608), region.GetBounds(s_graphic)); 1491new RectangleF[] { new(500, 30, 60, 80) }, 1492new RectangleF[] { new(500, 30, 60, 80) } 1499new RectangleF[] { new(500, 30, 60, 80) } 1505new RectangleF[] { new(520, 30, 60, 80) }, 1506new RectangleF[] { new(500, 30, 80, 80) } 1512new RectangleF[] { new(520, 40, 60, 80) }, 1515new(500, 30, 60, 10), 1516new(500, 40, 80, 70), 1517new(520, 110, 60, 10), 1524new RectangleF[] { new(520, 40, 60, 80) }, 1541new(20, 80, 20, 10), 1542new(60, 60, 30, 10) 1546new(20, 20, 20, 20), 1547new(60, 60, 30, 10), 1548new(20, 80, 20, 10) 1557new(50, 190, 40, 50), 1558new(70, 210, 30, 50) 1562new(20, 180, 40, 10), 1563new(20, 190, 70, 20), 1564new(20, 210, 80, 20), 1565new(50, 230, 50, 10), 1566new(70, 240, 30, 20) 1575new(50, 340, 40, 50), 1576new(70, 360, 30, 50), 1577new(80, 400, 30, 10) 1581new(20, 330, 40, 10), 1582new(20, 340, 70, 20), 1583new(20, 360, 80, 20), 1584new(50, 380, 50, 10), 1585new(70, 390, 30, 10), 1586new(70, 400, 40, 10) 1595new(100, 100, 60, 60), 1596new(200, 200, 80, 80) 1600new(10, 20, 50, 50), 1601new(100, 100, 60, 60), 1602new(200, 200, 80, 80) 1610new RectangleF[] { new(40, 60, 100, 20) }, 1613new(10, 10, 100, 50), 1614new(10, 60, 130, 20), 1615new(10, 80, 100, 30) 1623new RectangleF[] { new(40, 60, 100, 20) }, 1626new(70, 10, 100, 50), 1627new(40, 60, 130, 20), 1628new(70, 80, 100, 30) 1636new RectangleF[] { new(70, 80, 50, 40) }, 1639new(70, 80, 50, 20), 1640new(40, 100, 100, 100) 1648new RectangleF[] { new(70, 80, 50, 40) }, 1651new(40, 10, 100, 100), 1652new(70, 110, 50, 10) 1662new(45, 45, 200, 200), 1663new(160, 260, 10, 10), 1664new(170, 260, 10, 10) 1668new(30, 30, 80, 15), 1669new(30, 45, 215, 65), 1670new(45, 110, 200, 135), 1671new(160, 260, 20, 10) 1807using Region region = new(new RectangleF(1, 2, 3, 4)); 1816using Region region = new(new RectangleF(1, 2, 3, 4)); 1892using Region region = new(new RectangleF(1, 2, 3, 4)); 1915using Region region = new(new RectangleF(1, 2, 3, 4)); 1953using Region region = new(new RectangleF(1, 2, 3, 4)); 1975new Region(new RectangleF(500, 30, 60, 80)), 1976new RectangleF[] { new(500, 30, 60, 80) }, 1982new Region(new RectangleF(500, 30, 60, 80)), 1984new RectangleF[] { new(500, 30, 60, 80) } 1989new Region(new RectangleF(0, 0, 0, 0)), 1990new RectangleF[] { new(500, 30, 60, 80) }, 1991new RectangleF[] { new(500, 30, 60, 80) } 1997new RectangleF[] { new(520, 40, 60, 80) }, 2000new(-4194304, -4194304, 8388608, 4194344), 2001new(-4194304, 40, 4194824, 80), 2002new(580, 40, 4193724, 80), 2003new(-4194304, 120, 8388608, 4194184) 2016new Region(new RectangleF(380, 30, 60, 80)), 2017new RectangleF[] { new(410, 40, 60, 80) }, 2020new(380, 30, 60, 10), 2021new(380, 40, 30, 70), 2022new(440, 40, 30, 70), 2023new(410, 110, 60, 10)
System.Drawing.Primitives (4)
System\Drawing\RectangleF.cs (4)
82new RectangleF(left, top, right - left, bottom - top); 280return new RectangleF(x1, y1, x2 - x1, y2 - y1); 302return new RectangleF(x1, y1, x2 - x1, y2 - y1); 323public static implicit operator RectangleF(Rectangle r) => new RectangleF(r.X, r.Y, r.Width, r.Height);
System.Private.Windows.Core (1)
System\Private\Windows\Core\Nrbf\SerializationRecordExtensions.cs (1)
256value = new RectangleF(
System.Windows.Forms.Design (1)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
417new RectangleF(0.0f, 0.0f, ClientSize.Width, ClientSize.Height),
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Internals\ScaleHelper.cs (2)
184RectangleF sourceBounds = new(0, 0, bitmap.Size.Width, bitmap.Size.Height); 185RectangleF destinationBounds = new(0, 0, desiredSize.Width, desiredSize.Height);
System.Windows.Forms.Tests (13)
System\Resources\ResxDataNodeTests.cs (1)
91new RectangleF(10.0f, 20.0f, 30.0f, 40.0f),
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (2)
123new RectangleF(1, 2, 3, 4), 909public RectangleF RectangleF = new(1, 2, 3, 4);
System\Windows\Forms\ControlPaintTests.cs (10)
1900yield return new object[] { s, SystemFonts.MenuFont, Color.Red, new RectangleF(1, 2, 3, 4), null }; 1902yield return new object[] { s, SystemFonts.MenuFont, Color.Red, new RectangleF(1, 2, -3, -4), new StringFormat() }; 1903yield return new object[] { s, SystemFonts.MenuFont, Color.Red, new RectangleF(1, 2, 3, 4), new StringFormat() }; 1904yield return new object[] { s, SystemFonts.MenuFont, Color.Black, new RectangleF(1, 2, 3, 4), new StringFormat() }; 1905yield return new object[] { s, SystemFonts.MenuFont, Color.White, new RectangleF(1, 2, 3, 4), new StringFormat() }; 1906yield return new object[] { s, SystemFonts.MenuFont, Color.Transparent, new RectangleF(1, 2, 3, 4), new StringFormat() }; 1907yield return new object[] { s, SystemFonts.MenuFont, Color.Empty, new RectangleF(1, 2, 3, 4), new StringFormat() }; 1931ControlPaint.DrawStringDisabled(graphics, s, null, Color.Red, new RectangleF(1, 2, 3, 4), null); 1934ControlPaint.DrawStringDisabled(graphics, s, null, Color.Red, new RectangleF(1, 2, 3, 4), null); 1941Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawStringDisabled(null, s, SystemFonts.MenuFont, Color.Red, new RectangleF(1, 2, 3, 4), new StringFormat()));