Click or drag to resize

PdfDictionaryItem Property

Gets or sets the PdfBasicObject value associated with the specified PdfName key.

Namespace:  GemBox.Pdf.Objects
Assembly:  GemBox.Pdf (in GemBox.Pdf.dll) Version: 13.0.35.1000
Syntax
public PdfBasicObject this[
	PdfName key
] { get; set; }

Parameters

key
Type: GemBox.Pdf.ObjectsPdfName
The PdfName key of the PdfBasicObject value to get or set.

Property Value

Type: PdfBasicObject
The PdfBasicObject value associated with the specified PdfName key. If the specified key is not found, a get operation returns Null. A set operation overrides existing or adds a new entry with the specified PdfName key and PdfBasicObject value.

Return Value

Type: PdfBasicObject
A PdfBasicObject value associated with the specified PdfName key. If the specified key is not found, Null is returned.

Implements

IDictionaryTKey, TValueItemTKey
Exceptions
ExceptionCondition
InvalidOperationExceptionThe current PdfDictionary is read-only (IsReadOnly returns ).
ArgumentNullExceptionkey or value is .
ArgumentExceptionThe value is already contained in some other PdfBasicObject or is PdfStream or is the current PdfDictionary.
See Also