Back to Devexpress

XmpDocument.CreateStructure(String) Method

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

latest3.0 KB
Original Source

XmpDocument.CreateStructure(String) Method

Adds a structure 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 XmpStructure CreateStructure(
    string qualifiedName
)
vb
Public Function CreateStructure(
    qualifiedName As String
) As XmpStructure

Parameters

NameTypeDescription
qualifiedNameString

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

|

Returns

TypeDescription
XmpStructure

An empty XMP structure.

|

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 CreateStructure(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#L99

csharp
// Add items with the "xmpTPg" prefix:
XmpStructure dimensions = document.CreateStructure("xmpTPg:MaxPageSize");
dimensions.Add("stDim:h", 750);

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

vb
' Add items with the "xmpTPg" prefix:
Dim dimensions As XmpStructure = document.CreateStructure("xmpTPg:MaxPageSize")
dimensions.Add("stDim:h", 750)

See Also

XmpDocument Class

XmpDocument Members

DevExpress.Pdf.Xmp Namespace