XmpValue
Vue de l’ensemble
‘XmpValue’ est une classe dans Aspose.PDF FOSS pour .NET.
Il représente une valeur de métadonnées XMP.
Cette classe fournit 18 méthodes pour travailler avec des objets XmpValue dans les programmes .NET. Les méthodologies disponibles comprennent: ‘ToArray’, ‘ToutTime’, ToDictionary', ‘ToMap’, 'toField', ’ToInteger', ‚ToNamedValues',‘ToRaw’, ‘TotString’, TostRange’, ’TomStructure’ et 1 méthode supplémentaire. Tous les membres publics sont accessibles à n’importe quelle application .Net après l’installation de l’Aspose.PDF FOSS pour le package .net. Propriétés: IsArry',IsDateTime,Idouble, Island`` ,Integre` Is Name, 4 et plus.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
IsInteger | bool | Read | Whether the value is an integer. |
IsDouble | bool | Read | Whether the value is a double. |
IsDateTime | bool | Read | Whether the value is a DateTime. |
IsString | bool | Read | Whether the value is a string (and not a number or date). |
IsArray | bool | Read | Whether the value is an array of XmpValues. |
IsField | bool | Read | Whether the value is a single named field (an XmpField instance). |
IsNamedValue | bool | Read | Whether the value is a named-value pair (KeyValuePair<string, XmpValue>). |
IsNamedValues | bool | Read | Whether the value is an array of named-value pairs. |
IsRaw | bool | Read | Whether the value is a raw XML node. |
IsStructure | bool | Read | Whether the value is a struct (a Dictionary<string, XmpValue> or an XmpField[]). |
méthodes
| Signature | Description |
|---|---|
XmpValue(value: int) | Create an XmpValue from an integer. |
XmpValue(value: double) | Create an XmpValue from a double. |
XmpValue(value: DateTime) | Create an XmpValue from a DateTime. |
XmpValue(value: string) | Create an XmpValue from a string. |
XmpValue(array: XmpValue[]) | Create an XmpValue from an array of XmpValues. |
ToInteger() | Convert to integer. |
ToDouble() | Convert to double. |
ToDateTime() | Convert to DateTime. |
ToArray() | Convert to XmpValue[]. |
ToDictionary() | Convert to Dictionary<string, XmpValue>. |
ToField() | Convert to a single XmpField. |
ToNamedValue() | Convert to a single named-value pair. |
ToNamedValues() | Convert to an array of named-value pairs. |
ToRaw() | Get the underlying raw XmlNode, or null when the value isn’t IsRaw. |
ToStructure() | Convert to an XmpField[] (a struct, in XMP terms). |
ToStringValue() | Convert to string representation suitable for XMP serialization. |
ToString() | Calls ToString on this XmpValue instance. |
ToString(formatProvider: IFormatProvider) | Format with a culture-specific provider. |
Voir aussi
- Aspose.PDF pour .NET — API d’entreprise