public PropertyDescriptor GetDefaultProperty(object component) {
string name = ((DefaultPropertyAttribute)GetAttributes(component)[typeof(DefaultPropertyAttribute)]).Name;
if (name != null) {
return GetProperties(component, null)[name];
}
return null;
}