Skip to content

# PDFSetStrokeColorNOperator

Namespace: O2S.Components.PDF4NET.Graphics.Operators

Defines the SCN (set stroke color) content stream operator.

    public class PDFSetStrokeColorNOperator : PDFContentStreamOperator

Inheritance Object → PDFContentStreamOperator → PDFSetStrokeColorNOperator

## Constructors

### PDFSetStrokeColorNOperator()

Initializes a new PDFSetStrokeColorNOperator object.

    public PDFSetStrokeColorNOperator()

### PDFSetStrokeColorNOperator(Double[], PDFCosName)

Initializes a new PDFSetStrokeColorNOperator object.

    public PDFSetStrokeColorNOperator(Double[] colorComponents, PDFCosName patternID)

Parameters

`colorComponents` Double[]
The color components.

`patternID` PDFCosName
The pattern ID in the /Resources dictionary.

## Properties

### ColorComponents

Gets or sets the color components.

    public Double[] ColorComponents { get; set; }

Property Value

Double[]
The color components.

### Context

Gets the content stream container from which the operator is extracted.

    public PDFContentStreamContainer Context { get; internal set; }

Property Value

PDFContentStreamContainer
A content stream container object, a PDFPage or a PDFFormXObject.

### OpCode

Gets the operator code.

    public string OpCode { get; }

Property Value

String
The operator code as it is written in the content stream.

### PatternID

Gets or sets the pattern ID.

    public PDFCosName PatternID { get; set; }

Property Value

PDFCosName
The pattern ID in the /Resources dictionary.

### Type

Gets or sets the operator type.

    public PDFContentStreamOperatorType Type { get; set; }

Property Value

PDFContentStreamOperatorType
The type of this operator.