Skip to content

PDFCosNumber

Namespace: O2S.Components.PDF4NET.Core.Cos

Defines a PDF COS number.

public class PDFCosNumber : PDFCosObject

Inheritance ObjectPDFCosObjectPDFCosNumber

Constructors

PDFCosNumber()

Initializes a new PDFCosNumber object.

public PDFCosNumber()

PDFCosNumber(Double)

Initializes a new PDFCosNumber object with a number.

public PDFCosNumber(double value)

Parameters

value Double
Initial number value.


Properties

Type

Gets the object type.

public PDFCosObjectType Type { get; }

Property Value

PDFCosObjectType


Value

Gets or sets the object value.

public double Value { get; set; }

Property Value

Double
The number represented by this COS object.


Methods

Equals(Object)

Tests if this object is equal to another object.

public bool Equals(object obj)

Parameters

obj Object
Object to test.

Returns

Boolean
True if the objects are equal, false otherwise.


GetHashCode()

Computes the object hash code.

public int GetHashCode()

Returns

Int32
The hash code.


ToString()

Returns a String that represents the current Object.

public string ToString()

Returns

String
String that represents the current Object.