Table of Contents

Class PdfNameObject

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

Represents an indirect name 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. Acrobat sometime uses indirect names to save space, because an indirect reference to a name may be shorter than a long name.

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

Constructors

PdfNameObject()

Initializes a new instance of the PdfNameObject class.

public PdfNameObject()

PdfNameObject(PdfDocument, string)

Initializes a new instance of the PdfNameObject class.

public PdfNameObject(PdfDocument document, string value)

Parameters

document PdfDocument

The document.

value string

The value.

Properties

Value

Gets or sets the name value.

public string Value { get; set; }

Property Value

string

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

Serves as a hash function for this type.

public override int GetHashCode()

Returns

int

ToString()

Returns the name. The string always begins with a slash.

public override string ToString()

Returns

string

Operators

operator ==(PdfNameObject?, string?)

Determines whether a name is equal to a string.

public static bool operator ==(PdfNameObject? name, string? str)

Parameters

name PdfNameObject
str string

Returns

bool

operator !=(PdfNameObject?, string?)

Determines whether a name is not equal to a string.

public static bool operator !=(PdfNameObject? name, string? str)

Parameters

name PdfNameObject
str string

Returns

bool