次の方法で共有


ThmxTheme.GetThemeShadeByName method (String)

Gets a theme shade by name.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

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.

Implements

ISPTheme.GetThemeShadeByName(String)

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

GetThemeShadeByName overload

Microsoft.SharePoint.Utilities namespace