ComponentOne Themes for WinForms
TryGetValue Method

C1.Win.C1Themes.4 Assembly > C1.Win.C1Themes Namespace > C1ThemeCollection Class : TryGetValue Method
The name of the theme to get.
OUT: the theme with the specified name, or null if none could be found.
Retrieves a theme by its name.
Syntax
'Declaration
 
Public Function TryGetValue( _
   ByVal key As System.String, _
   ByRef theme As C1Theme _
) As System.Boolean
public System.bool TryGetValue( 
   System.string key,
   out C1Theme theme
)

Parameters

key
The name of the theme to get.
theme
OUT: the theme with the specified name, or null if none could be found.

Return Value

True if the theme was found, false otherwise.
See Also

Reference

C1ThemeCollection Class
C1ThemeCollection Members