The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
All docs
V19.2
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+
.NET Core 3.0+

PdfDocument.CustomProperties Property

Provides access to the document's custom properties.

Namespace: DevExpress.Pdf

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

Declaration

public IDictionary<string, string> CustomProperties { get; }
Public ReadOnly Property CustomProperties As IDictionary(Of String, String)
public IDictionary<string, string> CustomProperties { get; }
Public ReadOnly Property CustomProperties As IDictionary(Of String, String)
public IDictionary<string, string> CustomProperties { get; }
Public ReadOnly Property CustomProperties As IDictionary(Of String, String)

Property Value

Type Description
IDictionary<String, String>

A dictionary object containing custom properties.

Property Value

Type Description
IDictionary<String, String>

A dictionary object containing custom properties.

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