Table of Contents

Method ChangePropertyValue

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ChangePropertyValue(IPropertyGridItem, IPropertyGridVariant)

Changes value of a property, as if from an editor.

bool ChangePropertyValue(IPropertyGridItem id, IPropertyGridVariant variant)

Parameters

id IPropertyGridItem
variant 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.