Table of Contents

Method Contains

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

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

Returns true if the given key contains a PdfItem of type T matching a predicate.

public bool Contains<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

bool

Type Parameters

T

Contains<T>(string, object)

Returns true if the given key contains a PdfItem of type T, that is equal to value.

public bool Contains<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

bool

Type Parameters

T

Contains<T>(string, T)

Returns true if the given key contains a PdfItem of type T, that is equal to value.

public bool Contains<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

bool

Type Parameters

T