ThmxTheme.GetThemeShadeByName method (String, Boolean)
依名稱取得佈景主題網底
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function GetThemeShadeByName ( _
themeColorName As String, _
fixContrast As Boolean _
) As Color
'用途
Dim instance As ThmxTheme
Dim themeColorName As String
Dim fixContrast As Boolean
Dim returnValue As Color
returnValue = instance.GetThemeShadeByName(themeColorName, _
fixContrast)
public Color GetThemeShadeByName(
string themeColorName,
bool fixContrast
)
參數
themeColorName
Type: System.String佈景主題網底名稱字串的格式: ColorName [-ShadeName] 有效的 ShadeNames 所在位置: 深、 深中, 度、 中較淺、 Lightest (及無網底取得色彩的預設陰影)。
fixContrast
Type: System.Boolean是否要編輯的根據整個佈景主題是否已反轉的色彩對比。
傳回值
Type: System.Drawing.Color
表示佈景主題網底色彩。