PDFsharp-net6

PdfReal

Namespace: PdfSharp.Pdf

Represents a direct real value.

public sealed class PdfReal : PdfNumber, System.ICloneable

Inheritance ObjectPdfItemPdfNumberPdfReal
Implements ICloneable

Properties

Value

Gets the value as double.

public double Value { get; }

Property Value

Double

Constructors

PdfReal()

Initializes a new instance of the PdfReal class.

public PdfReal()

PdfReal(Double)

Initializes a new instance of the PdfReal class.

public PdfReal(double value)

Parameters

value Double
The value.

Methods

ToString()

Returns the real number as string.

public string ToString()

Returns

String

WriteObject(PdfWriter)

Writes the real value with up to three digits.

internal void WriteObject(PdfWriter writer)

Parameters

writer PdfWriter