Skip to content

# PDFSetTextMatrixOperator

Namespace: O2S.Components.PDF4NET.Graphics.Operators

Defines the Tm (set text matrix) content stream operator.

    public class PDFSetTextMatrixOperator : PDFContentStreamOperator

Inheritance Object → PDFContentStreamOperator → PDFSetTextMatrixOperator

## Constructors

### PDFSetTextMatrixOperator()

Initializes a new PDFSetTextMatrixOperator object.

    public PDFSetTextMatrixOperator()

### PDFSetTextMatrixOperator(Double, Double, Double, Double, Double, Double)

Initializes a new PDFSetTextMatrixOperator object.

    public PDFSetTextMatrixOperator(double m11, double m12, double m21, double m22, double dx, double dy)

Parameters

`m11` Double
The m11 element of the text matrix.

`m12` Double
The m12 element of the text matrix.

`m21` Double
The m21 element of the text matrix.

`m22` Double
The m22 element of the text matrix.

`dx` Double
The dx element of the text matrix.

`dy` Double
The dy element of the text matrix.

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

### DX

Gets or sets the dx element of the text matrix.

    public double DX { get; set; }

Property Value

Double
The dx element of the text matrix.

### DY

Gets or sets the dy element of the text matrix.

    public double DY { get; set; }

Property Value

Double
The dy element of the text matrix.

### M11

Gets or sets the m11 element of the text matrix.

    public double M11 { get; set; }

Property Value

Double
The m11 element of the text matrix.

### M12

Gets or sets the m12 element of the text matrix.

    public double M12 { get; set; }

Property Value

Double
The m12 element of the text matrix.

### M21

Gets or sets the m21 element of the text matrix.

    public double M21 { get; set; }

Property Value

Double
The m21 element of the text matrix.

### M22

Gets or sets the Y coordinate of the second control point.

    public double M22 { get; set; }

Property Value

Double
The Y coordinate of the second control point.

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