Click or drag to resize
GraphicButtonCollectionAdd Method
Creates a new GraphicButton and adds it to this collection.

Namespace:  ABB.Robotics.RobotStudio.Stations.Forms
Assembly:  ABB.Robotics.RobotStudio.Stations (in ABB.Robotics.RobotStudio.Stations.dll) Version: 7.0.8747.636
Syntax
C#
public GraphicButton Add(
	string id,
	int x,
	int y,
	Bitmap bmp
)

Parameters

id
Type: SystemString
A unique identifier for the button.
x
Type: SystemInt32
Distance in pixels from the left edge of the graphic window.
y
Type: SystemInt32
Distance in pixels from the top edge of the graphic window.
bmp
Type: System.DrawingBitmap
An image for the button.

Return Value

Type: 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.
Version Information

Supported in: 1.0.0.0
See Also