Method Add
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
Add(string, string)
Creates new XMP property and adds it to the end of this XmpPropertyList.
public XmpProperty Add(string name, string value)
Parameters
Returns
- XmpProperty
The newly created XMP property.
Remarks
The value of the property specified by value
can be
null
.
Collection should not contain duplicate properties, so the ArgumentException will be thrown if this XmpPropertyList already contains property with specified name.
Add(string, string, string)
Creates new XMP property and adds it to the end of this XmpPropertyList.
public XmpProperty Add(string name, string value, string description)
Parameters
name
stringThe name of the property.
value
stringThe value of the property.
description
stringThe description of the property.
Returns
- XmpProperty
The newly created XMP property.
Remarks
The value of the property specified by value
can be
null
.
Collection should not contain duplicate properties, so the ArgumentException will be thrown if this XmpPropertyList already contains property with specified name.
Add(string, XmpValue)
Creates new XMP property and adds it to the end of this XmpPropertyList.
public XmpProperty Add(string name, XmpValue value)
Parameters
Returns
- XmpProperty
The newly created XMP property.
Remarks
Collection should not contain duplicate properties, so the ArgumentException will be thrown if this XmpPropertyList already contains property with specified name.
XMP property value can be null
or an instance of
XmpArray, XmpString or
XmpStructure types only.
Add(string, XmpValue, string)
Creates new XMP property and adds it to the end of this XmpPropertyList.
public XmpProperty Add(string name, XmpValue value, string description)
Parameters
name
stringThe name of the property.
value
XmpValueThe value of the property.
description
stringThe description of the property.
Returns
- XmpProperty
The newly created XMP property.
Remarks
Collection should not contain duplicate properties, so the ArgumentException will be thrown if this XmpPropertyList already contains property with specified name.
XMP property value can be null
or an instance of
XmpArray, XmpString or
XmpStructure types only.