Class PdfReference
An indirect reference (12 0 R) to an object owned by a document.
public sealed class PdfReference : PdfObject, IEquatable<PdfReference>
- Inheritance
-
PdfReference
- Implements
- Inherited Members
Properties
Generation
The generation number of the referenced indirect object.
public int Generation { get; }
Property Value
ObjectNumber
The object number of the referenced indirect object.
public int ObjectNumber { get; }
Property Value
ObjectType
The kind of this object.
public override PdfObjectType ObjectType { get; }
Property Value
Methods
Clone()
Returns this instance; the reference is not followed.
public override PdfObject Clone()
Returns
Equals(PdfReference?)
True if other has the same object and generation number and belongs to the same
document (object store).
public bool Equals(PdfReference? other)
Parameters
otherPdfReference
Returns
Equals(object?)
True if obj is an equal PdfReference; see Equals(PdfReference?).
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Resolve()
Returns the referenced object, or PdfNull if it does not exist.
public override PdfObject Resolve()