Class XmpValue
Namespace: Aspose.Page.EPS.XMP
Assembly: Aspose.Page.dll (25.1.2)
Represents XMP value
public class XmpValue
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
XmpValue(string)
Constructor for string value.
public XmpValue(string value)
Parameters
value
string
String value.
XmpValue(int)
Consructor for integer value.
public XmpValue(int value)
Parameters
value
int
Integer value.
XmpValue(double)
Constructor for floating point Value.
public XmpValue(double value)
Parameters
value
double
Double value.
XmpValue(DateTime)
Constructor for date time value.
public XmpValue(DateTime value)
Parameters
value
DateTime
Date time value.
XmpValue(XmpValue[])
Constructor for array value.
public XmpValue(XmpValue[] array)
Parameters
array
XmpValue[]
Array value.
Properties
IsArray
Returns true is XmpValue is array.
public bool IsArray { get; }
Property Value
IsDateTime
Returns true if value is DateTime.
public bool IsDateTime { get; }
Property Value
IsDouble
Returns true if value is floating point value.
public bool IsDouble { get; }
Property Value
IsField
Returns true if XmpValue is field.
public bool IsField { get; }
Property Value
IsInteger
Returns true if value is integer.
public bool IsInteger { get; }
Property Value
IsNamedValue
Returns true if XmpValue is named value.
public bool IsNamedValue { get; }
Property Value
IsNamedValues
Returns true is XmpValue represents named values.
public bool IsNamedValues { get; }
Property Value
IsRaw
Value is unsupported/unknown and raw XML code is provided.
public bool IsRaw { get; }
Property Value
IsString
Returns true if value is string.
public bool IsString { get; }
Property Value
IsStructure
Returns true is XmpValue represents structure.
public bool IsStructure { get; }
Property Value
Methods
ToArray()
Returns array.
public XmpValue[] ToArray()
Returns
XmpValue[]
Array value
ToDateTime()
Converts to date time.
public DateTime ToDateTime()
Returns
DateTime value.
ToDictionary()
Returns dictionary which contains named values.
public Dictionary<string, xmpvalue=""> ToDictionary()
Returns
Dictionary<string, XmpValue>
Dictionary value.
ToDouble()
Converts to double.
public double ToDouble()
Returns
Double value.
ToField()
Returns XMP value as XMP field.
public XmpField ToField()
Returns
Field value.
ToInteger()
Converts to integer.
public int ToInteger()
Returns
Integer value.
ToNamedValue()
Returns XMP value as named value.
public KeyValuePair<string, xmpvalue=""> ToNamedValue()
Returns
KeyValuePair<string, XmpValue>
Named value.
ToNamedValues()
Returns XMP value as named value collection.
public KeyValuePair<string, xmpvalue="">[] ToNamedValues()
Returns
KeyValuePair<string, XmpValue>[]
Named collection value.
ToRaw()
Raw XML code for unknown/unsupported values.
public XmlNode ToRaw()
Returns
XmlNode
XML node for this value.
ToString()
Returns string representation of XmpValue.
public override string ToString()
Returns
String representation.
ToString(IFormatProvider)
Returns string representation.
public string ToString(IFormatProvider formatProvider)
Parameters
formatProvider
IFormatProvider
Format provider.
Returns
String representation.
ToStringValue()
Converts to string.
public string ToStringValue()
Returns
String value.
ToStructure()
Returns XMP value as structure (set of fields).
public XmpField[] ToStructure()
Returns
XmpField[]
Structure value.
Operators
explicit operator XmpValue[](XmpValue)
Converts XmpValue to array.
public static explicit operator XmpValue[](XmpValue value)
Parameters
value
XmpValue
Value to convert.
Returns
XmpValue[]
XmlValue.
explicit operator object[](XmpValue)
Converts XmpValue into array.
public static explicit operator object[](XmpValue value)
Parameters
value
XmpValue
Value to convert.
Returns
object[]
XmlValue.
explicit operator string(XmpValue)
Converts XmpValue into string.
public static explicit operator string(XmpValue value)
Parameters
value
XmpValue
Value to convert.
Returns
XmlValue.
explicit operator KeyValuePair<string, xmpvalue="">(XmpValue)
Converts XmpValue to named value.
public static explicit operator KeyValuePair<string, xmpvalue="">(XmpValue value)
Parameters
value
XmpValue
Value to convert.
Returns
KeyValuePair<string, XmpValue>
XmlValue.
explicit operator KeyValuePair<string, xmpvalue="">[](XmpValue)
Converts XmlValue to named collection value.
public static explicit operator KeyValuePair<string, xmpvalue="">[](XmpValue value)
Parameters
value
XmpValue
Value to convert.
Returns
KeyValuePair<string, XmpValue>[]
XmlValue.
implicit operator XmpValue(string)
Converts string to XmpValue.
public static implicit operator XmpValue(string value)
Parameters
value
string
Value to convert.
Returns
XmlValue.
implicit operator XmpValue(int)
Converts integer into XmpValue.
public static implicit operator XmpValue(int value)
Parameters
value
int
Value to convert.
Returns
XmlValue.
implicit operator XmpValue(double)
Converts double into XmpValue.
public static implicit operator XmpValue(double value)
Parameters
value
double
Value to convert.
Returns
XmlValue.
implicit operator XmpValue(DateTime)
Converts DateTime into XmpValue.
public static implicit operator XmpValue(DateTime value)
Parameters
value
DateTime
Value to convert.
Returns
XmlValue.
implicit operator XmpValue(object[])
Converts array to XmpValue.
public static implicit operator XmpValue(object[] value)
Parameters
value
object[]
Value to convert.
Returns
XmlValue. </string,></string,></string,></string,></string,></string,></string,>