Click or drag to resize

PdfDictionaryItem Property

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

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

Parameters

key  PdfName
The PdfName key of the PdfBasicObject value to get or set.

Property Value

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

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