Class ResourceCollection
Represents a dynamic data collection of resources that provides notifications when resources get added, removed, or when the whole list is refreshed.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.ScheduleView.dll
Syntax
public class ResourceCollection : ObservableCollection<IResource>
Constructors
ResourceCollection()
Initializes a new instance of the Telerik.Windows.Controls.ResourceCollection class.
Declaration
public ResourceCollection()
ResourceCollection(IEnumerable<IResource>)
Initializes a new instance of the Telerik.Windows.Controls.ResourceCollection class.
Declaration
public ResourceCollection(IEnumerable<IResource> collection)
Parameters
System.Collections.Generic.IEnumerable<IResource>
collection
|
Properties
ResourceType
Gets or sets the type of the resource.
Declaration
public string ResourceType { get; set; }
Property Value
System.String
The type of the resource. |
Methods
InsertItem(Int32, IResource)
Inserts an item into the collection at the specified index.
Declaration
protected override void InsertItem(int index, IResource item)
Parameters
System.Int32
index
The zero-based index at which |
IResource
item
The object to insert. |
SetItem(Int32, IResource)
Replaces the element at the specified index.
Declaration
protected override void SetItem(int index, IResource item)
Parameters
System.Int32
index
The zero-based index of the element to replace. |
IResource
item
The new value for the element at the specified index. |