次の方法で共有


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

Return value

Type: System.Nullable<Color>
A color representing the theme shade or null if no such theme shade exists in this theme.

See also

Reference

SPTheme class

SPTheme members

GetThemeShadeByNameOrNull overload

Microsoft.SharePoint.Utilities namespace