Skip to content

# PDFSetFillColorSpaceOperator

Namespace: O2S.Components.PDF4NET.Graphics.Operators

Defines the cs (set fill colorspace) content stream operator.

    public class PDFSetFillColorSpaceOperator : PDFContentStreamOperator

Inheritance Object → PDFContentStreamOperator → PDFSetFillColorSpaceOperator

## Constructors

### PDFSetFillColorSpaceOperator()

Initializes a new PDFSetFillColorSpaceOperator object.

    public PDFSetFillColorSpaceOperator()

### PDFSetFillColorSpaceOperator(PDFCosName)

Initializes a new PDFSetFillColorSpaceOperator object.

    public PDFSetFillColorSpaceOperator(PDFCosName colorSpaceID)

Parameters

`colorSpaceID` PDFCosName
The colorspace ID in the /Resources dictionary.

## Properties

### ColorSpace

Gets or sets the colorspace.

    public PDFColorSpace ColorSpace { get; set; }

Property Value

PDFColorSpace
The colorspace object set by this operator.

### ColorSpaceID

Gets or sets the colorspace ID.

    public PDFCosName ColorSpaceID { get; set; }

Property Value

PDFCosName
The colorspace ID in the /Resources dictionary.

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