Region r = new Region(new Rectangle(0, 0, 100, 100)); bool isInf = r.IsInfinite; // False Region infR = new Region(); infR.MakeInfinite(); bool isInf2 = infR.IsInfinite; // TrueIn this example, we create a region 'r' that is a rectangle of width and height 100. We then check if this region is infinite using the IsInfinite property, which should return 'False'. Next, we create another region 'infR', which we make infinite using the MakeInfinite method. We then check if this region is infinite, which should return 'True'. The package/library for System.Drawing is part of the .NET framework, which provides a set of APIs for creating applications on Microsoft Windows operating systems.