Okay, essentially I have a drawing application, where I have custom classes for the various shape types (Circle, Rectangle, Star, etc.). I'm using the PropertyGrid control within the application to allow the user to change the properties of these shape classes (for example: location, dimensions, etc.). The problem I have is that the ToString method of the native PointF structure (System.Drawing.PointF) gives the following string:
Code:
{X=###, Y=###}
This output is not desirable. I want it to be displayed how it is in the Designer Properties Panel. For example, the "Location" property of a control is displayed as:
Code:
X, Y
1. Is there a way to override the ToString method of the System.Drawing.PointF structure?

2. Is there a different way to display the properties of the System.Drawing.PointF structure in the PropertyGrid within the application?