PdfInteger Class

An integer (ISO 32000-2, 7.3.3).

public sealed class PdfInteger : PdfNumber, IEquatable<PdfInteger>
Inheritance
PdfNumber PdfInteger
Implements

Properties

NameDescription
DoubleValueGets the value as a double-precision number.
KindGets the kind of the object.
ValueGets the value.

DoubleValue

PdfInteger.cs

Gets the value as a double-precision number.

public override double DoubleValue { get; }

Property value

double

Gets the kind of the object.

public override PdfObjectKind Kind { get; }

Property value

PdfObjectKind

Gets the value.

public long Value { get; }

Property value

long

Methods

NameDescription
Equals(PdfInteger?)Indicates whether the current object is equal to another object of the same type.
Equals(object?)Determines whether the specified object is equal to the current object.
Get(long)Gets the object of a value.
GetHashCode()Serves as the default hash function.

Equals overloads

Equals(PdfInteger?)

PdfInteger.cs

Indicates whether the current object is equal to another object of the same type.

public bool Equals(PdfInteger? other)
Parameters
other PdfInteger?
An object to compare with this object.
Returns

bool true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

PdfInteger.cs

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)
Parameters
obj object?
The object to compare with the current object.
Returns

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

Get(long)

PdfInteger.cs

Gets the object of a value.

public static PdfInteger Get(long value)

Parameters

value long
The value.

Returns

PdfInteger The integer.

GetHashCode()

PdfInteger.cs

Serves as the default hash function.

public override int GetHashCode()

Returns

int A hash code for the current object.