CogInteractiveGraphicsContainer ClassCognex VisionPro 9.7
Object that contains user's interactive graphics.
Inheritance Hierarchy

System Object
  Cognex.VisionPro.Display CogInteractiveGraphicsContainer

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

public class CogInteractiveGraphicsContainer : ICustomAdapter, 
	IDisposable

The CogInteractiveGraphicsContainer type exposes the following members.

Methods

  NameDescription
Public methodAdd
Adds an interactive graphic to the display.
Public methodAddList
Adds a list of interactive graphics to the display.
Public methodClear
Removes all interactive graphics from the display.
Public methodDispose
Dispose of the control.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFindItem
Finds the first matching item and returns its index.
Public methodGetEnumerator
Returns an enumerator that can iterate through the interactive graphics collection.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveBackward
Moves the specified group one step closer to the back of the z-order.
Public methodMoveForward
Moves the specified group one group closer to the front of the z-order.
Public methodMoveToBack
Moves the specified group to the back of the z-order.
Public methodMoveToFront
Moves the specified group to the front of the z-order.
Public methodRemove(Int32)
Removes the interactive graphic at specified index from the display
Public methodRemove(String)
Removes all of the graphics in the specified group from the display.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Properties

  NameDescription
Public propertyCount
Returns the number of items in the collection.
Public propertyItem
Returns the item with the specified 0-based index.
Public propertyZOrderGroups
Returns the z-order of the groups in this display.
Top
Remarks

Any graphic object that implements ICogGraphicInteractive that you Add(ICogGraphicInteractive, String, Boolean) to this container is displayed.

Graphics that you add to this collection can be changed, moved, and manipulated interactively after being added to the display. If you add a graphic to this collection, then change its location or color, the graphic is updated immediately on the display

See Displaying an Image, Annotating an Image, and Drawing Graphics to learn more about drawing images and graphics in a display control.

See Also