Class PdfCustomMetadataProperties
Class that represents set of custom metadata properties
Inheritance
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 |
|
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 |
|