ICogGraphicMultiPen SetSimplePenAttributes Method Cognex VisionPro
Sets the attributes of the simple pen with the given Key.

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

void SetSimplePenAttributes(
	int simplePenKey,
	CogColorConstants color,
	int lineWidth,
	CogGraphicLineStyleConstants lineStyle
)
Events

Event TypeReason
CogGeneralContour Changed

Fires when the pen is changed.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    simplePenKey is not a known simple pen key.

    Remarks

    Sets the attributes of the simple pen with the given simplePenKey.

    See Also