CGRect rect = new CGRect(10, 10, 50, 100); double maxY = rect.GetMaxY(); Console.WriteLine(maxY); // Outputs 110
using CoreGraphics; CGRect rect = new CGRect(0, 0, 100, 50); double maxY = rect.GetMaxY();This example uses the CGRect type and the GetMaxY property to get the y-coordinate of the bottom edge of a rectangle with an origin of (0, 0), a width of 100, and a height of 50. Package library: CoreGraphics.