Skip to content

# PDFCosName

Namespace: O2S.Components.PDF4NET.Core.Cos

Defines a PDF COS name.

    public class PDFCosName : PDFCosObject

Inheritance Object → PDFCosObject → PDFCosName

## Constructors

### PDFCosName()

Initializes a new PDFCosName object.

    public PDFCosName()

### PDFCosName(String)

Initializes a new PDFCosName object with a PDF name.

    public PDFCosName(string value)

Parameters

`value` String
Initial name 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
A string that represents a PDF name object, it must start with '/'

## Methods

### Equals(Object)

Tests if this object is equal to another object.

    public bool Equals(object obj)

Parameters

`obj` Object
Object to test.

Returns

Boolean
True if the objects are equal, false otherwise.

### GetHashCode()

Computes the object hash code.

    public int GetHashCode()

Returns

Int32
The hash code.

### ToString()

Returns a String that represents the current Object.

    public string ToString()

Returns

String
String that represents the current Object.