22 references to IsEmpty
System.Drawing.Common.Tests (19)
mono\System.Drawing\GraphicsTests.cs (2)
168
g.Clip.
IsEmpty
(g);
169
Assert.False(g.Clip.
IsEmpty
(g));
System\Drawing\RegionTests.cs (17)
45
Assert.False(region.
IsEmpty
(s_graphic));
59
Assert.Equal(isEmpty, region.
IsEmpty
(s_graphic));
75
Assert.Equal(isEmpty, region.
IsEmpty
(s_graphic));
187
Assert.True(region.
IsEmpty
(s_graphic));
376
Assert.False(region.
IsEmpty
(s_graphic));
502
Assert.True(region.
IsEmpty
(s_graphic));
1050
Assert.False(clipRegion.
IsEmpty
(s_graphic));
1185
Assert.False(region.
IsEmpty
(s_graphic));
1213
Assert.False(region.
IsEmpty
(s_graphic));
1242
Assert.True(region.
IsEmpty
(s_graphic));
1269
AssertExtensions.Throws<ArgumentNullException>("g", () => region.
IsEmpty
(null));
1275
AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedRegion().
IsEmpty
(s_graphic));
1443
Assert.True(region.
IsEmpty
(s_graphic));
1453
Assert.True(region.
IsEmpty
(s_graphic));
1470
Assert.False(region.
IsEmpty
(s_graphic));
1475
Assert.False(region.
IsEmpty
(s_graphic));
1957
Assert.True(region.
IsEmpty
(s_graphic));
System.Windows.Forms (1)
System\Windows\Forms\Control.cs (1)
2260
return working.
IsEmpty
(g);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\Behavior\SelectionManager.cs (2)
381
if (toRefresh.
IsEmpty
(g) && primarySelection is not null && !primarySelection.Equals(_previousPrimarySelection))
427
if (!toUpdate.
IsEmpty
(g))