83 references to GetBounds
System.Drawing.Common.Tests (81)
mono\System.Drawing\GraphicsTests.cs (55)
106
Assert.Equal(r.
GetBounds
(g), g.ClipBounds);
337
Assert.Equal(r.
GetBounds
(g), g.ClipBounds);
380
RectangleF bounds = g.Clip.
GetBounds
(g);
394
RectangleF bounds = g.Clip.
GetBounds
(g);
409
bounds = g.Clip.
GetBounds
(g);
454
CheckBounds("graphics.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, 0, 16, 16);
458
CheckBounds("clip.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, 0, 8, 8);
469
CheckBounds("rotate.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, -8, 8, 8);
472
CheckBounds("identity.ClipBounds", g.Clip.
GetBounds
(g), 0, 0, 8, 8);
473
CheckBounds("identity.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, 0, 8, 8);
485
CheckBounds("scale.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, 0, 32, 16);
489
CheckBounds("setclip.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, 0, 8, 8);
501
CheckBounds("translate.Clip.GetBounds", g.Clip.
GetBounds
(g), -8, -8, 8, 8);
504
CheckBounds("setclip.ClipBounds", g.Clip.
GetBounds
(g), 0, 0, 8, 8);
505
CheckBounds("setclip.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, 0, 8, 8);
516
CheckBounds("transform.Clip.GetBounds", g.Clip.
GetBounds
(g), -8, -8, 8, 8);
520
CheckBounds("reset.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, 0, 8, 8);
531
CheckBounds("scale.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, 0, 16, 32);
535
CheckBounds("resetclip.Clip.GetBounds", g.Clip.
GetBounds
(g), -4194304, -4194304, 8388608, 8388608);
548
CheckBounds("multiply.Clip.GetBounds", g.Clip.
GetBounds
(g), -16, -16, 8, 8);
552
CheckBounds("reset.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, 0, 8, 8);
561
CheckBounds("graphics.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, 0, 16, 16);
565
CheckBounds("clip.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, 0, 8, 8);
569
CheckBounds("rotate.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, -8, 8, 8);
573
CheckBounds("scale.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, -16, 32, 16);
577
CheckBounds("translate.Clip.GetBounds", g.Clip.
GetBounds
(g), -8, -24, 32, 16);
581
CheckBounds("multiply.Clip.GetBounds", g.Clip.
GetBounds
(g), -104, -56, 64, 64);
585
CheckBounds("reset.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, 0, 8, 8);
594
CheckBounds("graphics.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, 0, 16, 16);
597
CheckBounds("translated.Clip.GetBounds", g.Clip.
GetBounds
(g), 16, 16, 16, 16);
603
CheckBounds("rectangle.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, 0, 8, 8);
607
CheckBounds("reseted.Clip.GetBounds", g.Clip.
GetBounds
(g), -16, -16, 8, 8);
616
CheckBounds("graphics.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, 0, 16, 16);
621
CheckBounds("rotated.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, -16, 16, 16);
626
CheckBounds("rectangle.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, 0, 8, 8);
630
CheckBounds("reseted.Clip.GetBounds", g.Clip.
GetBounds
(g), -8, 0, 8, 8);
639
CheckBounds("graphics.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, 0, 16, 16);
642
CheckBounds("scaled.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, 0, 8, 32);
647
CheckBounds("rectangle.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, 0, 8, 8);
651
CheckBounds("reseted.Clip.GetBounds", g.Clip.
GetBounds
(g), 0, 0, 16, 4);
1905
Assert.Equal(regions[0].
GetBounds
(g).Height, regions[1].
GetBounds
(g).Height);
1910
Assert.Equal(regions[0].
GetBounds
(g).Height, regions[1].
GetBounds
(g).Height);
1972
RectangleF bounds_none = regions[0].
GetBounds
(g);
1977
RectangleF bounds_show = regions[0].
GetBounds
(g);
1981
bounds_show = regions[0].
GetBounds
(g);
1987
RectangleF bounds_hide = regions[0].
GetBounds
(g);
1991
bounds_hide = regions[0].
GetBounds
(g);
2030
RectangleF zb = zero[i].
GetBounds
(gfx);
2031
RectangleF sb = small[i].
GetBounds
(gfx);
2042
RectangleF zb = zero[i].
GetBounds
(gfx);
2043
RectangleF mb = max[i].
GetBounds
(gfx);
2061
RectangleF mb = min[i].
GetBounds
(gfx);
2072
RectangleF mb = neg[i].
GetBounds
(gfx);
System\Drawing\Graphics_GetContextTests.Core.cs (6)
38
Assert.Equal(initialClip.
GetBounds
(graphics), clip.
GetBounds
(graphics));
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 (6)
39
Assert.Equal(initialClip.
GetBounds
(graphics), region.
GetBounds
(graphics));
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\RegionTests.cs (14)
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));
77
Assert.Equal(rectangle, region.
GetBounds
(s_graphic));
95
Assert.Equal(region.
GetBounds
(s_graphic), otherRegion.
GetBounds
(s_graphic));
178
Assert.Equal(new RectangleF(1, 2, 9, 10), region.
GetBounds
(s_graphic));
267
Assert.Equal(region.
GetBounds
(s_graphic), clone.
GetBounds
(s_graphic));
920
Assert.Equal(new RectangleF(1, 2, 3, 4), newRegion.
GetBounds
(s_graphic));
981
AssertExtensions.Throws<ArgumentNullException>("g", () => region.
GetBounds
(null));
991
AssertExtensions.Throws<ArgumentException>(null, () => region.
GetBounds
(graphics));
997
AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedRegion().
GetBounds
(s_graphic));
1445
Assert.Equal(RectangleF.Empty, region.
GetBounds
(s_graphic));
1472
Assert.Equal(new RectangleF(-4194304, -4194304, 8388608, 8388608), region.
GetBounds
(s_graphic));
System.Windows.Forms (2)
System\Windows\Forms\Control.cs (1)
5797
OnInvalidated(new InvalidateEventArgs(Rectangle.Ceiling(region.
GetBounds
(graphics))));
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (1)
51
rect = Rectangle.Ceiling(region.
GetBounds
(graphics));