Struct PdfObjectID
Represents a PDF object identifier, a pair of object and generation number.
public readonly struct PdfObjectID : IComparable
- Implements
- Inherited Members
Constructors
PdfObjectID(int)
Initializes a new instance of the PdfObjectID class.
public PdfObjectID(int objectNumber)
Parameters
objectNumber
intThe object number.
PdfObjectID(int, int)
Initializes a new instance of the PdfObjectID class.
public PdfObjectID(int objectNumber, int generationNumber)
Parameters
Properties
Empty
Creates an empty object identifier.
public static PdfObjectID Empty { get; }
Property Value
GenerationNumber
Gets or sets the generation number.
public int GenerationNumber { get; }
Property Value
IsEmpty
Indicates whether this object is an empty object identifier.
public bool IsEmpty { get; }
Property Value
ObjectNumber
Gets or sets the object number.
public int ObjectNumber { get; }
Property Value
Methods
CompareTo(object?)
Compares the current object ID with another object.
public int CompareTo(object? obj)
Parameters
obj
object
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
ToString()
Returns the object and generation numbers as a string.
public override string ToString()
Returns
Operators
operator ==(PdfObjectID, PdfObjectID)
Determines whether the two objects are equal.
public static bool operator ==(PdfObjectID left, PdfObjectID right)
Parameters
left
PdfObjectIDright
PdfObjectID
Returns
operator !=(PdfObjectID, PdfObjectID)
Determines whether the two objects are not equal.
public static bool operator !=(PdfObjectID left, PdfObjectID right)
Parameters
left
PdfObjectIDright
PdfObjectID