Interface IScheduleResourceList
Defines the collection of schedule resources.
Inherited Members
Namespace: Syncfusion.Schedule
Assembly: Syncfusion.Schedule.Base.dll
Syntax
public interface IScheduleResourceList : IList, ICollection, IEnumerable
Properties
Item[Int32]
Indexer that returns a IScheduleResource.
Declaration
IScheduleResource this[int i] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | i | Get the ScheduleResource based on index |
Property Value
Type |
---|
IScheduleResource |
Methods
Add(IScheduleResource)
Appends the IScheduleResource to the end of the IScheduleResourceCollection.
Declaration
int Add(IScheduleResource resource)
Parameters
Type | Name | Description |
---|---|---|
IScheduleResource | resource | The IScheduleResource to add to the IScheduleResourceCollection. |
Returns
Type | Description |
---|---|
System.Int32 | Index at which the item is added. |
Contains(IScheduleResource)
Determines whether the collection contains the specified resource.
Declaration
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
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
int IndexOf(IScheduleResource resource)
Parameters
Type | Name | Description |
---|---|---|
IScheduleResource | resource | The IScheduleResource to locate in the IScheduleResourceCollection. |
Returns
Type | Description |
---|---|
System.Int32 | The index position of the specified IScheduleResource in the collection. |
Insert(Int32, IScheduleResource)
Inserts a IScheduleResource in the IScheduleResourceCollection at the specified index location.
Declaration
void Insert(int nIdx, IScheduleResource resource)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nIdx | The location in the collection to insert the ScheduleResource. |
IScheduleResource | resource | A IScheduleResource to add to the collection. |
NewScheduleResource()
Gets an instance of a new schedule resource.
Declaration
IScheduleResource NewScheduleResource()
Returns
Type | Description |
---|---|
IScheduleResource | A new schedule resource that can be added to this list. |
Remove(IScheduleResource)
Removes the specified ScheduleResource from the ScheduleResourceCollection.
Declaration
void Remove(IScheduleResource resource)
Parameters
Type | Name | Description |
---|---|---|
IScheduleResource | resource | The IScheduleResource to remove from the collection. |