Class
ExistingResourceIdMapper

Provides a resource identifier mapper that works with existing resource objects, mapping resource IDs to pre-existing resources in a collection.

Definition

Namespace:Telerik.WinControls.UI.Scheduler

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

cs-api-definition
public class ExistingResourceIdMapper : ComplexResourceIdMapperBase

Inheritance: objectResourceIdMapperComplexResourceIdMapperBaseExistingResourceIdMapper

Inherited Members ComplexResourceIdMapperBase.ReadResources(IEvent)ComplexResourceIdMapperBase.ResourceIdDescriptorResourceIdMapper.EventIdTypeResourceIdMapper.GetResourceId(EventId, Type)ResourceIdMapper.GetEventId(object)

Constructors

ExistingResourceIdMapper(IList, PropertyDescriptor)

Initializes a new instance of the ExistingResourceIdMapper class with the specified existing resources list and resource ID property descriptor.

Declaration

cs-api-definition
public ExistingResourceIdMapper(IList existingResourcesList, PropertyDescriptor resourceIdDescriptor)

Parameters

existingResourcesList

IList

The list of existing resources to search for matching resource IDs.

resourceIdDescriptor

PropertyDescriptor

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

Methods

AddResourceId(EventId)

Adds a resource identifier by finding the matching existing resource and adding it to the target resource list.

Declaration

cs-api-definition
public override void AddResourceId(EventId eventId)

Parameters

eventId

EventId

The EventId to find and add to the target resource list.

Overrides ComplexResourceIdMapperBase.AddResourceId(EventId)

ClearResourceIds()

Removes all resources from the target resource list.

Declaration

cs-api-definition
public override void ClearResourceIds()

Overrides ResourceIdMapper.ClearResourceIds()

SetResourceList(object)

Sets the target resource list where matching existing resources will be added.

Declaration

cs-api-definition
public override void SetResourceList(object resourceList)

Parameters

resourceList

object

The target resource list to be managed by this mapper.

Overrides ComplexResourceIdMapperBase.SetResourceList(object)