Class PdfReferenceHolder
Class that is like a reference but during saving it is replaced by a real reference to the object it holds.
Inheritance
Implements
Namespace: Syncfusion.Pdf.Primitives
Assembly: Syncfusion.Pdf.UWP.dll
Syntax
public class PdfReferenceHolder : Object, IPdfPrimitive
Constructors
PdfReferenceHolder(IPdfWrapper)
Initializes a new instance of the PdfReferenceHolder class.
Declaration
public PdfReferenceHolder(IPdfWrapper wrapper)
Parameters
Type | Name | Description |
---|---|---|
IPdfWrapper | wrapper | The wrapper. |
PdfReferenceHolder(IPdfPrimitive)
Initializes the class instance with an object.
Declaration
public PdfReferenceHolder(IPdfPrimitive obj)
Parameters
Type | Name | Description |
---|---|---|
IPdfPrimitive | obj | The object. |
Properties
ClonedObject
Returns cloned object.
Declaration
public IPdfPrimitive ClonedObject { get; }
Property Value
Type |
---|
IPdfPrimitive |
IsSaving
Gets or sets a value indicating whether this document is saving or not.
Declaration
public bool IsSaving { get; set; }
Property Value
Type |
---|
System.Boolean |
Object
Gets the object the reference is of.
Declaration
public IPdfPrimitive Object { get; }
Property Value
Type |
---|
IPdfPrimitive |
ObjectCollectionIndex
Gets or sets the integer value of the specified object.
Declaration
public int ObjectCollectionIndex { get; set; }
Property Value
Type |
---|
System.Int32 |
Position
Gets or sets the position of the object.
Declaration
public int Position { get; set; }
Property Value
Type |
---|
System.Int32 |
Reference
Gets the reference.
Declaration
public PdfReference Reference { get; }
Property Value
Type |
---|
PdfReference |
Status
Gets or sets the Status of the specified object.
Declaration
public ObjectStatus Status { get; set; }
Property Value
Type |
---|
ObjectStatus |
Methods
Clone(PdfCrossTable)
Create a copy of the referenced object.
Declaration
public IPdfPrimitive Clone(PdfCrossTable crossTable)
Parameters
Type | Name | Description |
---|---|---|
PdfCrossTable | crossTable |
Returns
Type |
---|
IPdfPrimitive |
Equals(Object)
Compares two reference holders.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to compare. |
Returns
Type | Description |
---|---|
System.Boolean | The result of comparison. |
GetHashCode()
Returns a hashcode for a hashtable.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hashcode. |
Save(IPdfWriter)
Saves the object.
Declaration
public void Save(IPdfWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IPdfWriter | writer | A PDF writer. |
Operators
Equality(PdfReferenceHolder, PdfReferenceHolder)
Compares two reference holders whether they are equal.
Declaration
public static bool operator ==(PdfReferenceHolder rh1, PdfReferenceHolder rh2)
Parameters
Type | Name | Description |
---|---|---|
PdfReferenceHolder | rh1 | A reference holder to compare. |
PdfReferenceHolder | rh2 | A reference holder to compare. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the comparison. |
Inequality(PdfReferenceHolder, PdfReferenceHolder)
Compares two reference holders whether they are different.
Declaration
public static bool operator !=(PdfReferenceHolder rh1, PdfReferenceHolder rh2)
Parameters
Type | Name | Description |
---|---|---|
PdfReferenceHolder | rh1 | A reference holder to compare. |
PdfReferenceHolder | rh2 | A reference holder to compare. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the comparison. |