Skip to content

# PDFSetLineCapOperator

Namespace: O2S.Components.PDF4NET.Graphics.Operators

Defines the J (set line cap) content stream operator.

    public class PDFSetLineCapOperator : PDFContentStreamOperator

Inheritance Object → PDFContentStreamOperator → PDFSetLineCapOperator

## Constructors

### PDFSetLineCapOperator()

Initializes a new PDFSetLineCapOperator object.

    public PDFSetLineCapOperator()

### PDFSetLineCapOperator(PDFLineCap)

Initializes a new PDFSetLineCapOperator object.

    public PDFSetLineCapOperator(PDFLineCap lineCap)

Parameters

`lineCap` PDFLineCap
The line cap style.

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

### LineCap

Gets or sets the cap join.

    public PDFLineCap LineCap { get; set; }

Property Value

PDFLineCap
The line cap style.

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