Table of Contents

Class PdfStringObject

Namespace
PdfSharp.Pdf
Assembly
PdfSharp-gdi.dll

Represents an indirect text string value. This type is not used by PDFsharp. If it is imported from an external PDF file, the value is converted into a direct object.

public sealed class PdfStringObject : PdfObject, ICloneable
Inheritance
PdfStringObject
Implements
Inherited Members

Constructors

PdfStringObject()

Initializes a new instance of the PdfStringObject class.

public PdfStringObject()

PdfStringObject(PdfDocument, string)

Initializes a new instance of the PdfStringObject class.

public PdfStringObject(PdfDocument document, string value)

Parameters

document PdfDocument

The document.

value string

The value.

PdfStringObject(string, PdfStringEncoding)

Initializes a new instance of the PdfStringObject class.

public PdfStringObject(string value, PdfStringEncoding encoding)

Parameters

value string

The value.

encoding PdfStringEncoding

The encoding.

Properties

Encoding

Gets or sets the encoding.

public PdfStringEncoding Encoding { get; set; }

Property Value

PdfStringEncoding

HexLiteral

Gets a value indicating whether the string is a hexadecimal literal.

public bool HexLiteral { get; set; }

Property Value

bool

Length

Gets the number of characters in this string.

public int Length { get; }

Property Value

int

Value

Gets or sets the value as string

public string Value { get; set; }

Property Value

string

Methods

ToString()

Returns the string.

public override string ToString()

Returns

string