Condividi tramite


ThmxTheme.GetThemeShadeByName Method

Gets a theme shade by name.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Function GetThemeShadeByName ( _
    themeColorName As String _
) As Color
'Usage
Dim instance As ThmxTheme
Dim themeColorName As String
Dim returnValue As Color

returnValue = instance.GetThemeShadeByName(themeColorName)
public Color GetThemeShadeByName(
    string themeColorName
)

Parameters

Return Value

Type: System.Drawing.Color
A Color representing the theme shade.

Remarks

The themeColorName parameter must be in the format ColorName[-ShadeName]. The following list shows the valid values for ColorName.

  • Dark1

  • Dark2

  • Light1

  • Light2

  • Accent1

  • Accent2

  • Accent3

  • Accent4

  • Accent5

  • Accent6

  • Hyperlink

  • FollowedHyperlink

The following list shows the valid values for ShadeName. No value for ShadeName will return the color’s default shade.

  • Darker

  • Darkest

  • Medium

  • Lighter

  • Lightest

See Also

Reference

ThmxTheme Class

ThmxTheme Members

Microsoft.SharePoint.Utilities Namespace