protected SetComponentProperty ( string propertyName, object value ) : void | ||
propertyName | string | |
value | object | |
리턴 | void |
protected virtual void SetComponentProperty(string propertyName, object value)
{
var property = TypeDescriptor.GetProperties(_comboBox)[propertyName];
if(property == null)
throw new ArgumentException("Property not found", propertyName);
else
property.SetValue(_comboBox, value);
}