Nevron Open Vision Documentation
Nevron.Nov.Diagram.Themes Namespace / NThemeColor Class / ToColor Method
The styleable element this theme color is used in, for example a shape or a style preview.


In This Topic
    ToColor Method (NThemeColor)
    In This Topic
    Converts this theme color to an NColor instance.
    Syntax
    'Declaration
     
    
    Public MustOverride Function ToColor( _
       ByVal styleableElement As INStyleableElement _
    ) As NColor
    'Usage
     
    
    Dim instance As NThemeColor
    Dim styleableElement As INStyleableElement
    Dim value As NColor
     
    value = instance.ToColor(styleableElement)
    public abstract NColor ToColor( 
       INStyleableElement styleableElement
    )

    Parameters

    styleableElement
    The styleable element this theme color is used in, for example a shape or a style preview.

    Return Value

    The color equivalent of this theme color or NColor.Empty if a color equivalent couldn't be determined.
    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