SPTheme.GetThemeShadeByNameOrNull method (String)
Gets a theme shade by name or null if no such theme shade exists in this theme
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function GetThemeShadeByNameOrNull ( _
colorName As String _
) As Nullable(Of Color)
'Usage
Dim instance As SPTheme
Dim colorName As String
Dim returnValue As Nullable(Of Color)
returnValue = instance.GetThemeShadeByNameOrNull(colorName)
public Nullable<Color> GetThemeShadeByNameOrNull(
string colorName
)
Parameters
- colorName
Type: System.String
Return value
Type: System.Nullable<Color>
A color representing the theme shade or null if no such theme shade exists in this theme.