Class CommandBarControlCollection
Represents a collection of CommandBarControls
Namespace: ABB.Robotics.RobotStudio.Environment
Assembly: ABB.Robotics.RobotStudio.Environment.dll
Syntax
public class CommandBarControlCollection : ICollection, IEnumerable<CommandBarControl>, IEnumerable
Properties
Count
Returns the number of CommandBarControls 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 CommandBarControl with the given index in the collection
Declaration
public CommandBarControl this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Property Value
Type | Description |
---|---|
CommandBarControl |
Item[String]
Gets the CommandBarControl with the given ID
Declaration
public CommandBarControl this[string id] { get; }
Parameters
Type | Name | Description |
---|---|---|
String | id |
Property Value
Type | Description |
---|---|
CommandBarControl |
Parent
Owner of the collection (often a CommandBarPopup)
Declaration
public object Parent { get; }
Property Value
Type | Description |
---|---|
Object |
SyncRoot
See ICollection.SyncRoot
Declaration
public object SyncRoot { get; }
Property Value
Type | Description |
---|---|
Object |
Methods
Add(CommandBarControl)
Adds a CommandBarControl to the collection
Declaration
public void Add(CommandBarControl control)
Parameters
Type | Name | Description |
---|---|---|
CommandBarControl | control | The control to add |
Add(String)
Adds an existing CommandBarControl with a specific ID to the collection
Declaration
public void Add(string controlId)
Parameters
Type | Name | Description |
---|---|---|
String | controlId | The ID of the control to add |
AddRange(IEnumerable<CommandBarControl>)
Adds a range of CommandBarControls to the collection
Declaration
public void AddRange(IEnumerable<CommandBarControl> controls)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<CommandBarControl> | controls | The controls to add |
Clear()
Removes all CommandBarControls from the collection
Declaration
public void Clear()
Contains(CommandBarControl)
Returns True if the collection contains the specified control, false otherwise
Declaration
public bool Contains(CommandBarControl control)
Parameters
Type | Name | Description |
---|---|---|
CommandBarControl | control | The control to search for |
Returns
Type | Description |
---|---|
Boolean | True if the collection contains the specified control, false otherwise |
Contains(String)
Returns True if the collection contains the specified control, false otherwise
Declaration
public bool Contains(string controlId)
Parameters
Type | Name | Description |
---|---|---|
String | controlId | The ID to search for |
Returns
Type | Description |
---|---|
Boolean | True if the collection contains the specified ID, false otherwise |
CopyTo(CommandBarControl[], Int32)
Copies the elements of the collection to an CommandBarControl array, starting at a particular Array index
Declaration
public void CopyTo(CommandBarControl[] array, int index)
Parameters
Type | Name | Description |
---|---|---|
CommandBarControl[] | array | |
Int32 | index |
GetEnumerator()
See IEnumerable.GetEnumerator()
Declaration
public IEnumerator GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator |
IndexOf(CommandBarControl)
Returns the index of the specified control in the collection
Declaration
public int IndexOf(CommandBarControl control)
Parameters
Type | Name | Description |
---|---|---|
CommandBarControl | control | Control to search for |
Returns
Type | Description |
---|---|
Int32 | Control index |
IndexOf(String)
Returns the index of the specified control in the collection
Declaration
public int IndexOf(string controlId)
Parameters
Type | Name | Description |
---|---|---|
String | controlId | ID of the control to search for |
Returns
Type | Description |
---|---|
Int32 | Control index |
Insert(Int32, CommandBarControl)
Inserts a CommandBarControl at a specific location in the collection
Declaration
public void Insert(int index, CommandBarControl control)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index at which to add the control |
CommandBarControl | control | The control to add |
Remove(CommandBarControl)
Removes a CommandBarControl from the collection
Declaration
public void Remove(CommandBarControl control)
Parameters
Type | Name | Description |
---|---|---|
CommandBarControl | control |
Remove(String)
Removes a CommandBarControl from the collection
Declaration
public void Remove(string controlId)
Parameters
Type | Name | Description |
---|---|---|
String | controlId | The ID of the control to remove |