IndirectObject Equals Function. Test whether the two IndirectObjects are the same. ABCpdf .NET PDF Library.

ABCpdf .net

 
   

Test whether the two IndirectObjects are the same.

 

   
Syntax  

[C#]
bool Equals(IndirectObject other)
override bool Equals(object other)
bool Equals(IndirectObject other, ComparisonType type)

[Visual Basic]
Function Equals(other As IndirectObject) As Boolean
Overrides Function Equals(other As Object) As Boolean
Function Equals(other As IndirectObject, type As ComparisonType) As Boolean

 

   

Params
 
Name Description
other The object to test against.
return Whether the objects are equal.

 

   

Notes
 

This method can be used to determine whether the specified object is equal to the current object.

Objects are considered equal if they refer to the same underlying object within the PDF document. So by default this method determines object equality rather than value equality.

To perform other types of equality test you can use the overload that accepts a ComparisonType. The comparison type specifies the type of data to compare.

The ComparisonType enumeration is a flags type enumeration so the different values can be combined together using bitwise operations. It may take the following values:

  • None (nothing)
  • Object (the underlying PDF object)
  • ID (the ID of the IndirectObject)
  • Atom (the value of the Atom)
  • Data (the data associated with the stream - if this is a stream)

Only if all the comparisons are true are the objects said to be equal.

 

   

Example
 

None.