Table of Contents

Property this

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

this[string]

Gets or sets an entry in the dictionary. The specified key must be a valid PDF name starting with a slash '/'. This property provides full access to the elements of the PDF dictionary. Wrong use can lead to errors or corrupt PDF files. TODO: review: New in 6.3: Gets or sets an entry in the dictionary. The getter returns null if no value with the specified key exists. If the value is a PdfReference this value is returned, i.e. in contrast to GetValue it is not dereferenced to its indirect object. The setter throws an ArgumentNullException if the value is null. If you try to set an indirect object its PdfReference is set instead. It is not possible to have a .NET reference to an indirect PdfObject.

public PdfItem? this[string key] { get; set; }

Parameters

key string

Property Value

PdfItem

this[Name]

Gets or sets an entry in the dictionary identified by a Name.

public PdfItem? this[Name name] { get; set; }

Parameters

name Name

Property Value

PdfItem

this[PdfName]

Gets or sets an entry in the dictionary identified by a PdfName object.

public PdfItem? this[PdfName key] { get; set; }

Parameters

key PdfName

Property Value

PdfItem