CogDisplay Selection Property Cognex VisionPro 9.10
Returns the collection of currently selected interactive shapes in the display.

Warning: The Display does _NOT_ raise changed events when the selected graphics change! Additionally, a new CogGraphicInteractiveCollection is returned every time the getter for this property is called.

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

public virtual CogGraphicInteractiveCollection Selection { get; }

Property Value

Type: CogGraphicInteractiveCollection
The collection of selected interactive shapes.
Exceptions

ExceptionCondition
AxHost InvalidActiveXStateException Thrown when the display control is invalid.
See Also