Method ChangePropertyValue
ChangePropertyValue(IPropertyGridItem, object)
Changes value of a property, as if from an editor.
bool ChangePropertyValue(IPropertyGridItem prop, object value)
Parameters
prop
IPropertyGridItemProperty item.
value
objectProperty value.
Returns
- bool
true
if value was successfully changed.
Remarks
Use this instead of SetPropertyValueAsVariant(IPropertyGridItem, IPropertyGridVariant) if you need the value to run through validation process, and also send PropertyChanged event.