PdfSharp-WPF  1.31.7289
PdfSharp.Pdf.PdfNameObject Class Reference

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. More...

Inheritance diagram for PdfSharp.Pdf.PdfNameObject:
PdfSharp.Pdf.PdfObject PdfSharp.Pdf.PdfItem

Public Member Functions

 PdfNameObject ()
 Initializes a new instance of the PdfNameObject class. More...
 
 PdfNameObject (PdfDocument document, string value)
 Initializes a new instance of the PdfNameObject class. More...
 
override bool Equals (object obj)
 Determines whether the specified object is equal to the current object. More...
 
override int GetHashCode ()
 Serves as a hash function for this type. More...
 
override string ToString ()
 Returns the name. The string always begins with a slash. More...
 
- Public Member Functions inherited from PdfSharp.Pdf.PdfObject
new PdfObject Clone ()
 Creates a copy of this object. The clone does not belong to a document, i.e. its owner and its iref are null. More...
 
- Public Member Functions inherited from PdfSharp.Pdf.PdfItem
PdfItem Clone ()
 Creates a copy of this object. More...
 

Static Public Member Functions

static bool operator== (PdfNameObject name, string str)
 Determines whether a name is equal to a string. More...
 
static bool operator!= (PdfNameObject name, string str)
 Determines whether a name is not equal to a string. More...
 

Properties

string Value [get, set]
 Gets or sets the name value. More...
 
- Properties inherited from PdfSharp.Pdf.PdfObject
virtual PdfDocument Owner [get]
 Gets the PdfDocument this object belongs to. More...
 
bool IsIndirect [get]
 Indicates whether the object is an indirect object. More...
 
PdfObjectInternals Internals [get]
 Gets the PdfInternals object of this document, that grants access to some internal structures which are not part of the public interface of PdfDocument. More...
 
PdfReference Reference [get, set]
 Gets the indirect reference of this object. If the value is null, this object is a direct object. More...
 

Additional Inherited Members

- Protected Member Functions inherited from PdfSharp.Pdf.PdfObject
 PdfObject ()
 Initializes a new instance of the PdfObject class. More...
 
 PdfObject (PdfDocument document)
 Initializes a new instance of the PdfObject class. More...
 
 PdfObject (PdfObject obj)
 Initializes a new instance from an existing object. Used for object type transformation. More...
 
override object Copy ()
 Implements the copy mechanism. Must be overridden in derived classes. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PdfNameObject() [1/2]

PdfSharp.Pdf.PdfNameObject.PdfNameObject ( )

Initializes a new instance of the PdfNameObject class.

◆ PdfNameObject() [2/2]

PdfSharp.Pdf.PdfNameObject.PdfNameObject ( PdfDocument  document,
string  value 
)

Initializes a new instance of the PdfNameObject class.

Parameters
documentThe document.
valueThe value.

Member Function Documentation

◆ Equals()

override bool PdfSharp.Pdf.PdfNameObject.Equals ( object  obj)

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

◆ GetHashCode()

override int PdfSharp.Pdf.PdfNameObject.GetHashCode ( )

Serves as a hash function for this type.

◆ operator!=()

static bool PdfSharp.Pdf.PdfNameObject.operator!= ( PdfNameObject  name,
string  str 
)
static

Determines whether a name is not equal to a string.

◆ operator==()

static bool PdfSharp.Pdf.PdfNameObject.operator== ( PdfNameObject  name,
string  str 
)
static

Determines whether a name is equal to a string.

◆ ToString()

override string PdfSharp.Pdf.PdfNameObject.ToString ( )

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

Property Documentation

◆ Value

string PdfSharp.Pdf.PdfNameObject.Value
getset

Gets or sets the name value.


The documentation for this class was generated from the following file: