Back to Devexpress

XmpDocument.Add(String, Int32) Method

officefileapi-devexpress-dot-pdf-dot-xmp-dot-xmpdocument-dot-add-x28-system-dot-string-system-dot-int32-x29.md

latest2.7 KB
Original Source

XmpDocument.Add(String, Int32) Method

Adds a node to the XMP packet.

Namespace : DevExpress.Pdf.Xmp

Assembly : DevExpress.Pdf.v25.2.Core.dll

NuGet Package : DevExpress.Pdf.Core

Declaration

csharp
public void Add(
    string qualifiedName,
    int value
)
vb
Public Sub Add(
    qualifiedName As String,
    value As Integer
)

Parameters

NameTypeDescription
qualifiedNameString

The node’s qualified name ( prefix:local format).

| | value | Int32 |

The node value.

|

Exceptions

TypeDescription
ArgumentException

Thrown if the prefix specified in the qualifiedName method parameter is not registered. Call the XmpDocument.RegisterNamespace method to register the namespace.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Add(String, Int32) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

pdf-document-api-xmp-example/CS/XmpMetadataExamples/Program.cs#L103

csharp
dimensions.Add("stDim:Unit", "pixel");
document.Add("xmpTPg:NPages", 6);

pdf-document-api-xmp-example/VB/XmpMetadataExamples/Program.vb#L82

vb
dimensions.Add("stDim:Unit", "pixel")
document.Add("xmpTPg:NPages", 6)
Return document

See Also

XmpDocument Class

XmpDocument Members

DevExpress.Pdf.Xmp Namespace