Class XmpReal
Class XmpReal
Namespace: Aspose.Imaging.Xmp.Types.Basic
Assembly: Aspose.Imaging.dll (25.2.0)
Represents XMP Real.
[JsonObject(MemberSerialization.OptIn)]
public sealed class XmpReal : XmpTypeBase, IXmpType, ICloneable
Inheritance
object ← XmpTypeBase ← XmpReal
Implements
Inherited Members
XmpTypeBase.GetXmpRepresentation(), XmpTypeBase.ToString(), XmpTypeBase.Clone(), object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
XmpReal(float)
Initializes a new instance of the Aspose.Imaging.Xmp.Types.Basic.XmpReal class.
[JsonConstructor]
public XmpReal(float value)
Parameters
value
float
Float value.
XmpReal(string)
Initializes a new instance of the Aspose.Imaging.Xmp.Types.Basic.XmpReal class.
public XmpReal(string value)
Parameters
value
string
The value.
Exceptions
value is null.
Invalid value. Should be float.
Properties
Value
Gets or sets float the value.
[JsonProperty]
public float Value { get; set; }
Property Value
Methods
GetXmpRepresentation()
Gets the string contained value in XMP format.
public override string GetXmpRepresentation()
Returns
Returns the string contained value in XMP format.