ListSectionCollection Class Reference

Collection of sections. More...

List of all members.

Public Member Functions

 ListSectionCollection ()
 Constructor.
int IndexOf (ListSection section)
 Obtains the index of a specified section.
void Insert (int index, ListSection section)
 Inserts the section in a specified index position.
void RemoveAt (int index)
 Deletes the section in a specified index.
void Add (ListSection section)
 Adds a section.
void Clear ()
 Deletes all sections.
bool Contains (ListSection section)
 Determines whether a specific section is stored.
void CopyTo (ListSection[] array, int arrayIndex)
 Copies a section to an array.
bool Remove (ListSection section)
 Deletes a specific section found first.

Properties

int AllItemCount [get]
 Obtains the total number of items registered to a section.
ListSection this [int index] [get, set]
 Obtains and sets the section in a specified index.
int Count [get]
 Obtains the number of sections.
bool IsReadOnly [get]
 Obtains whether to be read-only.

Events

EventHandler< EventArgs > ItemsChanged
 Handler called when the content has changed.

Detailed Description

Collection of sections.


Member Function Documentation

void Add ( ListSection  section)

Adds a section.

Parameters:
sectionSection to be added
bool Contains ( ListSection  section)

Determines whether a specific section is stored.

Parameters:
sectionSection to search for
Returns:
If the section to search for exists, then true; otherwise, false.
void CopyTo ( ListSection[]  array,
int  arrayIndex 
)

Copies a section to an array.

Parameters:
array1D array where a section will be copied
arrayIndexIndex of an array that is the start position for copying
int IndexOf ( ListSection  section)

Obtains the index of a specified section.

Parameters:
sectionSection to search for
Returns:
If the section to search for exists, the index of that section. Otherwise, -1.
void Insert ( int  index,
ListSection  section 
)

Inserts the section in a specified index position.

Parameters:
indexIndex of position to insert.
sectionSection to insert
bool Remove ( ListSection  section)

Deletes a specific section found first.

Parameters:
sectionSection to be deleted
Returns:
If the section to be deleted exists, then true. Otherwise, false.
void RemoveAt ( int  index)

Deletes the section in a specified index.

Parameters:
indexIndex of section to be deleted

Property Documentation

ListSection this[int index] [get, set]

Obtains and sets the section in a specified index.

Parameters:
indexIndex of section to be obtained
Returns:
Section in a specified index