Class Rational

Class Rational

ja nimityö: Aspose.Imaging.Xmp.Types.Derived Kokoelma: Aspose.Imaging.dll (25.4.0)

Esittelee XMP Rational.

[JsonObject(MemberSerialization.OptIn)]
public class Rational : XmpTypeBase, IXmpType, ICloneable

Inheritance

object XmpTypeBase Rational

Implements

IXmpType , ICloneable

Perintöjäsenet

XmpTypeBase.GetXmpRepresentation() , XmpTypeBase.ToString() , XmpTypeBase.Clone() , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

Rational(Sisä, sisä)

Aloitetaan uusi esimerkki Aspose.Imaging.Xmp.Types.Derived.Rational luokka.

[JsonConstructor]
public Rational(int numerator, int denominator)

Parameters

numerator int

ja numerot.

denominator int

Se on nimittäjä.

Exceptions

ArgumentOutOfRangeException

Numeraattorin on oltava nolla.taiNimitys: Nimitys tulee olla nolla.

Properties

Denominator

Antaa tai asettaa nimittäjä.

[JsonProperty]
public int Denominator { get; set; }

Omistuksen arvo

int

FloatValue

Se saa floatin arvon.

public float FloatValue { get; }

Omistuksen arvo

float

Numerator

Saa numerot.

[JsonProperty]
public int Numerator { get; }

Omistuksen arvo

int

Methods

GetXmpRepresentation()

Saat sisältämän arvon XMP-muodossa.

public override string GetXmpRepresentation()

Returns

string

Palauttaa sarjan sisältämä arvo XMP-muodossa.

 Suomi