Class Rational

Class Rational

Tên không gian: Aspose.Imaging.Xmp.Types.Derived Tổng hợp: Aspose.Imaging.dll (25.4.0)

Giới thiệu về XMP Rational

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

Inheritance

object XmpTypeBase Rational

Implements

IXmpType , ICloneable

Thành viên thừa kế

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(int, int)

Bắt đầu một trường hợp mới của Aspose.Imaging.Xmp.Types.Derived.Rational class.

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

Parameters

numerator int

số của nó.

denominator int

tên gọi .

Exceptions

ArgumentOutOfRangeException

Số lượng: Số lượng nên được null.hoặcdenominator;Denominator nên grater zero.

Properties

Denominator

Nhận hoặc đặt tên gọi.

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

Giá trị bất động sản

int

FloatValue

Nhận được giá trị float.

public float FloatValue { get; }

Giá trị bất động sản

float

Numerator

Nhận số lượng

[JsonProperty]
public int Numerator { get; }

Giá trị bất động sản

int

Methods

GetXmpRepresentation()

Nhận được giá trị nội dung trong định dạng XMP.

public override string GetXmpRepresentation()

Returns

string

Trả lại giá trị của string trong định dạng XMP.

 Tiếng Việt