Hello,
Can any one please tell me how to add properties in a component, where you can set more than one value.
For example, with the following code, MyPoints shows in the properties window and you can expand it to set the X and Y co-ordinates
Code:
public partial class UserControl1 : UserControl
{
public Point MyPoints { get; set; }
}
But I cannot figure out how to do it with my own structures or classes
EG
Code:
public partial class UserControl1 : UserControl
{
public MyColumns Columns { get; set; }
}
public struct MyColumns
{
public int Width { get; set; }
public int Height { get; set; }
}
With the above it just shows a greyed out "ControlGrid.MyColumns" in the properties windows
Any ideas as to if this is possible?
Surely it must be if you do it for things like Point