PdfReference Class
A reference to an indirect object of a document (ISO 32000-2, 7.3.10), such as 12 0 R.
public sealed class PdfReference : PdfObject, IEquatable<PdfReference>Remarks
References are created by PdfIndirectObjectCollection: a reference belongs to the indirect objects of one document.
- Inheritance
PdfObjectPdfReference- Implements
Properties
| Name | Description |
|---|---|
| Generation | Gets the generation number. |
| Kind | Gets the kind of the object. |
| ObjectNumber | Gets the object number. |
Generation
PdfReference.csKind
PdfReference.csObjectNumber
PdfReference.csMethods
| Name | Description |
|---|---|
| Equals(PdfReference?) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Determines whether the specified object is equal to the current object. |
| GetHashCode() | Serves as the default hash function. |
| Resolve() | Gets the object the reference points to, loading it from the file when needed. |
Equals overloads
Equals(PdfReference?)
PdfReference.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(PdfReference? other)Parameters
otherPdfReference?- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
PdfReference.csGetHashCode()
PdfReference.csResolve()
PdfReference.csGets the object the reference points to, loading it from the file when needed.
public PdfObject Resolve()Returns
PdfObject The object, or PdfNull.Instance when it does not exist (ISO 32000-2, 7.3.10).