Nevron Open Vision Documentation
Nevron.Nov.Dom Namespace / NStyleSheetCollection Class / ApplyTheme Method


In This Topic
    ApplyTheme Method (NStyleSheetCollection)
    In This Topic
    Applies the specified theme. The implementation creates an instance of the theme stylesheet and adds it to the collection. Any stylesheets created by themes of the same type are removed from the collection.
    Syntax
    'Declaration
     
    
    Public Overridable Sub ApplyTheme( _
       ByVal theme As NTheme _
    ) 
    'Usage
     
    
    Dim instance As NStyleSheetCollection
    Dim theme As NTheme
     
    instance.ApplyTheme(theme)
    public virtual void ApplyTheme( 
       NTheme theme
    )

    Parameters

    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