ICogGraphicMultiPen GetSimplePenAttributes Method Cognex VisionPro
Returns 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 GetSimplePenAttributes(
	int simplePenKey,
	out CogColorConstants color,
	out int lineWidth,
	out CogGraphicLineStyleConstants lineStyle
)

Parameters

simplePenKey
Type: System Int32

The pen key.

color
Type: Cognex.VisionPro CogColorConstants 

The pen color.

lineWidth
Type: System Int32 

The line width.

lineStyle
Type: Cognex.VisionPro CogGraphicLineStyleConstants 

The line style.

Exceptions

ExceptionCondition
ArgumentException

simplePenKey is not a known simple pen key.

Remarks

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

See Also