Search Results for

    Show / Hide Table of Contents

    Class PdfDocument.PdfCustomMetadataProperties

    Class that represents set of custom metadata properties

    Inheritance
    System.Object
    PdfDocument.PdfCustomMetadataProperties
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ToString()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: IronPdf
    Assembly: IronPdf.dll
    Syntax
    public class PdfCustomMetadataProperties

    Properties

    Count

    Gets the count of the PdfDocument.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 PdfDocument.PdfCustomMetadataProperties keys.

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

    Values

    Gets the collection of the PdfDocument.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.

    ☀
    ☾
    In This Article
    Back to top
    Install with Nuget