[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.PdfObjID

Struct PdfObjID

Namespace
GrapeCity.Documents.Pdf.Spec
Assembly
GcDocs.Pdf.dll

Defines full ID of PDF object including ID and generation.

public struct PdfObjID : IEquatable<PdfObjID>
Implements
System.IEquatable<T><PdfObjID>
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()

Constructors

PdfObjID(int, int)

Initializes a new instance of the PdfObjID structure.

public PdfObjID(int objID, int gen)

Parameters

objID int

The value of ID.

gen int

The value of Gen.

Fields

Empty

The empty PdfObjID structure.

public static readonly PdfObjID Empty

Field Value

PdfObjID

Gen

The object's generation.

public int Gen

Field Value

int

ID

The object's id.

public int ID

Field Value

int

Methods

Equals(PdfObjID)

Determines whether two PdfObjID instances are equal.

public bool Equals(PdfObjID other)

Parameters

other PdfObjID

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

IsEmpty()

Returns a value indicating whether this PdfObjID struct contains empty object ID.

public bool IsEmpty()

Returns

bool

ToString()

public override string ToString()

Returns

string

TryParse(string, out PdfObjID)

Converts the string representation of a PdfObjID to a PdfObjID. A return value indicates whether the operation succeeded.

public static bool TryParse(string s, out PdfObjID value)

Parameters

s string

A string containing an object to convert.

value PdfObjID

The PdfObjID value.

Returns

bool

true if s was converted successfully; otherwise, false.

Operators

operator ==(PdfObjID, PdfObjID)

The equality operator.

public static bool operator ==(PdfObjID v1, PdfObjID v2)

Parameters

v1 PdfObjID
v2 PdfObjID

Returns

bool

operator !=(PdfObjID, PdfObjID)

The inequality operator.

public static bool operator !=(PdfObjID v1, PdfObjID v2)

Parameters

v1 PdfObjID
v2 PdfObjID

Returns

bool