Delen via


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

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.

See Also

Reference

ThemeColor Class

ThemeColor Members

Microsoft.SharePoint.Utilities Namespace