XmpRational

XmpRational class

Represents XMP XmpRational.

public sealed class XmpRational : XmpValueBase

Constructors

Name Description
XmpRational(string) Initializes a new instance of the XmpBoolean class.
XmpRational(long, long) Initializes a new instance of the XmpRational class.

Properties

Name Description
Denominator { get; } Gets denominator
DoubleValue { get; } Gets value of rational type presented in double format.
Numerator { get; } Gets numerator.
RawValue { get; } Gets the raw value.
Type { get; } Gets the MetadataPropertyType.

Methods

Name Description
AcceptValue(ValueAcceptor) Extracts the property value using a custom ValueAcceptor.
override GetXmpRepresentation() Returns string contained value in XMP format.
ToArray<TElement>() Converts the property value to an array of the specified type.
ToClass<T>() Converts the property value to a reference type.
override ToString() Returns a string that represents the property value.
ToStruct<T>() Converts the property value to a value type.
ToStruct<T>(T) Converts the property value to a value type.

See Also