Back to Devexpress

XmpDocument.CreateSimpleValue(String, String) Method

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

latest3.1 KB
Original Source

XmpDocument.CreateSimpleValue(String, String) Method

Adds a simple value node at the end of the packet.

Namespace : DevExpress.Pdf.Xmp

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

NuGet Package : DevExpress.Pdf.Core

Declaration

csharp
public XmpSimpleNode CreateSimpleValue(
    string qualifiedName,
    string value
)
vb
Public Function CreateSimpleValue(
    qualifiedName As String,
    value As String
) As XmpSimpleNode

Parameters

NameTypeDescription
qualifiedNameString

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

| | value | String |

The node value.

|

Returns

TypeDescription
XmpSimpleNode

The simple value node.

|

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 CreateSimpleValue(String, String) 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#L91

csharp
array.Add("identifier3");
document.CreateSimpleValue("xmp:Label", "Demo");

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

vb
array.Add("identifier3")
document.CreateSimpleValue("xmp:Label", "Demo")
' Add items with the "pdf" prefix:

See Also

XmpDocument Class

XmpDocument Members

DevExpress.Pdf.Xmp Namespace