Documents for PDF .NET Edition
GrapeCity.Documents.Common Assembly / GrapeCity.Documents.Common Namespace / ObservableSortedDictionary<TKey,TValue> Class / TryGetValue Method
The key of the value to get.
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.

In This Topic
    TryGetValue Method (ObservableSortedDictionary<TKey,TValue>)
    In This Topic
    Gets the value associated with the specified key.
    Syntax
    'Declaration
     
    Public Function TryGetValue( _
       ByVal key As TKey, _
       ByRef value As TValue _
    ) As System.Boolean
    public System.bool TryGetValue( 
       TKey key,
       out TValue value
    )

    Parameters

    key
    The key of the value to get.
    value
    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.

    Return Value

    true if the ObservableSortedDictionary<TKey,TValue> contains an element with the specified key; otherwise, false.
    See Also