New to Telerik UI for WinForms? Start a free 30-day trial

Updates a child property by creating a replacement parent instance through its type converter.

Definition

Constructors

Associates the descriptor with the item representing a property of a converter-created object.

C#
public ImmutableItemAccessor(PropertyGridItem owner, PropertyDescriptor descriptor)
Parameters:ownerPropertyGridItem

The item that uses this accessor.

descriptorPropertyDescriptor

The descriptor for the child property.

Properties

Gets the descriptor value or asks the parent converter to create a replacement instance containing the assigned value.

C#
public override object Value { get; set; }

Overrides: DescriptorItemAccessor.Value

The base getter returns exceptions that escape property lookup or multi-object context setup as the value. Per-object path-resolution exceptions caught inside the multi-object helper are absorbed and may result in a null value. The setter reads the other properties from the current parent instance and passes the updated property set to CreateInstance(ITypeDescriptorContext, IDictionary). An exception from CreateInstance(ITypeDescriptorContext, IDictionary) is shown in a message box; a non-null result is passed to the parent item's Value setter, which can reject or cancel it. Exceptions raised while preparing the property set are not handled here.