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