Nevron Open Vision Documentation
Nevron.Nov.Diagram.Themes Namespace / NDrawingThemeCollection Class / TryGetTheme Method


In This Topic
    TryGetTheme Method (NDrawingThemeCollection)
    In This Topic
    Tries to get the theme with the given theme id and returns true on success.
    Syntax
    'Declaration
     
    
    Public Function TryGetTheme( _
       ByVal themeId As System.Integer, _
       ByRef theme As NDrawingTheme _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As NDrawingThemeCollection
    Dim themeId As System.Integer
    Dim theme As NDrawingTheme
    Dim value As System.Boolean
     
    value = instance.TryGetTheme(themeId, theme)
    public System.bool TryGetTheme( 
       System.int themeId,
       out NDrawingTheme theme
    )

    Parameters

    themeId
    theme
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also