Table of Contents

Method ChangePropertyValue

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

ChangePropertyValue(IPropertyGridItem, object)

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

bool ChangePropertyValue(IPropertyGridItem prop, object value)

Parameters

prop IPropertyGridItem

Property item.

value object

Property 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.