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
Afficher le fichier Open project: Chillisoft/habanero.faces Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat void

Clear() public méthode

Removes all items from the collection
public Clear ( ) : void
Résultat void

Contains() public méthode

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
Résultat bool

GetEnumerator() public méthode

Returns an enumerator that iterates through a collection.
public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

IndexOf() public méthode

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
Résultat int

Insert() public méthode

public Insert ( int index, object businessObject ) : void
index int
businessObject object
Résultat void

ListBoxObjectCollectionWin() public méthode

Constructs the adapter
public ListBoxObjectCollectionWin ( ObjectCollection items ) : System
items ObjectCollection
Résultat System

Remove() public méthode

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

this() public méthode

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
Résultat object