Back to Devexpress

XmpDocument.GetSimpleValue(String) Method

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

latest2.7 KB
Original Source

XmpDocument.GetSimpleValue(String) Method

Gets a simple value node with the specified name.

Namespace : DevExpress.Pdf.Xmp

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

NuGet Package : DevExpress.Pdf.Core

Declaration

csharp
public XmpSimpleNode GetSimpleValue(
    string qualifiedName
)
vb
Public Function GetSimpleValue(
    qualifiedName As String
) As XmpSimpleNode

Parameters

NameTypeDescription
qualifiedNameString

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

|

Returns

TypeDescription
XmpSimpleNode

The simple value node with the specified name or null (Nothing in Visual Basic) if the node with such name is not a simple value node.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetSimpleValue(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#L37

csharp
// Change the CreatorTool node value:
XmpSimpleNode creatorTool = editedMetadata.GetSimpleValue("xmp:CreatorTool");
creatorTool.SetValue("PDF Document API");

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

vb
' Change the CreatorTool node value:
Dim creatorTool As XmpSimpleNode = editedMetadata.GetSimpleValue("xmp:CreatorTool")
creatorTool.SetValue("PDF Document API")

See Also

XmpDocument Class

XmpDocument Members

DevExpress.Pdf.Xmp Namespace