GPoint myPoint = new GPoint(10, 20); GSize offsetSize = new GSize(5, 10); // using Offset method to add offset values to myPoint myPoint.Offset(offsetSize);
GPoint myPoint = new GPoint(100, 200); GSize offsetSize = new GSize(-20, -30); // using Offset method to subtract offset values from myPoint myPoint.Offset(offsetSize);In this example, we create a GPoint object with coordinates (100, 200) and a GSize object with dimensions (-20, -30). We then use the Offset method to subtract the offset values from the myPoint object. Overall, the GPoint Offset method is a useful tool for adding or subtracting offset values to a GPoint object. It is a part of the GMap.NET package which is a popular mapping library for C#.