Skip to content

# PDFSetFillColorNOperator

Namespace: O2S.Components.PDF4NET.Graphics.Operators

Defines the scn (set fill color) content stream operator.

    public class PDFSetFillColorNOperator : PDFContentStreamOperator

Inheritance Object → PDFContentStreamOperator → PDFSetFillColorNOperator

## Constructors

### PDFSetFillColorNOperator()

Initializes a new PDFSetFillColorNOperator object.

    public PDFSetFillColorNOperator()

### PDFSetFillColorNOperator(Double[], PDFCosName)

Initializes a new PDFSetFillColorNOperator object.

    public PDFSetFillColorNOperator(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.