Skip to content

PdfCosDictionary.Item Property

Overloads

Name Description
Item(Xfinium.Pdf.Core.Cos.PdfCosName) Gets or sets the value associated with the specified key.
Item(System.String) Gets or sets the value associated with the specified key.

Item(Xfinium.Pdf.Core.Cos.PdfCosName)

Gets or sets the value associated with the specified key.

C#
public PdfCosObject Item[PdfCosName key] { get; set; }

Parameters

key PdfCosName

The key of the value to get or set.

Property Value

PdfCosObject

The value associated with the specified key. If the specified key is not found, a get operation returns null, and a set operation creates a new element with the specified key.

Remarks

If the key already exists in the dictionary, the set operation overwrites it.

Item(System.String)

Gets or sets the value associated with the specified key.

C#
public PdfCosObject Item[string key] { get; set; }

Parameters

key String

The key of the value to get or set.

Property Value

PdfCosObject

The value associated with the specified key. If the specified key is not found, a get operation returns null, and a set operation creates a new element with the specified key.

Remarks

If the key already exists in the dictionary, the set operation overwrites it.