I am creating my own Windows Forms control in C # with several custom properties. One of these properties is a simple structure with several integer fields:
public struct Test
{
public int A, B;
}
Test _Test;
[Category("MyCategory")]
public Test TestProperty
{
get { return _Test; }
set { _Test = value; }
}
I want the Visual Studio designer to edit the fields of my structure in the same way as for Size, Marginsand other similar Windows Forms structures. Do I need to implement my own class-based property editor UITypeEditor, or is there some general "structure editor" provided by the .Net framework?
source
share