Skip to content

PDFRectangleOperator

Namespace: O2S.Components.PDF4NET.Graphics.Operators

Defines the re (rectangle) content stream operator.

public class PDFRectangleOperator : PDFContentStreamOperator

Inheritance ObjectPDFContentStreamOperatorPDFRectangleOperator

Constructors

PDFRectangleOperator()

Initializes a new PDFRectangleOperator object.

public PDFRectangleOperator()

PDFRectangleOperator(Double, Double, Double, Double)

Initializes a new PDFRectangleOperator object.

public PDFRectangleOperator(double x, double y, double width, double height)

Parameters

x Double
The X coordinate of the lower left corner.

y Double
The Y coordinate of the lower left corner.

width Double
The rectangle width.

height Double
The rectangle height.


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.


Height

Gets or sets the rectangle height.

public double Height { get; set; }

Property Value

Double
The rectangle height.


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.


Width

Gets or sets the rectangle width.

public double Width { get; set; }

Property Value

Double
The rectangle width.


X

Gets or sets the X coordinate of the lower left corner.

public double X { get; set; }

Property Value

Double
The X coordinate of the lower left corner.


Y

Gets or sets the Y coordinate of the lower left corner.

public double Y { get; set; }

Property Value

Double
The Y coordinate of the lower left corner.