officefileapi-devexpress-dot-pdf-dot-xmp-dot-xmpdocument-dot-createstructure-x28-devexpress-dot-pdf-dot-xmp-dot-xmpname-x29.md
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
public XmpStructure CreateStructure(
XmpName name
)
Public Function CreateStructure(
name As XmpName
) As XmpStructure
| Name | Type | Description |
|---|---|---|
| name | XmpName |
The structure name.
|
| Type | Description |
|---|---|
| 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
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
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