SnCore!

ScopedElementCollection Class Reference

A strongly typed collection of ScopedElement objects.
See also:
ScopedElement

. More...

List of all members.


Public Member Functions

int Add (ScopedElement element)
 Adds an object to the end of the ScopedElementCollection.
bool Contains (ScopedElement element)
 Determines whether the ScopedElementCollection contains a specific element.
void CopyTo (ScopedElementCollection[] array, int index)
 Copies the entire ScopedElementCollection to a compatible one-dimensional Array, starting at the specified index of the target array.
int IndexOf (ScopedElement element)
 Searches for the specified ScopedElement and returns the zero-based index of the first occurrence within the entire ScopedElementCollection.
void Insert (int index, ScopedElement element)
 Inserts a ScopedElement into this collection at the specified index.
void Remove (ScopedElement element)
 Removes the first occurrence of a specific ScopedElement from the ScopedElementCollection.

Properties

ScopedElement this [int index] [get, set]
 Gets or sets the element at the specified index.

Detailed Description

A strongly typed collection of ScopedElement objects.
See also:
ScopedElement

.


Member Function Documentation

int Add ( ScopedElement  element  ) 

Adds an object to the end of the ScopedElementCollection.

Parameters:
element The ScopedElement to be added to the end of the ScopedElementCollection.
Returns:
The ScopedElementCollection index at which the value has been added.

bool Contains ( ScopedElement  element  ) 

Determines whether the ScopedElementCollection contains a specific element.

Parameters:
element The ScopedElement to locate in the ScopedElementCollection.
Returns:
true if the ScopedElementCollection contains the specified item, otherwise false.

void CopyTo ( ScopedElementCollection[]  array,
int  index 
)

Copies the entire ScopedElementCollection to a compatible one-dimensional Array, starting at the specified index of the target array.

Parameters:
array The one-dimensional Array that is the destination of the elements copied from ScopedElementCollection. The Array must have zero-based indexing.
index The zero-based index in array at which copying begins.

int IndexOf ( ScopedElement  element  ) 

Searches for the specified ScopedElement and returns the zero-based index of the first occurrence within the entire ScopedElementCollection.

Parameters:
element The ScopedElement to locate in the ScopedElementCollection.
Returns:
The zero-based index of the first occurrence of element within the entire ScopedElementCollection, if found; otherwise, -1.

void Insert ( int  index,
ScopedElement  element 
)

Inserts a ScopedElement into this collection at the specified index.

Parameters:
index The zero-based index of the collection at which element should be inserted.
element The ScopedElement to insert into this collection.

void Remove ( ScopedElement  element  ) 

Removes the first occurrence of a specific ScopedElement from the ScopedElementCollection.

Parameters:
element The ScopedElement to remove from the ScopedElementCollection.


Property Documentation

ScopedElement this[int index] [get, set]

Gets or sets the element at the specified index.

Parameters:
index The zero-based index of the element to get or set.


The documentation for this class was generated from the following file:
  • ScopedElementCollection.cs
© Vestris Inc., 2006-2007, All Rights Reserved | SnCore | Wed Mar 5 09:56:24 2008 | Doxygen 1.5.4