Interface IBehaviorCollection
Defines the IBehaviorCollection contract.
Inherited Members
Namespace: DRIT.Presentation.Animation
Assembly: DRIT.Presentation.dll
Syntax
public interface IBehaviorCollection : IEnumerable<IBehavior>, IEnumerable
Properties
AsIEnumerable
Gets the collection of as i enumerable associated with this object.
Declaration
IEnumerable AsIEnumerable { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable |
Count
Gets the number of items in this collection.
Declaration
int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Gets or sets the behavior at the specified zero-based index.
Declaration
IBehavior this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type | Description |
|---|---|
| IBehavior |
Methods
Add(IBehavior)
Adds the value to this i behavior collection.
Declaration
void Add(IBehavior item)
Parameters
| Type | Name | Description |
|---|---|---|
| IBehavior | item | The item to add, remove, or inspect. |
Clear()
Removes all entries from this i behavior collection.
Declaration
void Clear()
Contains(IBehavior)
Determines whether this i behavior collection contains the specified item.
Declaration
bool Contains(IBehavior item)
Parameters
| Type | Name | Description |
|---|---|---|
| IBehavior | item | The item to add, remove, or inspect. |
Returns
| Type | Description |
|---|---|
| bool | true if the operation succeeds; otherwise, false. |
IndexOf(IBehavior)
Returns the zero-based index of the specified item.
Declaration
int IndexOf(IBehavior item)
Parameters
| Type | Name | Description |
|---|---|---|
| IBehavior | item | The item to add, remove, or inspect. |
Returns
| Type | Description |
|---|---|
| int | The index of value produced by the operation. |
Insert(int, IBehavior)
Inserts an item at the specified zero-based index.
Declaration
void Insert(int index, IBehavior item)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the item. |
| IBehavior | item | The item to add, remove, or inspect. |
Remove(IBehavior)
Removes the value from this i behavior collection.
Declaration
bool Remove(IBehavior item)
Parameters
| Type | Name | Description |
|---|---|---|
| IBehavior | item | The item to add, remove, or inspect. |
Returns
| Type | Description |
|---|---|
| bool | true if the operation succeeds; otherwise, false. |
RemoveAt(int)
Removes the item at the specified zero-based index.
Declaration
void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the item. |