CogStaticGraphicsContainer Add Method Cognex VisionPro
Adds a static graphic to the display.

Namespace: Cognex.VisionPro.Display
Assembly: Cognex.VisionPro.Display.Controls (in Cognex.VisionPro.Display.Controls.dll) Version: 65.1.0.0 (65.1.0.0)
Syntax

public virtual void Add(
	ICogGraphic graphic,
	string groupName
)

Parameters

graphic
Type: Cognex.VisionPro ICogGraphic
The static graphic to add to the display.
groupName
Type: System String
The name of the graphics group to which to add graphic.
Exceptions

ExceptionCondition
ObjectDisposedException Thrown when the object is already disposed.
CogException Thrown when any of the arguments are invalid.
See Also