All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PdfDocument.CustomProperties Property

Provides access to the document’s custom properties.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v21.1.Core.dll

Declaration

public IDictionary<string, string> CustomProperties { get; }

Property Value

Type Description
IDictionary<String, String>

A dictionary object containing custom properties.

Remarks

Use the CustomProperties property to access and modify a document’s custom properties. The code sample below shows how to add, modify and remove custom properties from the dictionary:

private static void ModifyCustomProperties(PdfDocument document)
{
    //Add new property
    document.CustomProperties.Add("NumberOfCopies", "3");

    //Modify the CompanyEmail property value:
    if (document.CustomProperties.ContainsKey("CompanyEmail"))
        document.CustomProperties["CompanyEmail"] = "clientservices@devexpress.com";

    //Remove the HasImages property:
    document.CustomProperties.Remove("HasImages");
}
See Also