I think you need an extension method
public static Point RightPoint(this Rectangle rectangle)
{
return new Point(rectangle.X + rectangle.Width, rectangle.Y + rectangle.Height / 2);
}
The above code should go inside a static
class.
Then you can do this on a Rectangle
object:
Rectangle rect = new Rectangle();
Point pointObj = rect.RightPoint();