Class CommandBarCollection
Represents a collection of command bars
Namespace: ABB.Robotics.RobotStudio.Environment
Assembly: ABB.Robotics.RobotStudio.Environment.dll
Syntax
olete("No longer used")]
public sealed class CommandBarCollection : ICollection, IEnumerable<CommandBar>, IEnumerable
Constructors
CommandBarCollection()
Declaration
public CommandBarCollection()
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 CommandBar with the given index in the collection
Declaration
public CommandBar this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Property Value
Type | Description |
---|---|
CommandBar |
Item[String]
Gets the CommandBarControl with the given ID
Declaration
public CommandBar this[string id] { get; }
Parameters
Type | Name | Description |
---|---|---|
String | id |
Property Value
Type | Description |
---|---|
CommandBar |
SyncRoot
See ICollection.SyncRoot
Declaration
public object SyncRoot { get; }
Property Value
Type | Description |
---|---|
Object |
Methods
Add(CommandBar)
Adds a CommandBar to the collection
Declaration
public void Add(CommandBar commandBar)
Parameters
Type | Name | Description |
---|---|---|
CommandBar | commandBar | CommandBar to add |
Contains(CommandBar)
Returns True if the collection contains the specified CommandBar, false otherwise
Declaration
public bool Contains(CommandBar commandBar)
Parameters
Type | Name | Description |
---|---|---|
CommandBar | commandBar | The CommandBar to search for |
Returns
Type | Description |
---|---|
Boolean | True if the collection contains the specified CommandBar, false otherwise |
CopyTo(CommandBar[], Int32)
Copies the elements of the collection to an CommandBar array, starting at a particular Array index
Declaration
public void CopyTo(CommandBar[] array, int index)
Parameters
Type | Name | Description |
---|---|---|
CommandBar[] | array | |
Int32 | index |
GetEnumerator()
See IEnumerable.GetEnumerator()
Declaration
public IEnumerator GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator |
Remove(CommandBar)
Removes a CommandBar from the collection
Declaration
public void Remove(CommandBar commandBar)
Parameters
Type | Name | Description |
---|---|---|
CommandBar | commandBar | CommandBar to remove |