XmpMeta 类
内容
[
隐藏
]Summary: Represents xmpmeta. Optional.
The purpose of this element is to identify XMP metadata within general XML text that might contain other non-XMP uses of RDF.
Module: aspose.imaging.xmp
Full Name: aspose.imaging.xmp.XmpMeta
Inheritance: IXmlValue, XmpElementBase
Constructors
| Name | 描述 |
|---|---|
| XmpMeta() | 初始化 XmpMeta 类的新实例。 |
| XmpMeta(toolkit_version) | 初始化 XmpMeta 类的新实例。 |
Properties
| Name | Type | Access | 描述 |
|---|---|---|---|
| adobe_xmp_toolkit | string | r/w | 获取或设置 Adobe Xmp 工具包版本。 |
Methods
| Name | 描述 |
|---|---|
| add_attribute(attribute, value) | 添加属性。 |
| clear_attributes() | 移除所有属性。 |
| get_attribute(attribute) | 获取属性。 |
| get_xml_value() | 将 XMP 值转换为 XML 表示。 |
Constructor: XmpMeta()
XmpMeta()
初始化 XmpMeta 类的新实例。
Constructor: XmpMeta(toolkit_version)
XmpMeta(toolkit_version)
初始化 XmpMeta 类的新实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| toolkit_version | string | Adobe XMP 工具包版本。 |
Method: add_attribute(attribute, value)
add_attribute(attribute, value)
添加属性。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| 属性 | string | 属性。 |
| value | string | 值。 |
Method: get_attribute(attribute)
get_attribute(attribute)
获取属性。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| 属性 | string | 属性。 |
Returns
| Type | Description |
|---|---|
| string | 返回指定属性名称的属性。 |
Method: get_xml_value()
get_xml_value()
将 XMP 值转换为 XML 表示。
Returns
| Type | Description |
|---|---|
| string | 返回转换为 XML 表示形式的 XMP 值。 |