ListBoxItemCollection Class
Namespace: GHIElectronics.TinyCLR.UI.Controls · Assembly: GHIElectronics.TinyCLR.UI
No description available.
public class ListBoxItemCollection : ICollection
Constructors
ListBoxItemCollection(ListBox listBox, UIElementCollection items)
public ListBoxItemCollection(ListBox listBox, UIElementCollection items)
No description available.
| Parameter | Type | Description |
|---|---|---|
listBox | ListBox | |
items | UIElementCollection |
Properties
index]
public ListBoxItem this[int index] { get; set; }
Indexer for the UIElementCollection. Gets or sets the UIElement stored at the zero-based index of the UIElementCollection. (inherited)
Count
public int Count { get; }
Gets the number of elements contained in the array. (inherited)
IsSynchronized
public bool IsSynchronized { get; }
Gets a value indicating whether access to the collection is synchronized (thread-safe). (inherited)
SyncRoot
public object SyncRoot { get; }
Gets an object that can be used to synchronize access to the collection. (inherited)
Methods
Add(ListBoxItem item)
public int Add(ListBoxItem item)
Appends a UIElement to the end of the UIElementCollection. (inherited)
| Parameter | Type | Description |
|---|---|---|
item | ListBoxItem |
Returns int — The UIElementCollection index at which the UIElement has been added.
Add(UIElement element)
public int Add(UIElement element)
Appends a UIElement to the end of the UIElementCollection. (inherited)
| Parameter | Type | Description |
|---|---|---|
element | UIElement |
Returns int — The UIElementCollection index at which the UIElement has been added.
Clear()
public void Clear()
Removes all elements from the UIElementCollection. (inherited)
Contains(ListBoxItem item)
public bool Contains(ListBoxItem item)
Determines whether a element is in the UIElementCollection. (inherited)
| Parameter | Type | Description |
|---|---|---|
item | ListBoxItem |
Returns bool
IndexOf(ListBoxItem item)
public int IndexOf(ListBoxItem item)
Returns the zero-based index of the UIElement. If the UIElement is not in the UIElementCollection -1 is returned. If null is passed to the method, the index of the first entry with null is returned. If there is no null entry -1 is returned. (inherited)
| Parameter | Type | Description |
|---|---|---|
item | ListBoxItem |
Returns int
Insert(int index, ListBoxItem item)
public void Insert(int index, ListBoxItem item)
Inserts an element into the UIElementCollection at the specified index. (inherited)
| Parameter | Type | Description |
|---|---|---|
index | int | The zero-based index at which value should be inserted. |
item | ListBoxItem |
Remove(ListBoxItem item)
public void Remove(ListBoxItem item)
Removes the specified element from the UIElementCollection. (inherited)
| Parameter | Type | Description |
|---|---|---|
item | ListBoxItem |
RemoveAt(int index)
public void RemoveAt(int index)
Removes the UIElement at the specified index. (inherited)
| Parameter | Type | Description |
|---|---|---|
index | int | The zero-based index of the element to remove. |