Class CommandBarComboBoxItemCollection
Represents a collection of items in a CommandBarComboBox
Namespace: ABB.Robotics.RobotStudio.Environment
Assembly: ABB.Robotics.RobotStudio.Environment.dll
Syntax
public class CommandBarComboBoxItemCollection : ICollection, IEnumerable<CommandBarComboBoxItem>, IEnumerable
Properties
Count
Returns the number of items in the collection
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
IsSynchronized
See ICollection.IsSynchronized. Always returns false.
Declaration
public bool IsSynchronized { get; }
Property Value
Type | Description |
---|---|
Boolean |
Item[Int32]
Gets the item with the specified index in the collection
Declaration
public CommandBarComboBoxItem this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Property Value
Type | Description |
---|---|
CommandBarComboBoxItem |
SyncRoot
See ICollection.SyncRoot
Declaration
public object SyncRoot { get; }
Property Value
Type | Description |
---|---|
Object |
Methods
Add(CommandBarComboBoxItem)
Adds a CommandBarComboBoxItem to the collection
Declaration
public void Add(CommandBarComboBoxItem item)
Parameters
Type | Name | Description |
---|---|---|
CommandBarComboBoxItem | item | Item to add |
Clear()
Removes all items from the collection
Declaration
public void Clear()
Contains(CommandBarComboBoxItem)
Checks if an item is part of the collection
Declaration
public bool Contains(CommandBarComboBoxItem item)
Parameters
Type | Name | Description |
---|---|---|
CommandBarComboBoxItem | item | Item to search for |
Returns
Type | Description |
---|---|
Boolean | True if the specified item is in the collection, false otherwise |
CopyTo(CommandBarComboBoxItem[], Int32)
Copies the elements of the collection to an CommandBarComboBoxItem array, starting at a particular Array index
Declaration
public void CopyTo(CommandBarComboBoxItem[] array, int index)
Parameters
Type | Name | Description |
---|---|---|
CommandBarComboBoxItem[] | array | |
Int32 | index |
GetEnumerator()
See IEnumerable.GetEnumerator()
Declaration
public IEnumerator GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator |
IndexOf(CommandBarComboBoxItem)
Returns the index of the specified index
Declaration
public int IndexOf(CommandBarComboBoxItem item)
Parameters
Type | Name | Description |
---|---|---|
CommandBarComboBoxItem | item | Item to search for |
Returns
Type | Description |
---|---|
Int32 | Index of the specified item, or -1 if not found |
Remove(CommandBarComboBoxItem)
Removes a CommandBarComboBoxItem from the collection
Declaration
public void Remove(CommandBarComboBoxItem item)
Parameters
Type | Name | Description |
---|---|---|
CommandBarComboBoxItem | item | Item to remove |