Class RibbonTabCollection
Represents a collection of RibbonTabs
Namespace: ABB.Robotics.RobotStudio.Environment
Assembly: ABB.Robotics.RobotStudio.Environment.dll
Syntax
public class RibbonTabCollection : ICollection, IEnumerable<RibbonTab>, 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 RibbonTab with the given index in the collection
Declaration
public RibbonTab this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Property Value
Type | Description |
---|---|
RibbonTab |
Item[String]
Returns the RibbonTab with the given ID
Declaration
public RibbonTab this[string id] { get; }
Parameters
Type | Name | Description |
---|---|---|
String | id |
Property Value
Type | Description |
---|---|
RibbonTab |
SyncRoot
See ICollection.SyncRoot
Declaration
public object SyncRoot { get; }
Property Value
Type | Description |
---|---|
Object |
Methods
Add(RibbonTab)
Adds a RibbonTab to the collection
Declaration
public void Add(RibbonTab ribbonTab)
Parameters
Type | Name | Description |
---|---|---|
RibbonTab | ribbonTab | RibbonTab to add |
Contains(RibbonTab)
Returns True if the collection contains the specified RibbonTab, false otherwise
Declaration
public bool Contains(RibbonTab ribbonTab)
Parameters
Type | Name | Description |
---|---|---|
RibbonTab | ribbonTab | The RibbonTab to search for |
Returns
Type | Description |
---|---|
Boolean | True if the collection contains the specified RibbonTab, false otherwise |
CopyTo(RibbonTab[], Int32)
Copies the elements of the collection to an RibbonTab array, starting at a particular Array index
Declaration
public void CopyTo(RibbonTab[] array, int index)
Parameters
Type | Name | Description |
---|---|---|
RibbonTab[] | array | |
Int32 | index |
GetEnumerator()
See IEnumerable.GetEnumerator()
Declaration
public IEnumerator GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator |
IndexOf(RibbonTab)
Returns the index of the given tab in the collection, or -1 if does not exist
Declaration
public int IndexOf(RibbonTab tab)
Parameters
Type | Name | Description |
---|---|---|
RibbonTab | tab |
Returns
Type | Description |
---|---|
Int32 |
Insert(Int32, RibbonTab)
Adds a RibbonTab to the collection at a specific index
Declaration
public void Insert(int index, RibbonTab ribbonTab)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index at which to add the tab |
RibbonTab | ribbonTab | The RibbonTab to add |
Remove(RibbonTab)
Removes a RibbonTab from the collection
Declaration
public void Remove(RibbonTab ribbonTab)
Parameters
Type | Name | Description |
---|---|---|
RibbonTab | ribbonTab | RibbonTab to remove |