Skip to content

# PDFSetStrokeColorOperator

Namespace: O2S.Components.PDF4NET.Graphics.Operators

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

    public class PDFSetStrokeColorOperator : PDFContentStreamOperator

Inheritance Object → PDFContentStreamOperator → PDFSetStrokeColorOperator

## Constructors

### PDFSetStrokeColorOperator()

Initializes a new PDFSetStrokeColorOperator object.

    public PDFSetStrokeColorOperator()

### PDFSetStrokeColorOperator(Double[])

Initializes a new PDFSetStrokeColorOperator object.

    public PDFSetStrokeColorOperator(Double[] colorComponents)

Parameters

`colorComponents` Double[]
The color components.

## 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.

### Type

Gets or sets the operator type.

    public PDFContentStreamOperatorType Type { get; set; }

Property Value

PDFContentStreamOperatorType
The type of this operator.