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

public sealed class PdfNameObject : PdfPrimitiveObject
Inheritance
object
PdfNameObject
Inherited Members
Extension Methods

Constructors

PdfNameObject()

Initializes a new instance of the PdfNameObject class.

PdfNameObject(Name)

Initializes a new instance of the PdfNameObject class.

PdfNameObject(PdfDocument, string)

Initializes a new instance of the PdfNameObject class.

PdfNameObject(string)

Initializes a new instance of the PdfNameObject class.

Properties

Name

Gets the underlying Name object.

Value

Gets the name as a canonical name string.

Methods

Equals(object?)

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

GetHashCode()

Serves as a hash function for this type.

ToString()

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

Operators

operator ==(PdfNameObject?, string?)

Determines whether a name is equal to a string.

operator !=(PdfNameObject?, string?)

Determines whether a name is not equal to a string.