Class GraphicButtonCollection
Represents a collection of GraphicButton objects.
Namespace: ABB.Robotics.RobotStudio.Stations.Forms
Assembly: ABB.Robotics.RobotStudio.Stations.dll
Syntax
public class GraphicButtonCollection : IEnumerable<GraphicButton>, IEnumerable
Properties
Count
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
Item[Int32]
Declaration
public GraphicButton this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Property Value
Type | Description |
---|---|
GraphicButton |
Methods
Add(String, Int32, Int32, Bitmap)
Creates a new GraphicButton and adds it to this collection.
Declaration
public GraphicButton Add(string id, int x, int y, Bitmap bmp)
Parameters
Type | Name | Description |
---|---|---|
String | id | A unique identifier for the button. |
Int32 | x | Distance in pixels from the left edge of the graphic window. |
Int32 | y | Distance in pixels from the top edge of the graphic window. |
Bitmap | bmp | An image for the button. |
Returns
Type | Description |
---|---|
GraphicButton | The created button. |
Remarks
If id corresponds to an existing CommandBarButton, the Enabled and Checked state will automatically be updated and the command will be executed when the button is clicked.
Add(String, Int32, Int32, Bitmap, Int32, Int32)
Creates a new GraphicButton and adds it to this collection.
Declaration
public GraphicButton Add(string id, int x, int y, Bitmap bmp, int width, int height)
Parameters
Type | Name | Description |
---|---|---|
String | id | A unique identifier for the button. |
Int32 | x | Distance in pixels from the left edge of the graphic window. |
Int32 | y | Distance in pixels from the top edge of the graphic window. |
Bitmap | bmp | An image for the button. |
Int32 | width | The desired nominal (100% screen scaling) width in pixels for the button. |
Int32 | height | The desired nominal (100% screen scaling) height in pixels for the button. |
Returns
Type | Description |
---|---|
GraphicButton | The created button. |
Remarks
If id corresponds to an existing CommandBarButton, the Enabled and Checked state will automatically be updated and the command will be executed when the button is clicked.
Clear()
Declaration
public void Clear()
Contains(GraphicButton)
Declaration
public bool Contains(GraphicButton item)
Parameters
Type | Name | Description |
---|---|---|
GraphicButton | item |
Returns
Type | Description |
---|---|
Boolean |
GetEnumerator()
Declaration
public IEnumerator<GraphicButton> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<GraphicButton> |
Remove(GraphicButton)
Declaration
public bool Remove(GraphicButton item)
Parameters
Type | Name | Description |
---|---|---|
GraphicButton | item |
Returns
Type | Description |
---|---|
Boolean |