[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfNumberExt

Class IPdfNumberExt

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

Contains extension methods for the IPdfNumber interface, allows working with PdfNumber and PdfNumberObject in the same way.

public static class IPdfNumberExt
Inheritance
object
IPdfNumberExt
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Methods

AsDouble(IPdfNumber)

Converts the IPdfNumber to a double value.

public static double AsDouble(this IPdfNumber pn)

Parameters

pn IPdfNumber

Returns

double

AsFloat(IPdfNumber)

Converts the IPdfNumber to a float value. Note that this method simply casts the double value to float.

public static float AsFloat(this IPdfNumber pn)

Parameters

pn IPdfNumber

Returns

float

AsInt(IPdfNumber)

Converts the IPdfNumber to an integer. Note that this method simply casts the double value to integer.

public static int AsInt(this IPdfNumber pn)

Parameters

pn IPdfNumber

Returns

int

AsLong(IPdfNumber)

Converts the IPdfNumber to a long integer. Note that this method simply casts the double value to long integer.

public static long AsLong(this IPdfNumber pn)

Parameters

pn IPdfNumber

Returns

long

AsUInt(IPdfNumber)

Converts the IPdfNumber to unsigned integer. Note that this method simply casts the double value to unsigned integer.

public static uint AsUInt(this IPdfNumber pn)

Parameters

pn IPdfNumber

Returns

uint