ThemeColor.GetScreenNameForColor Method
Gets the user-friendly name for the specified color.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Shared Function GetScreenNameForColor ( _
color As Color _
) As String
'Usage
Dim color As Color
Dim returnValue As String
returnValue = ThemeColor.GetScreenNameForColor(color)
public static string GetScreenNameForColor(
Color color
)
Parameters
color
Type: System.Drawing.ColorThe specified color.
Return Value
Type: System.String
The user-friendly name for the specified color.
Remarks
This method returns a base color name if it does not find a lighter or darker match.