C# Class Habanero.Faces.Win.ListBoxWin.ListBoxObjectCollectionWin

Represents the collection of items in a ListBox. This is an adapter class which simply wraps the Windows ObjectCollection (ListBox.Items)
Inheritance: IListBoxObjectCollection
Show file Open project: Chillisoft/habanero.faces Class Usage Examples

Public Methods

Method Description
Add ( object item ) : void

Adds an item to the list of items for a ListBox

Clear ( ) : void

Removes all items from the collection

Contains ( object value ) : bool

Determines if the specified item is located within the collection

GetEnumerator ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

IndexOf ( object value ) : int

Retrieves the index within the collection of the specified item

Insert ( int index, object businessObject ) : void
ListBoxObjectCollectionWin ( ObjectCollection items ) : System

Constructs the adapter

Remove ( object item ) : void

Removes the specified object from the collection

this ( int index ) : object

Retrieves the item at the specified index within the collection

Method Details

Add() public method

Adds an item to the list of items for a ListBox
public Add ( object item ) : void
item object An object representing the item to add to the collection
return void

Clear() public method

Removes all items from the collection
public Clear ( ) : void
return void

Contains() public method

Determines if the specified item is located within the collection
public Contains ( object value ) : bool
value object An object representing the item to locate in the collection
return bool

GetEnumerator() public method

Returns an enumerator that iterates through a collection.
public GetEnumerator ( ) : IEnumerator
return IEnumerator

IndexOf() public method

Retrieves the index within the collection of the specified item
public IndexOf ( object value ) : int
value object An object representing the item to locate in the collection
return int

Insert() public method

public Insert ( int index, object businessObject ) : void
index int
businessObject object
return void

ListBoxObjectCollectionWin() public method

Constructs the adapter
public ListBoxObjectCollectionWin ( ObjectCollection items ) : System
items ObjectCollection
return System

Remove() public method

Removes the specified object from the collection
public Remove ( object item ) : void
item object An object representing the item to remove from the collection
return void

this() public method

Retrieves the item at the specified index within the collection
public this ( int index ) : object
index int The index of the item in the collection to retrieve
return object