Class PdfNumber
A
PdfNumber
-class is the PDF-equivalent of a
Double
-object.
public class PdfNumber : PdfPrimitiveObject
- Inheritance
-
PdfNumber
- Inherited Members
Remarks
A
PdfNumber
-class is the PDF-equivalent of a
Double
-object.
Constructors
PdfNumber(byte[])
Creates an instance of PdfNumber with provided content.
public PdfNumber(byte[] content)
Parameters
content
byte[]byte array content to set
PdfNumber(double)
Creates an instance of PdfNumber and sets value.
public PdfNumber(double value)
Parameters
value
doubledouble value to set
PdfNumber(int)
Creates an instance of PdfNumber and sets value.
public PdfNumber(int value)
Parameters
value
intint value to set
Methods
CopyContent(PdfObject, PdfDocument, ICopyFilter)
protected override void CopyContent(PdfObject from, PdfDocument document, ICopyFilter copyFilter)
Parameters
from
PdfObjectdocument
PdfDocumentcopyFilter
ICopyFilter
Decrement()
Decrements current value.
public virtual void Decrement()
DoubleValue()
Returns double value of current instance of PdfNumber.
public virtual double DoubleValue()
Returns
Equals(object)
public override bool Equals(object o)
Parameters
o
object
Returns
FloatValue()
Returns value and converts it to float.
public virtual float FloatValue()
Returns
- float
value converted to float
GenerateContent()
protected override void GenerateContent()
GenerateValue()
protected virtual void GenerateValue()
GetHashCode()
public override int GetHashCode()
Returns
GetObjectType()
public override byte GetObjectType()
Returns
GetValue()
Returns value of current instance of PdfNumber.
public virtual double GetValue()
Returns
HasDecimalPoint()
Checks if string representation of the value contains decimal point.
public virtual bool HasDecimalPoint()
Returns
- bool
true if contains so the number must be real not integer
Increment()
Increments current value.
public virtual void Increment()
IntValue()
Returns value and converts it to an int.
public virtual int IntValue()
Returns
- int
value converted to int
Remarks
IsDoubleNumber()
protected virtual bool IsDoubleNumber()
Returns
LongValue()
Returns value and converts it to long.
public virtual long LongValue()
Returns
- long
value converted to long
NewInstance()
protected override PdfObject NewInstance()
Returns
SetValue(double)
Sets value.
public virtual void SetValue(double value)
Parameters
value
doubleto set
SetValue(int)
Sets value and convert it to double.
public virtual void SetValue(int value)
Parameters
value
intto set
ToString()
public override string ToString()