Table of Contents

Method Get

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

Get<T>(string, Func<T, bool>)

Gets the PdfItem(s) of type T saved in the given key, that match a predicate.

public IEnumerable<T> Get<T>(string key, Func<T, bool> predicate) where T : PdfItem

Parameters

key string

The key in the dictionary to work with.

predicate Func<T, bool>

The predicate, that shall be true for the desired item(s).

Returns

IEnumerable<T>

Type Parameters

T

Get<T>(string, object)

Gets the PdfItem(s) of type T saved in the given key, that are equal to value.

public IEnumerable<T> Get<T>(string key, object value) where T : PdfItem

Parameters

key string

The key in the dictionary to work with.

value object

The value, the desired item(s) shall be equal to.

Returns

IEnumerable<T>

Type Parameters

T

Get<T>(string, T)

Gets the PdfItem(s) of type T saved in the given key, that are equal to value.

public IEnumerable<T> Get<T>(string key, T value) where T : PdfItem

Parameters

key string

The key in the dictionary to work with.

value T

The value, the desired item(s) shall be equal to.

Returns

IEnumerable<T>

Type Parameters

T