Sets the attributes of the interactive pen with the given Key.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax
Parameters
- interactivePenKey
- Type: System Int32
The pen key.
- simplePenKeyWhenNormal
- Type: System Int32
The pen to use to draw the graphic in its normal state.
- simplePenKeyWhenSelected
- Type: System Int32
The pen to use when the graphic is selected.
- simplePenKeyWhenDragged
- Type: System Int32
The pen to use when the graphic is dragged.
Events
| Event Type | Reason |
|---|---|
| CogGeneralContour Changed | Fires when the pen is changed. The following state flags may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | interactivePenKey is not a known interactive pen key. |
| ArgumentException | The key value for one of the simple pens is unknown, or one of the pens is not a simple pen. |
Remarks
Sets the attributes of the interactive pen with the given interactivePenKey.
See Also