Table of Contents

Method Remove

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

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

Removes the PdfItem(s) of type T saved in the given key, that match a predicate. Removes the PdfArray, if no longer needed. Returns true if items were removed.

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

Remove<T>(string, object)

Removes the PdfItem(s) of type T saved in the given key, that are equal to value. Removes the PdfArray, if no longer needed. Returns true if items were removed.

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

Remove<T>(string, T)

Removes the PdfItem(s) of type T saved in the given key, that are equal to value. Removes the PdfArray, if no longer needed. Returns true if items were removed.

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