XmpField
Overview
XmpField is a class in Aspose.PDF FOSS for .NET.
One named XMP field — a (prefix, local-name) pair plus a typed value.
This class provides 6 methods for working with XmpField objects in .NET programs.
Available methods include: Equals, GetHashCode, ToArray, ToStructure, XmpField.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: Empty, FieldType, IsEmpty, Lang, LocalName, Name, and 3 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Prefix | string? | Read/Write | The XML prefix (e.g. |
LocalName | string? | Read/Write | The XML local name (e.g. |
NamespaceUri | string? | Read/Write | The XML namespace URI bound to Prefix. |
Name | string | Read | Combined name in “prefix:localName” form (or just the local name when no prefix is set). |
FieldType | XmpFieldType | Read | Field category. |
Value | XmpValue? | Read | The field value, or null when this is an empty placeholder. |
Empty | XmpField | Read | Singleton empty field. |
IsEmpty | bool | Read | True when the field carries no value. |
Lang | XmpField? | Read | The xml:lang qualifier attached to this field (or null when none). |
Methods
| Signature | Description |
|---|---|
XmpField() | Default-construct an empty field. |
XmpField(prefix: string?, localName: string?, namespaceUri: string?, value: XmpValue?, type: XmpFieldType) | Construct a fully-populated field. |
ToArray() | Unwrap the field’s value as an array, or empty when the value isn’t array-typed. |
ToStructure() | Unwrap the field’s value as a struct (named-field array), or empty when the value isn’t struct-typed. |
Equals(obj: object?) | Calls Equals on this XmpField instance. |
GetHashCode() | Calls GetHashCode on this XmpField instance. |