GrapeCity MultiRow Windows Forms Documentation
TryGetValue Method


The key value to get.
This method returns the value associated with the specified key, if the key is found; otherwise, it returns %%. This parameter is passed uninitialized.
Gets the value associated with the specified key.
Syntax
Public Function TryGetValue( _
   ByVal key As String, _
   ByRef value As CellStyle _
) As Boolean
Dim instance As NamedCellStyleDictionary
Dim key As String
Dim value As CellStyle
Dim value As Boolean
 
value = instance.TryGetValue(key, value)
public bool TryGetValue( 
   string key,
   out CellStyle value
)

Parameters

key
The key value to get.
value
This method returns the value associated with the specified key, if the key is found; otherwise, it returns %%. This parameter is passed uninitialized.

Return Value

true if the object that implements NamedCellStyleDictionary contains an element with the specified key; otherwise, false.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThe key is null.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

NamedCellStyleDictionary Class
NamedCellStyleDictionary Members

 

 


Copyright © GrapeCity, inc. All rights reserved.