7 references to IsVisible
System.Drawing.Common (3)
System\Drawing\Region.cs (3)
324public bool IsVisible(int x, int y, int width, int height) => IsVisible(new Rectangle(x, y, width, height), null); 326public bool IsVisible(Rectangle rect) => IsVisible(rect, null); 328public bool IsVisible(int x, int y, int width, int height, Graphics? g) => IsVisible(new Rectangle(x, y, width, height), g);
System.Drawing.Common.Tests (4)
System\Drawing\RegionTests.cs (4)
1335Assert.Equal(expected, region.IsVisible(rectangle, s_graphic)); 1336Assert.Equal(expected, region.IsVisible(rectangle, disposedGraphics)); 1337Assert.Equal(expected, region.IsVisible(rectangle, null)); 1428AssertExtensions.Throws<ArgumentException>(null, () => disposedRegion.IsVisible(new Rectangle(1, 2, 3, 4), s_graphic));