CogGeneralContourEllipticalArcSegmentIterator CustomPen Property Cognex VisionPro 9.8
Returns/sets the key that refers to the custom pen properties used for drawing this segment. A key of 0 (the default) causes the segment to use the pen properties of the contour.

Namespace: Cognex.VisionPro.Implementation.Internal
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.1.0.0
Syntax

public virtual int CustomPen { get; set; }

Property Value

Type: Int32

Implements

ICogGeneralContourEllipticalArcSegmentIterator CustomPen
Events

Event TypeReason
CogGeneralContourSegmentChanged

Fires when the pen changes.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    The value is not an existing pen key that refers to a pen in the contour's OwnedCustomPens.

    Remarks

    Sets or gets the key that refers to the custom pen properties used for drawing this segment. Zero means that the segment uses the pen properties of the contour.

    Default Value: 0 (Use the properties of the contour.)

    See Also