Skip to content

# PDFContentStreamOperator

Namespace: O2S.Components.PDF4NET.Graphics.Operators

Defines the base class for PDF content stream operators.

    public class PDFContentStreamOperator

Inheritance Object → PDFContentStreamOperator

## Constructors

### PDFContentStreamOperator(PDFContentStreamOperatorType)

Initializes a new PDFContentStreamOperator object with the specified type.

    public PDFContentStreamOperator(PDFContentStreamOperatorType type)

Parameters

`type` PDFContentStreamOperatorType
The operator type.

## Properties

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