ICogGraphicMultiPen SetInteractivePenAttributes Method Cognex VisionPro
Sets the attributes of the interactive pen with the given Key.

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

void SetInteractivePenAttributes(
	int interactivePenKey,
	int simplePenKeyWhenNormal,
	int simplePenKeyWhenSelected,
	int simplePenKeyWhenDragged
)

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 TypeReason
CogGeneralContour Changed

Fires when the pen is changed.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    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