Back to Devexpress

XmpDocument.CreateStructure(XmpName) Method

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

latest2.7 KB
Original Source

XmpDocument.CreateStructure(XmpName) 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(
    XmpName name
)
vb
Public Function CreateStructure(
    name As XmpName
) As XmpStructure

Parameters

NameTypeDescription
nameXmpName

The structure name.

|

Returns

TypeDescription
XmpStructure

An empty XMP structure.

|

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

csharp
XmpName structureName = XmpName.Get("MaxPageSize", "http://ns.adobe.com/xap/1.0/t/pg/");
XmpStructure dimensions = editedMetadata.CreateStructure(structureName);
editedMetadata.RegisterNamespace("http://ns.adobe.com/xap/1.0/sType/Dimensions#", "stDim");

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

vb
Dim structureName As XmpName = XmpName.Get("MaxPageSize", "http://ns.adobe.com/xap/1.0/t/pg/")
Dim dimensions As XmpStructure = editedMetadata.CreateStructure(structureName)
editedMetadata.RegisterNamespace("http://ns.adobe.com/xap/1.0/sType/Dimensions#", "stDim")

See Also

XmpDocument Class

XmpDocument Members

DevExpress.Pdf.Xmp Namespace