Method ChangePropertyValue
ChangePropertyValue(IPropertyGridItem, IPropertyGridVariant)
Changes value of a property, as if from an editor.
bool ChangePropertyValue(IPropertyGridItem id, IPropertyGridVariant variant)
Parameters
id
IPropertyGridItemvariant
IPropertyGridVariant
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.