[]
Represents a PDF Number object. This class overrides and implements:
public class PdfNumber : IPdfNumber, IEquatable<PdfNumber>
Public Class PdfNumber
Implements IPdfNumber, IEquatable(Of PdfNumber)
Name | Description |
---|---|
PdfNumber(double) | Initializes a new instance of the PdfNumber class. |
PdfNumber(double, int) | Initializes a new instance of the PdfName class. |
PdfNumber(int) | Initializes a new instance of the PdfNumber class. |
PdfNumber(uint) | Initializes a new instance of the PdfNumber class. |
Name | Description |
---|---|
AsDouble | Converts the PdfNumber to double. |
AsFloat | Converts the PdfNumber to float. |
AsInt | Converts the PdfNumber to int. Note! The PdfNumber can contain a value does not fit into integer bounds, in this case result will be MinValue or MaxValue. |
Name | Description |
---|---|
Create(float?) | Creates the PdfNumber object from nullable float value,
returns Instance if |
Equals(PdfNumber) | Indicates whether the current PdfNumber is equal to another PdfNumber. |
Equals(object) | |
GetHashCode() | |
GetOrCreate(int) | Creates a new PdfNumber or returns existing predefined PdfNumber object. |
ToString() | |
ToString(double, int) | Converts a double value to a string. Note that a separate method ToString(float, int) exists for converting float values, separate methods are needed to avoid rounding errors that may occur when converting doubles to floats and vice versa. The value to convert. The count of digits after decimal point. |
ToString(float, int) | Converts a float value to a string. Note that a separate method ToString(double, int) exists for converting double values, separate methods are needed to avoid rounding errors that may occur when converting doubles to floats and vice versa. |
Name | Description |
---|---|
operator ==(PdfNumber, PdfNumber) | The equality operator. |
explicit operator PdfNumber(double) | Converts the double to the PdfNumber. |
implicit operator double(PdfNumber) | Converts the PdfNumber to a double. |
operator !=(PdfNumber, PdfNumber) | The inequality operator. |