Search Results for

    Show / Hide Table of Contents

    Class PdfCustomMetadataProperties

    Class that represents set of custom metadata properties

    Inheritance
    System.Object
    PdfCustomMetadataProperties
    Namespace: IronPdf.MetaData
    Assembly: IronPdf.dll
    Syntax
    public class PdfCustomMetadataProperties : Object

    Properties

    Count

    Gets the count of the PdfCustomMetadataProperties.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32

    Item[String]

    Gets or sets element value with the specified key.

    Declaration
    public string this[string key] { get; set; }
    Parameters
    Type Name Description
    System.String key

    The key of the element.

    Property Value
    Type Description
    System.String

    Keys

    Gets the collection of the PdfCustomMetadataProperties keys.

    Declaration
    public ICollection<string> Keys { get; }
    Property Value
    Type Description
    System.Collections.Generic.ICollection<System.String>

    Values

    Gets the collection of the PdfCustomMetadataProperties values.

    Declaration
    public ICollection<string> Values { get; }
    Property Value
    Type Description
    System.Collections.Generic.ICollection<System.String>

    Methods

    Add(String, String)

    Method for adding property with the specified name and value.

    You can convert value of any type to the string and store it in custom properties.

    Declaration
    public void Add(string name, string value)
    Parameters
    Type Name Description
    System.String name

    The name of the custom PDF MetaData Property.

    System.String value

    The value of the custom PDF MetaData Property as a String.

    Contains(String)

    Method to check whether set of properties contains property with the specified name.

    Declaration
    public bool Contains(string name)
    Parameters
    Type Name Description
    System.String name

    Name of the property.

    Returns
    Type Description
    System.Boolean

    true if property with the specified name exists, otherwise false.

    Remove(String)

    Method for removing property by its name.

    Declaration
    public bool Remove(string name)
    Parameters
    Type Name Description
    System.String name

    The name of the property.

    Returns
    Type Description
    System.Boolean

    true if property was removed, otherwise false.

    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronPDF to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronPDF free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.