Class ScheduleResourceList
A Collection of IScheduleResources to be displayed in Schedule's resource row.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Schedule
Assembly: Syncfusion.Schedule.Base.dll
Syntax
public class ScheduleResourceList : CollectionBase, IScheduleResourceList, IList, ICollection, IEnumerable
Remarks
Collection contains objects displayed in a Schedule as additional columns/rows of a Schedule. Resource objects allow for displaying schedules for different resources or schedules along each other. This allows for easy analysis and comparing two or more schedules linked to Resource objects. If there is no objects in a collection then the Schedule displays one schedule
Constructors
ScheduleResourceList()
Initializes a new instance of the ScheduleResourceList class.
Declaration
public ScheduleResourceList()
Properties
Item[Int32]
Gets or sets the schedule resource.
Declaration
public IScheduleResource this[int nIdx] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nIdx | The zero-based index at which value should be returned. |
Property Value
Type | Description |
---|---|
IScheduleResource | A IScheduleResource |
Methods
Add(IScheduleResource)
Appends the IScheduleResource to the end of the ScheduleResourceCollection.
Declaration
public virtual int Add(IScheduleResource resource)
Parameters
Type | Name | Description |
---|---|---|
IScheduleResource | resource | The IScheduleResource to add to the ScheduleResourceCollection. |
Returns
Type | Description |
---|---|
System.Int32 | The position into which the new element was inserted. |
Contains(IScheduleResource)
Determines whether the collection contains the specified resource.
Declaration
public virtual bool Contains(IScheduleResource resource)
Parameters
Type | Name | Description |
---|---|---|
IScheduleResource | resource | A IScheduleResource to search for in the collection. |
Returns
Type | Description |
---|---|
System.Boolean | true if the collection contains the specified item; otherwise, false. |
Find(Int32)
Finds resource by UniqueID.
Declaration
public IScheduleResource Find(int nOwnerID)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nOwnerID | resource UniqueID |
Returns
Type | Description |
---|---|
IScheduleResource | A IScheduleResource |
IndexOf(IScheduleResource)
Determines the index value that represents the position of the IScheduleResource in the ScheduleResourceCollection.
Declaration
public virtual int IndexOf(IScheduleResource resource)
Parameters
Type | Name | Description |
---|---|---|
IScheduleResource | resource | The IScheduleResource to locate in the ScheduleResourceCollection. |
Returns
Type | Description |
---|---|
System.Int32 | The index position of the specified IScheduleResource in the collection. |
Insert(Int32, IScheduleResource)
Inserts a IScheduleResource in the ScheduleResourceCollection at the specified index location.
Declaration
public virtual void Insert(int nIdx, IScheduleResource resource)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nIdx | The location in the collection to insert the IScheduleResource. |
IScheduleResource | resource | A IScheduleResource to add to the collection. |
NewScheduleResource()
Returns a default ScheduleResource.
Declaration
public virtual IScheduleResource NewScheduleResource()
Returns
Type | Description |
---|---|
IScheduleResource | New ScheduleResource. |
Remove(IScheduleResource)
Removes the specified IScheduleResource from the ScheduleResourceCollection.
Declaration
public virtual void Remove(IScheduleResource resource)
Parameters
Type | Name | Description |
---|---|---|
IScheduleResource | resource | The IScheduleResource to remove from the collection. |