Table of Contents

Class Rational

Namespace
Aspose.Imaging.Xmp.Types.Derived
Assembly
Aspose.Imaging.dll

Represents XMP Rational.

public class Rational : XmpTypeBase, IXmpType
Inheritance
Rational
Implements
Inherited Members

Constructors

Rational(int, int)

Initializes a new instance of the Rational class.

public Rational(int numerator, int denominator)

Parameters

numerator int

The numerator.

denominator int

The denominator.

Exceptions

ArgumentOutOfRangeException

numerator;Numberator should be grater zero. or denominator;Denominator should be grater zero.

Properties

Denominator

Gets or sets the denominator.

public int Denominator { get; set; }

Property Value

int

The denominator.

FloatValue

Gets the float value.

public float FloatValue { get; }

Property Value

float

The float value.

Numerator

Gets the numerator.

public int Numerator { get; }

Property Value

int

The numerator.

Methods

GetXmpRepresentation()

Gets thestring contained value in XMP format.

public override string GetXmpRepresentation()

Returns

string

Returns the string contained value in XMP format.