Skip to content

# PDFShowTextOperator

Namespace: O2S.Components.PDF4NET.Graphics.Operators

Defines the Tj (show text) content stream operator.

    public class PDFShowTextOperator : PDFContentStreamOperator

Inheritance Object → PDFContentStreamOperator → PDFShowTextOperator

## Constructors

### PDFShowTextOperator()

Initializes a new PDFShowTextOperator object.

    public PDFShowTextOperator()

### PDFShowTextOperator(PDFCosString)

Initializes a new PDFShowTextOperator object.

    public PDFShowTextOperator(PDFCosString text)

Parameters

`text` PDFCosString
The text displayed by this operator as a COS string.

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

### Text

Gets or sets the text.

    public PDFCosString Text { get; set; }

Property Value

PDFCosString
The text displayed by this operator as a COS string.

### TextVisualObject

Gets the text painted by this operator.

    public PDFTextVisualObject TextVisualObject { get; }

Property Value

PDFTextVisualObject
A PDFTextVisualObject that describes the text painted by this operator.

Remarks

This property is set only when the PDFPageTransform.EnableExtendedOperatorInformation property is set to true on the object that processes this operator.

### Type

Gets or sets the operator type.

    public PDFContentStreamOperatorType Type { get; set; }

Property Value

PDFContentStreamOperatorType
The type of this operator.