Skip to content

# PDFCosString

Namespace: O2S.Components.PDF4NET.Core.Cos

Defines a PDF COS string.

    public class PDFCosString : PDFCosObject

Inheritance Object → PDFCosObject → PDFCosString

## Constructors

### PDFCosString()

Initializes a new PDFCosString object.

    public PDFCosString()

### PDFCosString(String)

Initializes a new PDFCosString object with a string.

    public PDFCosString(string value)

Parameters

`value` String
Initial string value.

## Properties

### Type

Gets the object type.

    public PDFCosObjectType Type { get; }

Property Value

PDFCosObjectType

### Value

Gets or sets the object value.

    public string Value { get; set; }

Property Value

String
The string represented by this PDF COS string.

## Methods

### ToString()

Returns a String that represents the current Object.

    public string ToString()

Returns

String
String that represents the current Object.