Spread Windows Forms 7.0 Product Documentation
TryGetValue Method
See Also  Support Options
GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > ShortcutDictionary Class : TryGetValue Method


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

Glossary Item Box

Gets the value associated with the specified key.

Syntax

Visual Basic (Declaration) 
Public Function TryGetValue( _
   ByVal key As Keys, _
   ByRef value As String _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ShortcutDictionary
Dim key As Keys
Dim value As String
Dim value As Boolean
 
value = instance.TryGetValue(key, value)
C# 
public bool TryGetValue( 
   Keys key,
   out string value
)

Parameters

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

Return Value

true if the collection contains an element with the specified key; otherwise, false.

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.