Table of Contents

Method TryGetValue

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

TryGetValue(string, out PdfItem)

Gets the value associated with the specified key.

public bool TryGetValue(string key, out PdfItem value)

Parameters

key string

The key whose value to get.

value PdfItem

When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Returns

bool

true if the object that implements System.Collections.Generic.IDictionary<TKey, TValue> contains an element with the specified key; otherwise, false.

Exceptions

ArgumentNullException

key is null.

TryGetValue(string, out PdfItem, Type?)

public bool TryGetValue(string key, out PdfItem value, Type? valueType)

Parameters

key string
value PdfItem
valueType Type

Returns

bool

TryGetValue<T>(string, out T)

public bool TryGetValue<T>(string key, out T value) where T : PdfItem

Parameters

key string
value T

Returns

bool

Type Parameters

T