Share via


ListBoxItemCollection Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Contains a group of ListBoxItem objects.

Inheritance Hierarchy

System. . :: . .Object
  Microsoft.SPOT.Presentation.Controls..::..ListBoxItemCollection

Namespace:  Microsoft.SPOT.Presentation.Controls
Assembly:  Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)

Syntax

'Declaration
Public Class ListBoxItemCollection _
    Implements ICollection, IEnumerable
public class ListBoxItemCollection : ICollection, 
    IEnumerable
public ref class ListBoxItemCollection : ICollection, 
    IEnumerable
type ListBoxItemCollection =  
    class
        interface ICollection
        interface IEnumerable
    end
public class ListBoxItemCollection implements ICollection, IEnumerable

The ListBoxItemCollection type exposes the following members.

Constructors

  Name Description
Public method ListBoxItemCollection Initializes a new instance of the ListBoxItemCollection class.

Top

Properties

  Name Description
Public property Count Gets the number of items (elements) in the current collection.
Public property IsSynchronized Gets a value that indicates whether access to the current collection is presently synchronized.
Public property Item Gets or sets a specified item (element) in the current collection.
Public property SyncRoot Gets an object that can be used to synchronize access to the current collection.

Top

Methods

  Name Description
Public method Add(ListBoxItem) Adds a list box item (element) to the current collection.
Public method Add(UIElement) Adds a user interface item (element) to the current collection.
Public method Clear Empties the current collection.
Public method Contains Determines whether a specified item (element) is contained in the current collection.
Public method CopyTo Copies all or part of the current collection into a specified array.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator Retrieves an enumerator that can be used to iterate through the current collection.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IndexOf Retrieves the index number of a specified item (element) if that item is found in the current collection.
Public method Insert Inserts an item (element) into the current collection.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove Removes a specified item from the current collection.
Public method RemoveAt Removes the item (element) at a specified index number in the current collection.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SPOT.Presentation.Controls Namespace