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

NameTypeAccessDescription
Prefixstring?Read/WriteThe XML prefix (e.g.
LocalNamestring?Read/WriteThe XML local name (e.g.
NamespaceUristring?Read/WriteThe XML namespace URI bound to Prefix.
NamestringReadCombined name in “prefix:localName” form (or just the local name when no prefix is set).
FieldTypeXmpFieldTypeReadField category.
ValueXmpValue?ReadThe field value, or null when this is an empty placeholder.
EmptyXmpFieldReadSingleton empty field.
IsEmptyboolReadTrue when the field carries no value.
LangXmpField?ReadThe xml:lang qualifier attached to this field (or null when none).

Methods

SignatureDescription
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.

See Also