New to Telerik UI for WinFormsStart a free 30-day trial

Provides a resource identifier mapper that works with IBindingList collections for managing complex resource objects.

Definition

Constructors

Initializes a new instance of the BindingListResourceIdMapper class with the specified resource ID property descriptor.

C#
public BindingListResourceIdMapper(PropertyDescriptor resourceIdDescriptor)
Parameters:resourceIdDescriptorPropertyDescriptor

The PropertyDescriptor that describes the resource ID property on the complex objects.

Methods

Adds the resource ID object to the collection, with the object already being added via AddNew in CreateResourceIdCore().

C#
protected override void AddResourceIdCore(object resourceIdObject)
Parameters:resourceIdObjectobject

The resource ID object that was created and is already in the collection.

Overrides: ComplexResourceIdMapper.AddResourceIdCore(object)

Removes all resource identifiers from the binding list if removal is allowed.

C#
public override void ClearResourceIds()

Overrides: ResourceIdMapper.ClearResourceIds()

Creates a new resource ID object using the binding list's AddNew method if new items are allowed.

C#
protected override object CreateResourceIdCore()
Returns:

object

A new resource ID object from the binding list, or null if adding new items is not allowed.

Overrides: ComplexResourceIdMapper.CreateResourceIdCore()

Sets the resource list and initializes the binding list interface for managing complex resource objects.

C#
public override void SetResourceList(object resourceList)
Parameters:resourceListobject

The resource list to be managed by this mapper.

Overrides: ComplexResourceIdMapperBase.SetResourceList(object)