获取组件的属性及其类型

时间:2014-11-20 14:35:27

标签: c# winforms

这是我的代码,显示了Label组件的所有属性:

var t = c.GetType(); // c is a Label
var controls = t.GetProperties();
PropertyInfo[] propertyInfo =   t.GetProperties();

我正在使用PropertyGrid,我想只显示标签的属性,其类型为image(image02)。这可能吗?enter image description here

0 个答案:

没有答案
相关问题