PDFsharp-net6

PdfObjectID

Namespace: PdfSharp.Pdf

Represents a PDF object identifier, a pair of object and generation number.

public struct PdfObjectID

Inheritance ObjectValueTypePdfObjectID
Implements IComparable

Properties

ObjectNumber

Gets or sets the object number.

public int ObjectNumber { get; }

Property Value

Int32

GenerationNumber

Gets or sets the generation number.

public int GenerationNumber { get; }

Property Value

Int32

IsEmpty

Indicates whether this object is an empty object identifier.

public bool IsEmpty { get; }

Property Value

Boolean

Empty

Creates an empty object identifier.

public static PdfObjectID Empty { get; }

Property Value

PdfObjectID

Constructors

PdfObjectID(Int32)

Initializes a new instance of the PdfObjectID class.

PdfObjectID(int objectNumber)

Parameters

objectNumber Int32
The object number.

PdfObjectID(Int32, Int32)

Initializes a new instance of the PdfObjectID class.

PdfObjectID(int objectNumber, int generationNumber)

Parameters

objectNumber Int32
The object number.

generationNumber Int32
The generation number.

Methods

Equals(Object)

Indicates whether this instance and a specified object are equal.

bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

GetHashCode()

Returns the hash code for this instance.

int GetHashCode()

Returns

Int32

ToString()

Returns the object and generation numbers as a string.

string ToString()

Returns

String

CompareTo(Object)

Compares the current object id with another object.

int CompareTo(object obj)

Parameters

obj Object

Returns

Int32