Xceed SmartUI for WinForms v3.6 Documentation
Xceed.SmartUI.v3.6 Assembly / Xceed.SmartUI Namespace / SmartPaint Class / GetColorFromTheme Method / GetColorFromTheme(ThemeColor,SmartControl) Method
A Xceed.SmartUI.UIStyle.ThemeColor value.
A reference to a SmartControl representing the SmartControl from whose theme the color is to be retrieved.


In This Topic
    GetColorFromTheme(ThemeColor,SmartControl) Method
    In This Topic
    Retrieves the current color of the specified Xceed.SmartUI.UIStyle.ThemeColor according to the SmartControl's theme.
    Syntax
    'Declaration
     
    Public Overloads Shared Function GetColorFromTheme( _
       ByVal themeColor As ThemeColor, _
       ByVal smartControl As SmartControl _
    ) As Color
    'Usage
     
    Dim themeColor As ThemeColor
    Dim smartControl As SmartControl
    Dim value As Color
     
    value = SmartPaint.GetColorFromTheme(themeColor, smartControl)
    public static Color GetColorFromTheme( 
       ThemeColor themeColor,
       SmartControl smartControl
    )

    Parameters

    themeColor
    A Xceed.SmartUI.UIStyle.ThemeColor value.
    smartControl
    A reference to a SmartControl representing the SmartControl from whose theme the color is to be retrieved.

    Return Value

    A System.Drawing.Color structure representing the current color of the specified Xceed.SmartUI.UIStyle.ThemeColor.
    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