您好
假设你创建了一个控件的扩展程序提供程序如下:
[ProvideProperty("Information", typeof(Control))]
public class TestExtender:Component, IExtenderProvider
{
public Information GetInformation(Control extendee) {
// retrieves information object from a Dictionary<control,> list
}
public Information SetInformation(Control extendee, Information information) {
// adds information to Dictionary<control,>
}
}
(other details omitted to focus on the Information object)
信息对象,将有许多属性(标题,文字等)。
编译时,我添加扩展程序提供的形式,并增加了一个信息属性在PropertyGrid预期。
我的问题 - 你如何获得信息的子属性在PropertyGrid PropertyGrid中添加
因此,在一个控制的PropertyGrid,说TextBox1中,会有一个属性信息,当您按一下,它会显示类信息的属性。
我无法弄清楚如何做到这一点。