348 references to RectangleF
PresentationCore (1)
System\Windows\Nrbf\SerializationRecordExtensions.cs (1)
77
value = new
RectangleF
(
System.Drawing.Common.Tests (326)
mono\System.Drawing\BitmapTests.cs (1)
375
using Bitmap bmp_rotate = src.Clone(new
RectangleF
(0, 0, width, height), PixelFormat.Format32bppArgb);
mono\System.Drawing\GraphicsTests.cs (27)
177
g.Clip = new Region(new
RectangleF
(10, 10, 100, 100));
204
g.Clip = new Region(new
RectangleF
(260, 30, 60, 80));
221
g.Clip = new Region(new
RectangleF
(260, 30, 60, 80));
254
g.SetClip(new
RectangleF
(50, 40, 210, 220));
854
new
(0.0f, 5.0f, -10.0f, -10.0f),
855
new
(15.0f, 0.0f, -10.0f, 5.0f)
892
new
(0.0f, 5.0f, -10.0f, -10.0f),
893
new
(15.0f, 0.0f, -10.0f, 5.0f)
1036
GraphicsContainer gc = g.BeginContainer(new
RectangleF
(40, 30, 20, 10), new
RectangleF
(10, 20, 30, 40), GraphicsUnit.Inch);
1050
g.BeginContainer(new
RectangleF
(40, 30, 20, 10), new
RectangleF
(10, 20, 30, 40), unit);
1900
RectangleF layout_rect =
new
(0.0f, 0.0f, size.Width, size.Height);
1925
RectangleF layout_rect =
new
(0.0f, 0.0f, size.Width, size.Height);
1966
RectangleF layout_rect =
new
(0.0f, 0.0f, size.Width, size.Height);
2022
Region[] zero = Measure_Helper(gfx, new
RectangleF
(0, 0, 0, 0), useSpan);
2025
Region[] small = Measure_Helper(gfx, new
RectangleF
(0, 0, 100, 100), useSpan);
2037
Region[] max = Measure_Helper(gfx, new
RectangleF
(0, 0, float.MaxValue, float.MaxValue), useSpan);
2056
Region[] min = Measure_Helper(gfx, new
RectangleF
(0, 0, float.MinValue, float.MinValue), useSpan);
2067
Region[] neg = Measure_Helper(gfx, new
RectangleF
(0, 0, -20, -20), useSpan);
2208
g.Clip = new Region(new
RectangleF
(0, 0, 32, 32));
2241
g.Clip = new Region(new
RectangleF
(0, 0, 200, 200));
2401
Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, new
RectangleF
(0, 0, 0, 0)));
2409
g.DrawImage(bmp, new
RectangleF
(0, 0, 0, 0));
2410
g.DrawImage(bmp, new
RectangleF
(20, 40, 0, 0));
2411
g.DrawImage(bmp, new
RectangleF
(10, 20, -1, 0));
2412
g.DrawImage(bmp, new
RectangleF
(20, 10, 0, -1));
mono\System.Imaging\MetafileTest.cs (1)
317
RectangleF rect =
new
(0, 0, size.Width, size.Height);
System\Drawing\BitmapTests.cs (5)
426
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.Clone(new
RectangleF
(0, 0, width, height), bitmap.PixelFormat));
440
Assert.Throws<ExternalException>(() => bitmap.Clone(new
RectangleF
(x, y, width, height), bitmap.PixelFormat));
456
Assert.Throws<ExternalException>(() => bitmap.Clone(new
RectangleF
(0, 0, 1, 1), format));
464
Assert.Throws<ExternalException>(() => bitmap.Clone(new
RectangleF
(0, 0, 1, 1), PixelFormat.Format32bppArgb));
485
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.Clone(new
RectangleF
(0, 0, 1, 1), PixelFormat.Format32bppArgb));
System\Drawing\Drawing2D\GraphicsPathTests.cs (40)
349
gpf.AddArc(new
RectangleF
(1, 1, 2, 2), Pi4, Pi4);
709
gpf.AddRectangle(new
RectangleF
(1, 1, 2, 2));
728
gpf.AddRectangle(new
RectangleF
(1, 1, 1, 1));
735
gpf.AddRectangle(new
RectangleF
(endF.X, endF.Y, 1, 1));
751
gpf.AddRectangle(new
RectangleF
(1f, 2f, width, height));
759
RectangleF[] rectFloat = [
new
(1, 1, 2, 2),
new
(3, 3, 4, 4)];
784
new
(1, 1, 0f, 0f),
785
new
(1, 1, 2, 2),
786
new
(1, 1, 2, 2)
819
gpf.AddEllipse(new
RectangleF
(1, 1, 2, 2));
1010
gpf.AddString("mono", FontFamily.GenericMonospace, 0, 10, new
RectangleF
(10f, 10f, 10f, 10f), StringFormat.GenericDefault);
1030
gpf.AddString("mono", FontFamily.GenericMonospace, 0, -10, new
RectangleF
(10f, 10f, 10f, 10f), StringFormat.GenericDefault);
1040
gp1.AddString("mono", FontFamily.GenericMonospace, 0, 10, new
RectangleF
(10f, 10f, 10f, 10f), null);
1043
gp2.AddString("mono", FontFamily.GenericMonospace, 0, 10, new
RectangleF
(10f, 10f, 10f, 10f), StringFormat.GenericDefault);
1046
gp3.AddString("mono", FontFamily.GenericMonospace, 0, 10, new
RectangleF
(10f, 10f, 10f, 10f), StringFormat.GenericTypographic);
1073
gp.AddString(null, FontFamily.GenericMonospace, 0, 10, new
RectangleF
(10f, 10f, 10f, 10f), StringFormat.GenericDefault));
1093
Assert.Equal(new
RectangleF
(6f, 6f, 6f, 6f), gp.GetBounds());
1119
Assert.Equal(new
RectangleF
(0f, 0f, 0f, 0f), gp.GetBounds());
1127
RectangleF rectangle =
new
(1f, 1f, 2f, 2f);
1142
gp.GetBounds().Should().BeApproximately(
new
(60f, 60f, 43.3f, 48.3f), precision: 0.1f);
1297
gp.Warp([new(0, 0)], new
RectangleF
(10, 20, 30, 40), matrix);
1307
gp.Warp([new(0, 0)], new
RectangleF
(10, 20, 30, 40), matrix, (WarpMode)int.MinValue);
1599
gp.AddRectangle(new
RectangleF
(10, 10, 20, 20));
1617
new
(10, 10, 20, 20),
1618
new
(20, 20, 10, 10)
1714
yield return new object[] { new Rectangle(1, 1, 2, 2), 0f, new
RectangleF
(0.5f, 0.5f, 3.0f, 3.0f) };
1715
yield return new object[] { new Rectangle(1, 1, 2, 2), 0.5f, new
RectangleF
(0.5f, 0.5f, 3.0f, 3.0f) };
1716
yield return new object[] { new Rectangle(1, 1, 2, 2), 1.0f, new
RectangleF
(0.5f, 0.5f, 3.0f, 3.0f) };
1717
yield return new object[] { new Rectangle(1, 1, 2, 2), 1.1f, new
RectangleF
(0.45f, 0.45f, 3.10f, 3.10f) };
2079
path.GetBounds().Should().BeApproximately(
new
(1f, 1f, 1f, 1f), precision: 0.000001f);
2095
path.GetBounds().Should().BeApproximately(
new
(2.99962401f, 2.01370716f, 0f, 0.0137047768f), Delta);
2112
path.GetBounds().Should().BeApproximately(
new
(1f, 1f, 3f, 3f), Delta);
2128
path.GetBounds().Should().BeApproximately(
new
(1f, 1f, 1f, 1f), Delta);
2138
path.GetBounds().Should().BeApproximately(
new
(0.8333333f, 0.8333333f, 2.33333278f, 2.33333278f), Delta);
2154
path.GetBounds().Should().BeApproximately(
new
(1f, 1f, 2f, 2f), Delta);
2164
path.GetBounds().Should().BeApproximately(
new
(1f, 1f, 2f, 2f), Delta);
2180
path.GetBounds().Should().BeApproximately(
new
(2f, 2f, 0.9999058f, 0.0274119377f), Delta);
2197
path.GetBounds().Should().BeApproximately(
new
(1f, 1f, 2f, 2f), Delta);
2381
path.AddRoundedRectangle(new
RectangleF
(10, 10, 20, 20), new(5, 5));
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (15)
12
yield return new object[] { new Point(0, 0), new Point(2, 2), Color.Empty, Color.Empty, new
RectangleF
(0, 0, 2, 2) };
13
yield return new object[] { new Point(1, 0), new Point(0, 0), Color.Empty, Color.Red, new
RectangleF
(0, -0.5f, 1, 1) };
14
yield return new object[] { new Point(1, 2), new Point(4, 6), Color.Plum, Color.Red, new
RectangleF
(1, 2, 3, 4) };
15
yield return new object[] { new Point(1, 2), new Point(4, 6), Color.Red, Color.Red, new
RectangleF
(1, 2, 3, 4) };
16
yield return new object[] { new Point(-1, -2), new Point(4, 6), Color.Red, Color.Plum, new
RectangleF
(-1, -2, 5, 8) };
17
yield return new object[] { new Point(-4, -6), new Point(1, 2), Color.Black, Color.Wheat, new
RectangleF
(-4, -6, 5, 8) };
18
yield return new object[] { new Point(4, 6), new Point(-1, -2), Color.Black, Color.Wheat, new
RectangleF
(-1, -2, 5, 8) };
19
yield return new object[] { new Point(4, 6), new Point(1, 2), Color.Black, Color.Wheat, new
RectangleF
(1, 2, 3, 4) };
207
AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new
RectangleF
(1, 2, 0, 4), Color.Empty, Color.Empty, 0f));
209
AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new
RectangleF
(1, 2, 0, 4), Color.Empty, Color.Empty, LinearGradientMode.BackwardDiagonal));
211
AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new
RectangleF
(1, 2, 0, 4), Color.Empty, Color.Empty, 0, true));
218
AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new
RectangleF
(1, 2, 3, 0), Color.Empty, Color.Empty, 0f));
220
AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new
RectangleF
(1, 2, 3, 0), Color.Empty, Color.Empty, LinearGradientMode.BackwardDiagonal));
222
AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new
RectangleF
(1, 2, 3, 0), Color.Empty, Color.Empty, 0, true));
231
Assert.ThrowsAny<ArgumentException>(() => new LinearGradientBrush(new
RectangleF
(1, 2, 3, 4), Color.Empty, Color.Empty, linearGradientMode));
System\Drawing\Drawing2D\MatrixTests.cs (2)
149
Assert.Throws<ExternalException>(() => new Matrix(new
RectangleF
(1, 1, 0, 1), new PointF[3]));
156
Assert.Throws<ExternalException>(() => new Matrix(new
RectangleF
(1, 1, 1, 0), new PointF[3]));
System\Drawing\Drawing2D\PathGradientBrushTests.cs (1)
34
private readonly RectangleF _defaultRectangle =
new
(1, 2, 19, 28);
System\Drawing\Graphics_DrawBezierTests.cs (1)
112
AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawArc(pen, new
RectangleF
(0, 0, 1, 1), 0, 90));
System\Drawing\Graphics_GetContextTests.Core.cs (4)
71
Assert.Equal(new
RectangleF
(0, 0, 9, 10), clip.GetBounds(graphics));
90
Assert.Equal(new
RectangleF
(1, 2, 9, 10), clip.GetBounds(graphics));
111
Assert.Equal(new
RectangleF
(0, 0, 8, 8), clip.GetBounds(graphics));
129
Assert.Equal(new
RectangleF
(0, 0, 8, 8), clip.GetBounds(graphics));
System\Drawing\Graphics_GetContextTests.cs (4)
73
Assert.Equal(new
RectangleF
(0, 0, 9, 10), region.GetBounds(graphics));
91
Assert.Equal(new
RectangleF
(1, 2, 9, 10), region.GetBounds(graphics));
112
Assert.Equal(new
RectangleF
(0, 0, 8, 8), region.GetBounds(graphics));
134
Assert.Equal(new
RectangleF
(0, 0, 8, 8), region.GetBounds(graphics));
System\Drawing\GraphicsTests.Core.cs (10)
75
AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawRectangle(null, new
RectangleF
(0f, 0f, 1f, 1f)));
88
AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawRectangle(pen, new
RectangleF
(0f, 0f, 1f, 1f)));
102
Assert.Throws<InvalidOperationException>(() => graphics.DrawRectangle(pen, new
RectangleF
(0f, 0f, 1f, 1f)));
119
AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawRectangle(pen, new
RectangleF
(0f, 0f, 1f, 1f)));
129
AssertExtensions.Throws<ArgumentNullException>("brush", () => graphics.FillPie(null, new
RectangleF
(0, 0, 1, 1), 0, 90));
142
AssertExtensions.Throws<ArgumentException>(null, () => graphics.FillPie(brush, new
RectangleF
(0, 0, 1, 1), 0, 90));
153
AssertExtensions.Throws<ArgumentException>(null, () => graphics.FillPie(brush, new
RectangleF
(0, 0, 0, 1), 0, 90));
164
AssertExtensions.Throws<ArgumentException>(null, () => graphics.FillPie(brush, new
RectangleF
(0, 0, 1, 0), 0, 90));
178
Assert.Throws<InvalidOperationException>(() => graphics.FillPie(brush, new
RectangleF
(0, 0, 1, 1), 0, 90));
195
AssertExtensions.Throws<ArgumentException>(null, () => graphics.FillPie(brush, new
RectangleF
(0, 0, 1, 1), 0, 90));
System\Drawing\GraphicsTests.cs (20)
1963
AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawArc(null, new
RectangleF
(0, 0, 1, 1), 0, 90));
1977
AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawArc(pen, new
RectangleF
(0, 0, 1, 1), 0, 90));
1989
AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawArc(pen, new
RectangleF
(0, 0, 0, 1), 0, 90));
2001
AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawArc(pen, new
RectangleF
(0, 0, 1, 0), 0, 90));
2016
Assert.Throws<InvalidOperationException>(() => graphics.DrawArc(pen, new
RectangleF
(0, 0, 1, 1), 0, 90));
2035
AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawArc(pen, new
RectangleF
(0, 0, 1, 1), 0, 90));
2172
AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawEllipse(null, new
RectangleF
(0, 0, 1, 1)));
2186
AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawEllipse(pen, new
RectangleF
(0, 0, 1, 1)));
2201
Assert.Throws<InvalidOperationException>(() => graphics.DrawEllipse(pen, new
RectangleF
(0, 0, 1, 1)));
2220
AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawEllipse(pen, new
RectangleF
(0, 0, 1, 1)));
2231
AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPie(null, new
RectangleF
(0, 0, 1, 1), 0, 90));
2245
AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawPie(pen, new
RectangleF
(0, 0, 1, 1), 0, 90));
2257
AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawPie(pen, new
RectangleF
(0, 0, 0, 1), 0, 90));
2269
AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawArc(pen, new
RectangleF
(0, 0, 1, 0), 0, 90));
2284
Assert.Throws<InvalidOperationException>(() => graphics.DrawPie(pen, new
RectangleF
(0, 0, 1, 1), 0, 90));
2303
AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawPie(pen, new
RectangleF
(0, 0, 1, 1), 0, 90));
2803
Assert.Equal(new
RectangleF
(-4194304, -4194304, 8388608, 8388608), graphics.ClipBounds);
2836
RectangleF rectF =
new
(10.5f, 10.5f, 50.5f, 50.5f);
2984
graphics.DrawRoundedRectangle(Pens.Red, new
RectangleF
(0, 0, 10, 10), new(2, 2));
3002
graphics.FillRoundedRectangle(Brushes.Green, new
RectangleF
(0, 0, 10, 10), new(2, 2));
System\Drawing\Imaging\MetafileTests.cs (1)
38
private readonly RectangleF _rectangleF =
new
(0, 0, 64, 64);
System\Drawing\RegionTests.cs (194)
47
Assert.Equal(new
RectangleF
(-4194304, -4194304, 8388608, 8388608), region.GetBounds(s_graphic));
61
Assert.Equal(new
RectangleF
(x, y, width, height), region.GetBounds(s_graphic));
72
RectangleF rectangle =
new
(x, y, width, height);
174
new
(1, 2, 3, 3),
175
new
(1, 5, 9, 1),
176
new
(4, 6, 6, 6)
178
Assert.Equal(new
RectangleF
(1, 2, 9, 10), region.GetBounds(s_graphic));
282
new Region(new
RectangleF
(10, 10, 100, 100)),
283
new RectangleF[] {
new
(40, 60, 100, 20) },
284
new RectangleF[] {
new
(110, 60, 30, 20) }
289
new Region(new
RectangleF
(70, 10, 100, 100)),
290
new RectangleF[] {
new
(40, 60, 100, 20) },
291
new RectangleF[] {
new
(40, 60, 30, 20) }
296
new Region(new
RectangleF
(40, 100, 100, 100)),
297
new RectangleF[] {
new
(70, 80, 50, 40) },
298
new RectangleF[] {
new
(70, 80, 50, 20) }
303
new Region(new
RectangleF
(40, 10, 100, 100)),
304
new RectangleF[] {
new
(70, 80, 50, 40) },
305
new RectangleF[] {
new
(70, 110, 50, 10) }
310
new Region(new
RectangleF
(30, 30, 80, 80)),
313
new
(45, 45, 200, 200),
314
new
(160, 260, 10, 10),
315
new
(170, 260, 10, 10),
317
new RectangleF[] {
new
(170, 260, 10, 10) }
330
new RectangleF[] {
new
(1, 2, 3, 4) },
363
new
(60, 60, 30, 10),
364
new
(20, 80, 20, 10)
380
new
(5, -5, 2, 10),
381
new
(-5, 5, 12, 2)
395
new
(-4194304, -4194304, 8388608, 4194306),
396
new
(-4194304, 2, 4194305, 4),
397
new
(4, 2, 4194300, 4),
398
new
(-4194304, 6, 8388608, 4194298)
491
new
(80, 40, 30, 70),
492
new
(50, 110, 60, 10)
545
yield return new object[] { new Region(new Rectangle(1, 2, 3, 4)), new Region(new
RectangleF
(1, 2, 3, 4)), true };
627
new RectangleF[] {
new
(500, 30, 60, 80) },
635
new RectangleF[] {
new
(500, 30, 60, 80) }
641
new RectangleF[] {
new
(520, 40, 60, 80) },
644
new
(-4194304, -4194304, 8388608, 4194344),
645
new
(-4194304, 40, 4194824, 80),
646
new
(580, 40, 4193724, 80),
647
new
(-4194304, 120, 8388608, 4194184)
662
new RectangleF[] {
new
(40, 60, 100, 20) },
665
new
(10, 10, 100, 50),
666
new
(10, 60, 30, 20),
667
new
(10, 80, 100, 30)
675
new RectangleF[] {
new
(40, 60, 100, 20) },
678
new
(70, 10, 100, 50),
679
new
(140, 60, 30, 20),
680
new
(70, 80, 100, 30)
688
new RectangleF[] {
new
(70, 80, 50, 40) },
691
new
(40, 100, 30, 20),
692
new
(120, 100, 20, 20),
693
new
(40, 120, 100, 80)
701
new RectangleF[] {
new
(70, 80, 50, 40) },
704
new
(40, 10, 100, 70),
705
new
(40, 80, 30, 30),
706
new
(120, 80, 20, 30)
716
new
(45, 45, 200, 200),
717
new
(160, 260, 10, 10),
718
new
(170, 260, 10, 10)
722
new
(30, 30, 80, 15),
723
new
(30, 45, 15, 65)
731
new RectangleF[] {
new
(30, 70, 150, 40) },
732
new RectangleF[] {
new
(50, 110, 100, 90) }
739
new RectangleF[] {
new
(40, 10, 100, 150) },
740
new RectangleF[] {
new
(140, 60, 30, 70) }
747
new RectangleF[] {
new
(100, 10, 100, 150) },
748
new RectangleF[] {
new
(70, 60, 30, 70) }
755
new RectangleF[] {
new
(10, 80, 140, 150) },
756
new RectangleF[] {
new
(20, 20, 100, 60) }
762
new RectangleF[] {
new
(170, 40, 60, 80) },
765
new
(130, 30, 60, 10),
766
new
(130, 40, 40, 70)
791
using Region region = new(new
RectangleF
(20, 20, 20, 20));
792
using Region union = new(new
RectangleF
(20, 80, 20, 10));
794
union.Union(new
RectangleF
(60, 60, 30, 10));
796
Assert.Equal([
new
(20, 20, 20, 20)], region.GetRegionScans(matrix));
920
Assert.Equal(new
RectangleF
(1, 2, 3, 4), newRegion.GetBounds(s_graphic));
1015
Assert.Equal([
new
(1, 2, 3, 4)], region.GetRegionScans(emptyMatrix));
1016
Assert.Equal([
new
(15, 23, 15, 24)], region.GetRegionScans(matrix));
1055
Assert.Equal(new
RectangleF
(-5, -5, 10, 10), rects[0]);
1063
new RectangleF[] {
new
(500, 30, 60, 80) },
1064
new RectangleF[] {
new
(500, 30, 60, 80) }
1069
new RectangleF[] {
new
(500, 30, 60, 80) },
1083
new RectangleF[] {
new
(520, 40, 60, 80) },
1096
new Region(new
RectangleF
(260, 30, 60, 80)),
1097
new RectangleF[] {
new
(290, 40, 60, 90) },
1098
new RectangleF[] {
new
(290, 40, 30, 70) }
1103
new Region(new
RectangleF
(20, 330, 40, 50)),
1106
new
(50, 340, 40, 50),
1107
new
(70, 360, 30, 50),
1108
new
(80, 400, 30, 10)
1187
Assert.Equal([
new
(-5, -5, 10, 10)], region.GetRegionScans(matrix));
1211
region.Intersect(new
RectangleF
(5, 5, -10, -10));
1215
Assert.Equal([
new
(-5, -5, 10, 10)], region.GetRegionScans(matrix));
1425
AssertExtensions.Throws<ArgumentException>(null, () => disposedRegion.IsVisible(new
RectangleF
(1, 2, 3, 4)));
1429
AssertExtensions.Throws<ArgumentException>(null, () => disposedRegion.IsVisible(new
RectangleF
(1, 2, 3, 4), s_graphic));
1472
Assert.Equal(new
RectangleF
(-4194304, -4194304, 8388608, 8388608), region.GetBounds(s_graphic));
1491
new RectangleF[] {
new
(500, 30, 60, 80) },
1492
new RectangleF[] {
new
(500, 30, 60, 80) }
1499
new RectangleF[] {
new
(500, 30, 60, 80) }
1505
new RectangleF[] {
new
(520, 30, 60, 80) },
1506
new RectangleF[] {
new
(500, 30, 80, 80) }
1512
new RectangleF[] {
new
(520, 40, 60, 80) },
1515
new
(500, 30, 60, 10),
1516
new
(500, 40, 80, 70),
1517
new
(520, 110, 60, 10),
1524
new RectangleF[] {
new
(520, 40, 60, 80) },
1541
new
(20, 80, 20, 10),
1542
new
(60, 60, 30, 10)
1546
new
(20, 20, 20, 20),
1547
new
(60, 60, 30, 10),
1548
new
(20, 80, 20, 10)
1557
new
(50, 190, 40, 50),
1558
new
(70, 210, 30, 50)
1562
new
(20, 180, 40, 10),
1563
new
(20, 190, 70, 20),
1564
new
(20, 210, 80, 20),
1565
new
(50, 230, 50, 10),
1566
new
(70, 240, 30, 20)
1575
new
(50, 340, 40, 50),
1576
new
(70, 360, 30, 50),
1577
new
(80, 400, 30, 10)
1581
new
(20, 330, 40, 10),
1582
new
(20, 340, 70, 20),
1583
new
(20, 360, 80, 20),
1584
new
(50, 380, 50, 10),
1585
new
(70, 390, 30, 10),
1586
new
(70, 400, 40, 10)
1595
new
(100, 100, 60, 60),
1596
new
(200, 200, 80, 80)
1600
new
(10, 20, 50, 50),
1601
new
(100, 100, 60, 60),
1602
new
(200, 200, 80, 80)
1610
new RectangleF[] {
new
(40, 60, 100, 20) },
1613
new
(10, 10, 100, 50),
1614
new
(10, 60, 130, 20),
1615
new
(10, 80, 100, 30)
1623
new RectangleF[] {
new
(40, 60, 100, 20) },
1626
new
(70, 10, 100, 50),
1627
new
(40, 60, 130, 20),
1628
new
(70, 80, 100, 30)
1636
new RectangleF[] {
new
(70, 80, 50, 40) },
1639
new
(70, 80, 50, 20),
1640
new
(40, 100, 100, 100)
1648
new RectangleF[] {
new
(70, 80, 50, 40) },
1651
new
(40, 10, 100, 100),
1652
new
(70, 110, 50, 10)
1662
new
(45, 45, 200, 200),
1663
new
(160, 260, 10, 10),
1664
new
(170, 260, 10, 10)
1668
new
(30, 30, 80, 15),
1669
new
(30, 45, 215, 65),
1670
new
(45, 110, 200, 135),
1671
new
(160, 260, 20, 10)
1807
using Region region = new(new
RectangleF
(1, 2, 3, 4));
1810
Assert.Equal([
new
(1, 2, 3, 4)], region.GetRegionScans(matrix));
1816
using Region region = new(new
RectangleF
(1, 2, 3, 4));
1823
Assert.Equal([
new
(15, 23, 15, 24)], region.GetRegionScans(emptyMatrix));
1842
Assert.Equal([
new
(-4194304, -4194304, 8388608, 8388608)], region.GetRegionScans(emptyMatrix));
1856
Assert.Equal([
new
(-20, -5, 40, 10)], region.GetRegionScans(emptyMatrix));
1869
Assert.Equal([
new
(-10, 5, 40, 10)], region.GetRegionScans(emptyMatrix));
1892
using Region region = new(new
RectangleF
(1, 2, 3, 4));
1895
Assert.Equal([
new
(1 + dx, 2 + dy, 3, 4)], region.GetRegionScans(matrix));
1907
Assert.Equal([
new
(0, 0, 20, 20)], region.GetRegionScans(matrix));
1915
using Region region = new(new
RectangleF
(1, 2, 3, 4));
1918
Assert.Equal([
new
(1 + dx, 2 + dy, 3, 4)], region.GetRegionScans(matrix));
1930
Assert.Equal([
new
(0, 0, 20, 20)], region.GetRegionScans(matrix));
1942
Assert.Equal([
new
(-4194304, -4194304, 8388608, 8388608)], region.GetRegionScans(matrix));
1953
using Region region = new(new
RectangleF
(1, 2, 3, 4));
1975
new Region(new
RectangleF
(500, 30, 60, 80)),
1976
new RectangleF[] {
new
(500, 30, 60, 80) },
1982
new Region(new
RectangleF
(500, 30, 60, 80)),
1984
new RectangleF[] {
new
(500, 30, 60, 80) }
1989
new Region(new
RectangleF
(0, 0, 0, 0)),
1990
new RectangleF[] {
new
(500, 30, 60, 80) },
1991
new RectangleF[] {
new
(500, 30, 60, 80) }
1997
new RectangleF[] {
new
(520, 40, 60, 80) },
2000
new
(-4194304, -4194304, 8388608, 4194344),
2001
new
(-4194304, 40, 4194824, 80),
2002
new
(580, 40, 4193724, 80),
2003
new
(-4194304, 120, 8388608, 4194184)
2016
new Region(new
RectangleF
(380, 30, 60, 80)),
2017
new RectangleF[] {
new
(410, 40, 60, 80) },
2020
new
(380, 30, 60, 10),
2021
new
(380, 40, 30, 70),
2022
new
(440, 40, 30, 70),
2023
new
(410, 110, 60, 10)
2055
new
(-4194304, -4194304, 8388608, 4194306),
2056
new
(-4194304, 2, 4194305, 4),
2057
new
(4, 2, 4194300, 4),
2058
new
(-4194304, 6, 8388608, 4194298)
System.Drawing.Primitives (4)
System\Drawing\RectangleF.cs (4)
82
new
RectangleF
(left, top, right - left, bottom - top);
280
return new
RectangleF
(x1, y1, x2 - x1, y2 - y1);
302
return new
RectangleF
(x1, y1, x2 - x1, y2 - y1);
323
public static implicit operator RectangleF(Rectangle r) => new
RectangleF
(r.X, r.Y, r.Width, r.Height);
System.Private.Windows.Core (1)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
232
value = new
RectangleF
(
System.Private.Windows.Core.Tests (2)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (2)
57
new
RectangleF
(1, 2, 3, 4),
1010
public RectangleF RectangleF =
new
(1, 2, 3, 4);
System.Windows.Forms.Design (1)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
417
new
RectangleF
(0.0f, 0.0f, ClientSize.Width, ClientSize.Height),
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Internals\ScaleHelper.cs (2)
184
RectangleF sourceBounds =
new
(0, 0, bitmap.Size.Width, bitmap.Size.Height);
185
RectangleF destinationBounds =
new
(0, 0, desiredSize.Width, desiredSize.Height);
System.Windows.Forms.Tests (11)
System\Resources\ResxDataNodeTests.cs (1)
89
new
RectangleF
(10.0f, 20.0f, 30.0f, 40.0f),
System\Windows\Forms\ControlPaintTests.cs (10)
1902
yield return new object[] { s, SystemFonts.MenuFont, Color.Red, new
RectangleF
(1, 2, 3, 4), null };
1904
yield return new object[] { s, SystemFonts.MenuFont, Color.Red, new
RectangleF
(1, 2, -3, -4), new StringFormat() };
1905
yield return new object[] { s, SystemFonts.MenuFont, Color.Red, new
RectangleF
(1, 2, 3, 4), new StringFormat() };
1906
yield return new object[] { s, SystemFonts.MenuFont, Color.Black, new
RectangleF
(1, 2, 3, 4), new StringFormat() };
1907
yield return new object[] { s, SystemFonts.MenuFont, Color.White, new
RectangleF
(1, 2, 3, 4), new StringFormat() };
1908
yield return new object[] { s, SystemFonts.MenuFont, Color.Transparent, new
RectangleF
(1, 2, 3, 4), new StringFormat() };
1909
yield return new object[] { s, SystemFonts.MenuFont, Color.Empty, new
RectangleF
(1, 2, 3, 4), new StringFormat() };
1933
ControlPaint.DrawStringDisabled(graphics, s, null, Color.Red, new
RectangleF
(1, 2, 3, 4), null);
1936
ControlPaint.DrawStringDisabled(graphics, s, null, Color.Red, new
RectangleF
(1, 2, 3, 4), null);
1943
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawStringDisabled(null, s, SystemFonts.MenuFont, Color.Red, new
RectangleF
(1, 2, 3, 4), new StringFormat()));