PDFsharp-net6

PdfInteger

Namespace: PdfSharp.Pdf

Represents a direct integer value.

public sealed class PdfInteger : PdfNumber, System.ICloneable, System.IConvertible

Inheritance ObjectPdfItemPdfNumberPdfInteger
Implements ICloneable, IConvertible

Properties

Value

Gets the value as integer.

public int Value { get; }

Property Value

Int32

Constructors

PdfInteger()

Initializes a new instance of the PdfInteger class.

public PdfInteger()

PdfInteger(Int32)

Initializes a new instance of the PdfInteger class.

public PdfInteger(int value)

Parameters

value Int32
The value.

Methods

ToString()

Returns the integer as string.

public string ToString()

Returns

String

WriteObject(PdfWriter)

Writes the integer as string.

internal void WriteObject(PdfWriter writer)

Parameters

writer PdfWriter

GetTypeCode()

Returns TypeCode for 32-bit integers.

public TypeCode GetTypeCode()

Returns

TypeCode