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