ThmxTheme.GetThemeShadeByName method (String)
依名稱取得佈景主題網底。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function GetThemeShadeByName ( _
themeColorName As String _
) As Color
'用途
Dim instance As ThmxTheme
Dim themeColorName As String
Dim returnValue As Color
returnValue = instance.GetThemeShadeByName(themeColorName)
public Color GetThemeShadeByName(
string themeColorName
)
參數
themeColorName
Type: System.String佈景主題網底名稱字串。
傳回值
Type: System.Drawing.Color
表示佈景主題網底Color 。
Implements
ISPTheme.GetThemeShadeByName(String)
備註
themeColorName參數必須是格式ColorName[-ShadeName]。下列清單顯示ColorName的有效值。
Dark1
Dark2
Light1
Light2
Accent1
Accent2
Accent3
Accent4
Accent5
Accent6
Hyperlink
FollowedHyperlink
下列清單顯示ShadeName的有效值。沒有值的ShadeName會傳回色彩的預設陰影。
暗
深
中等
較細
最亮