ThemeColor.GetShadesForColor Method

Retrieves the list of shades to be used with the specified default 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 GetShadesForColor ( _
    color As Color _
) As ReadOnlyCollection(Of Color)
'Usage
Dim color As Color
Dim returnValue As ReadOnlyCollection(Of Color)

returnValue = ThemeColor.GetShadesForColor(color)
public static ReadOnlyCollection<Color> GetShadesForColor(
    Color color
)

Parameters

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<Color>
Returns a read-only collection of System.Drawing.Instance types that represent the list of shades. This list includes the default color.

See Also

Reference

ThemeColor Class

ThemeColor Members

Microsoft.SharePoint.Utilities Namespace